You will write a program that keeps names and salaries in a dictionary as key- value pairs. The program should display a menu that lets the user: 1) Look up a person's salary 2) Add a new name and salary 3) Change an existing salary 4) Delete an existing name and salary 5) Display a list of names and salary 6) Exit the program NOTE: Your program should use a separate function for menu items 1-5.
Q: Hello! I am writing a code using Python but I am having issues with the while loop. It seems…
A: Algorithm: Read and Print Pairs of Words1. Open the file "forTest.txt" for reading.2. Read the first…
Q: The Boolean operator NOR () is functionally complete. This means that you can write a Boolean…
A: Introduction:Boolean algebra is a mathematical structure dealing with binary variables and logic…
Q: every expert keep sending wrong code sadly it needs to be wasmbly there are small issues that keeps…
A: This assembly language program is designed for the WASP processor using the Sting assembler. Its…
Q: What are some of the formatting vulnerabilities that can be encountered in using the iostream…
A: The iostream library in C++ is used for input and output operations. While it is a powerful tool, it…
Q: In this problem you will design a data structure that implements Stack ADT using singly-linked list…
A: The objective of the question is to design a data structure that implements Stack ADT using a…
Q: Business Rules in Data Modeling Based on your experiences, identify one (1) example of a business…
A: Database:A database is a structured and organized collection of data, typically stored and accessed…
Q: Need help finishing this Java code. Here's what I need to do (Write a program to create a…
A: We need to write a Java Program for Customer bill format for a company for the given scenario.
Q: It is a Java convention to start the name of a Java class with a capital letter. True False
A: In Java, it is a convention to start the name of a class with a capital letter. This convention is…
Q: Write a MATLAB code to do the following a) Create a 300x300 24-bit colored image that is divided…
A: This MATLAB code generates a 300x300 24-bit colored image divided into % four equal parts with…
Q: Question: In networking, what does the acronym "TCP" stand for? A) Transmission Control Protocol B)…
A: In computer networking, protocols play a pivotal role in ensuring effective communication between…
Q: Write a C program that will calculate the total payment for a brand new car being purchased on…
A: 1. Input Section: - Prompt the user to enter the car price (`carPrice`). - Prompt the user to…
Q: Please do not use AI to answer
A: The question is about calculating probabilities using the binomial distribution and its…
Q: Suppose that x is a variable of type double with value 12.56. What Java statement produces the…
A: The solution is given in the below step.
Q: Why are pointers and arrays in C++ confusing?
A: The confusion between pointers and arrays in C++ often arises from the fact that they can sometimes…
Q: What is cardinality in the context of database design, and how does it influence the relationship…
A: In the context of database design, cardinality refers to the numerical relationships between the…
Q: A Disaster Recover (DR) Plan can classify disasters in a number of ways. The most common way is to…
A: Welcome and introduction to the presentation.Brief overview of the importance of disaster…
Q: If a computer has an IP address of 192.168.0.10, a MAC address of 00:11: 22:33:44:55, and the…
A: In a network, devices communicate with each other using both IP addresses and MAC addresses. The ARP…
Q: Using Java: Create a basic chat bot. All input will come from the command line. If the user entered…
A: In this question we have to program for a basic chat bot using Java program.Let's code and hope this…
Q: help
A: The first part of the question is asking which of the given options is not a section of the Cash…
Q: I need help on this question?
A: The objective of the question is to create a Python program that takes the length and width of a…
Q: Let's say a transaction begins, but the system fails after a number of checkpoints. Select the…
A: The objective of the question is to understand what happens during the recovery process after a…
Q: Question: Write an implementation using the ADT LinkedSorterList (textbook code) defining a list of…
A: This C++ program utilizes the ADT (Abstract Data Type) Linked SorterList to manage a list of…
Q: Please solve the following question.
A: The question is asking to determine the subnet prefix for the site, headquarters, and the other two…
Q: /* Create an elaborate JavaScript function that carefully examines the following object to unveil…
A: In this question we have to write a JavaScript method for individual's culinary preferences.Let's…
Q: #include #include #include #include #include class CAT{ public: float weight() const{return…
A: A public member function called set_range(unsigned int power) in the CAT class is intended to alter…
Q: help
A: The objective of the first question is to understand the role of trade associations in promoting…
Q: explain what multithreading
A: Multithreading is a programming and execution model that allows multiple threads (smaller units of a…
Q: How does a program’s resource requirement planning influence the overall success of the program?
A: Resource requirement planning is a pivotal component of program management, playing a vital role in…
Q: True/False: Parallel processing in SQL can improve query performance by utilizing multiple threads.
A: By using many threads, the question investigates how SQL's parallel processing might improve query…
Q: help
A: The first part of the question is asking about the benefits of a reverse mortgage. A reverse…
Q: #include #include #include #include #include class CAT{ public: float weight() const{return…
A: Algorithm for CAT Class Constructor1. Start2. Define the CAT class with private member variables:…
Q: In the context of database transactions, is a property that ensures that once a transaction is…
A: ACID is an acronym that represents a set of properties essential for ensuring the reliability and…
Q: 4. Build the NFA for the pattern ((AC|B*) A (BA) *) Then, check whether the NFA algorithm matches…
A:
Q: "Using the Internet, research the command line version of FTK Imager and identify the command used…
A: The concept used in this scenario is the integration of command line functionality in digital…
Q: What shall we consider before building a ML model? How can the ML model interact with our physical…
A: This question comes from Machine Learning which is a topic in computer engineering as well as…
Q: Answer this question: Write it with pencil and show how you solved it Write the truth table for…
A:
Q: Q4 Write a program that takes a string and calculates the number of words and characters present in…
A: Declare Variables:Declare a variable with string.Declare variables wordCount and charCount to store…
Q: help
A: The question is asking about the benefits a borrower might experience if they assume a homeowner's…
Q: * AHPA #2: The Classroom Problem * Dr. Anderson is teaching a COP 3515 class that has 9 students in…
A: The objective of the question is to create a C program that stores and prints out the information…
Q: C++ program Create a class called Account with the following data fields; account holder, account…
A: Algorithm:Class Definition (Account):Define a class named Account.Include private data fields:…
Q: What is the most popular operating system for personal computers? Microsoft Windows Mac OS X Linux…
A: The landscape of personal computer operating systems has evolved over the years, with several…
Q: Use a K-map to simplify the Boolean expression E = ABCD + ACD + AC + C
A: A mathematical expression that evaluates to a Boolean value (either true or false) is called a…
Q: IN JAVA: Write a program to ask the user for the size of the 2D double array, then prompt the user…
A: Input:prompt the user to enter the number of rows (numRows).Prompt the user to enter the number of…
Q: or Beginning Java: Part 1 Write a program to create a customer's bill for a company. The company…
A: In this part, we have to write a Java Program for Customer's bill format for a company.In another…
Q: 4.4 Write an S-attributed attribute grammar, based on the CFG of Example 4.7, that accumulates the…
A: In this question we have to understand about constructing an S-attributed attribute grammar based on…
Q: 3. Consider the grammar S→ A1B A → OA / E BOB/1B/E For the string w=00011001, find a). Leftmost…
A: We are entrusted with dissecting the string \(w = 00011001\) inside the setting of the grammer. The…
Q: Explain the meaning of the Pep/7 menu option E”e(J0io4 I41J0.
A: The provided string "E”e(J0io4 I41J0" appears to be a sequence of characters that doesn't…
Q: 3.A Bus Interface will be designed for a 8086 CPU (minimum mode). a) Draw the Address Latch Design…
A: In the design of a bus interface for a minimum mode 8086 CPU, addressing and data buffering are…
Q: maximum temperature drop. Now she has the following problem; in a series of measurements she…
A: The function assumes a constant increase in measurements.It checks if there is a missing element…
Q: In Matlab. Generate a rectangular window with N = 10 for −20 ≤ n ≤ 20. Implement your solution…
A: The objective of the question is to generate a rectangular window in Matlab with N equals to 10 for…
Step by step
Solved in 3 steps
- 1994 Weekly Gas GraphIn the student sample programs for this book, you will find a text file named 1994_Weekly_Gas_Averages.txt. The file contains the average gas price for each week in the year 1994.(There are 52 lines in the file.) Using matplotlib, write a Python program that reads thecontents of the file then plots the data as either a line graph or a bar chart. Be sure to displaymeaningful labels along the X and Y axes, as well as the tick marks. (in python)Lab Exercise #6: Product Price List In this activity, you are to create a program that will maintain a list of products and their prices. The program is a menu- driven program that has choices for adding a new product and its price, listing all products with corresponding prices. updating the price of a product, and removing a product. A sample execution is given below: [U]pdate | [L]ist | [E]xit Menu: [A]dd| [R]emove Option: A Product: Notebook Price (Php): 15.00 Option: A Product: Pen Price (Php): 10.00 Option: A Product: notebook *The product already exists* Option: U Product: notebook Price (Php): 18.20 Option: A Product: Pencil Price (Php): 8.50 Option: L NOTEBOOK PEN PENCIL Option: R Product: Pen 18.20 10.00 8.50 Option: R Product: PEN *The product does not exist* When adding an item, the product name and its price will be given. Product names are unique, case-insensitive, and with leading and trailing spaces removed. Therefore, adding the same product more than once is not…Searching - a user should be able to search by ID or by item name create only one menu item for searching a user should be able to enter the name of the item using any case, (for example, sTRolleR) you may wish to store items in all lower/upper case to expedite the search write one search function that can search by ID and name and goes through the array of structs/objects only once show the entire record if found or an appropriate message if not Sorting - sort by any field write one function to sort by any field using a parallel array of pointers use Bubble Sort is not the most effective but the easiest to modify. do not copy and paste sort code five times into the same function. sorting using pointers is faster because you have to swap pointers only, which are normally stored in 4 bytes each; it also allows you to preserve the original order of the items If you choose to have a submenu, a submenu must have an option to go back to the previous menu or main menu if a user got…
- Airline Reservation System A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. You are to write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats). Your program should display the following menu of alternatives: Please type 1 for "first class" Please type 2 for "economy" If the person types 1, then your program should assign a seat in the first class section (seats 1-5). If the person types 2, then your program should assign a seat in the economy section (seats 6-10). Your program should then print a boarding pass indicating the person's seat number and whether it is in the first class or economy section of the plane. Use a single-subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of the array to 1 to…In the Python programming language: Create a program that stores the names of the user's friends in a list. The program should allow a user to add friends to the list, remove friends from the list, and display the entire list of friends. A menu should be created that displays those options like so: 1 - View all 2 - Add Friend 3 - Remove Friend 4 - Exit The program should continue in a loop until the user selects exit. Hint: Use a function for each menu selection.Assignment #1 Instructions: Assigning Seats - planeseats Through this programming assignment, the students will learn to do the following: 1. Know how to use a Makefile. 2. Perform basic C commands. 3. Use arrays, integers and strings. This assignment asks the user to write a program to assign seats in an airplane. There will be 12 seats on the plane, 4 in first class and 8 in economy. • The program should display the following menu for the user: Please type 1 for "first class" Please type 2 for "economy" Please type 0 to quit • If the user types 1 then the user should be assigned a seat in first class. If the user types 2 then the user should be assigned a seat in economy. • If the user types O for a sentinel value the program should ext with a O return code. • The program should then print a line indicating the seat the person was assigned. This would be like a boarding pass. • The program should not assign a seat that has already been assigned. If all seats in the desired section…
- In Python, grades_dict = {'Wally': [87,96,70], 'Eva': [100,87,90], 'Sam': [94,77,90], 'Katie': [100,81,82], 'Bob': [83, 65, 85]} Ask user to enter the names of the rows, i.e., indices. You can use: len(grades) to get the number of rows of the DataFrame. In addition, using the sort_index() method, ask user whether they wish to sort by rows or by columns and whether to sort in ascending or descending order (do not use any if-else statements)Charge Account Validation Write a program that lets the user enter a charge account number. The program should determine if the number is valid by checking for it in the following list: 5658845 4520125 7895122 8777541 8451277 1302850 8080152 4562555 5552012 5050552 7825877 1250255 1005231 6545231 3852085 7576651 7881200 4581002 The list of numbers above should be initialized in a single-dimensional array. A simple binary search should be used to locate the number entered by the user. If the user enters a number that is in the array, the program should display a message saying that the number is valid along with index. If the user enters a number that is not in the array, the program should display a message indicating that the number is invalid. Note: values should be positive integers.Create a program that stores the names of the user's friends in a list. The program should allow a user to add friends to the list, remove friends from the list, and display the entire list of friends. A menu should be created that displays those options like so: 1 - View all 2 - Add Friend 3 - Remove Friend 4 - Exit The program should continue in a loop until the user chooses to exit.
- Computer Science Part C: Interactive Driver Program Write an interactive driver program that creates a Course object (you can decide the name and roster/waitlist sizes). Then, use a loop to interactively allow the user to add students, drop students, or view the course. Display the result (success/failure) of each add/drop.good afternoon could you solve this exercise with c # is an exercise to solve with codes with the programming language c # using only vectors and matrices Develop an algorithm that allows the following: Register n number of students with the following data (ID, Name, Gender, tuition fee and Amount to pay) In a menu you must allow the following options:1. Register n number of students2. List the students who paid the full tuition and the amount paid.3. List the number of students who paid partially and the amount they owe.4. Show the sum of the payment of all the students and the sum of the debt of all the students.5. What percentage of men paid in full and what percentage of women paid partially.lanugage in python Design a program that asks the user to enter a store's sales for each day of the week. The amounts should be stored in a list. Use a loop to calculate the total sales for the week and display the result.