Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Please make sure ALL requirements are met.
Create a c++ program that meets the following requirements.
- Create a LIST to store the sales data for each month of the year with a three-letter abbreviation for the month to use as the key for each item.
- Make sure the program includes the add, total, edit, and view commands.
- If the user inputs the add command then it should ask which month they want to add sales data to, and then add it for that month.
- If the user inputs edit for the command then they should be able to edit the sales data for a three-letter month.
- If the user inputs total, then it should display the average and calculate all of the sales data inputted from the user.
- Use a display command to view the sales data for any three-letter month the user inputs
Expert Solution
arrow_forward
Code:
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 4 images
Knowledge Booster
Similar questions
- For this lab, you will be doing the following in C#: 1) Create a Home form with buttons that when clicked, will open the Account, Email, and eventually the Contact forms. The Account form should be opened in "View" mode. 2) Add code to the Login form so the Account form opens when the user clicks "Create New Account". The Account form should be opened in "Modify" mode. 3) Add code to the Login form that validates the user input before allowing the user the access the Home form. For now, just verify the user enters "user1" and "12345" for the username and password respectively.arrow_forwardWrite a Visual Basic Loop clause that processes the loop instructions as long as the value in the intQuantity variable is greater than the number 0. Use the While keyword to create a looping condition.arrow_forwardEx2. Write down two functions: transfer and receive from a bank account The settings will be transferred to two users of the bank. Must be a user Presented as a struct and must have an account attribute. That is, the program should ask you to enter the bank account (string type) and the name of the person to whom you are transferring the amount, as well as the amount of the money. If the amount is more than $ 1000, the program must print a notification to enter a fee - 10% of the amount. After entering 10% of the amount, print on the screen that the amount has been transferred.arrow_forward
- Write a stored procedure named displayNumberOfFilmRatings(). The displayNumberOfFilmRatings () procedure should find number of films for each film rating and then display the film rating and the number for films having that type of rating. Note: The displayNumberOfFilmRatings() procedure does not need to declare any variables. Hint: The output should have two columns only. Hint: There is no need to use cursor processing for this stored procedure.arrow_forwardQuestion 2 You are asked to write a program for a school that allows the teacher to enter the grades of 9 students. The program should then output the number of grades that are less than 60 and the number of students that are greater than or equal 60 in a chart style. Your program should be well designed and clear. Sample run: Enter grade for student 1: 57 Enter grade for student 2: 72 Enter grade for student 3: 84 Enter grade for student 4: 42 Enter grade for student 5: 70 Enter grade for student 6: 95 Enter grade for student 7: 51 Enter grade for student 8: 65 Enter grade for student 9: 88 3 grades less than 60: 6 grades greater than or equal 60: !!!!!!arrow_forwardPYTHON PROGRAMMING LANGUAGE Create a new text document called names.txt (this is done by hand - not using programming) with the following names: Adam, Bryan, Charlie. Each name should be followed by a hard return (do not store them in a list). Main Function. Write a program where the user enters a name. Using the read function, check to see if the name is in the text document. If it is, respond back to the user the name is found within the list. Read Function. The read function should return the contents of the text document as a list. Write Function. The write function should take the list and override the file with the new names list in reverse alphabetical order with a hard return after each name. EXAMPLEPlease enter a name: AdamAdam is found in the list.Enter another name (Y/N): YPlease enter a name: AndrewSorry, Andrew was not found in the list. Would you like to add it? (Y/N): YAndrew has been added to the list.Enter another name (Y/N): N LIST EXAMPLEadambryancharlie Final…arrow_forward
- bläi 10 Design the following program, so that the first button (Insert) adds the items to the list box from the textbox, the second (Delete) removes the items from the list box based on the text written in the textbox and the last button(clear) .cleans the textbox Form1 Insert Delete Ceararrow_forwardWrite a Visual Basic Do clause that tells the computer to process the loop instructions as long as the value in the intQuantity variable is greater than the number 0. Use the While keyword to create a looping condition.arrow_forwardTime comp.arrow_forward
- 3. Which among the following shows a valid use of the Direction enumeration as a parameter to the moveCharacter function? Select al that apply. enum Direction { case north, south, west, east}func moveCharacter(x: Int, y: Int, facing: Direction) {// code here} moveCharacter(x: 0, y: 0, facing: .southwest) moveCharacter(x: 0, y: 0, facing: Direction.north) moveCharacter(x: 0, y: 0, facing: .south) moveCharacter(x: 0, y: 0, facing: Direction.northeast)arrow_forwardTask 1: See the following figure. E Untitled Students GPA Calculation Student Roll No. Student Name Marks in Bengali Marks in English Marks in Mathematics Cakulate GPA Grade Point Average Save Data Refrech Data Close File Figure 1: Students GPA Calculation Develop a Java Application that builds a form as shown in Figure 1. First, the user enters the data and clicks on 'Calculate GPA' button. Once clicked, your program must calculate the GPA of the student based on the following table. Marks Grade Point >= 90 5.0 >= 80 4.0 >= 70 3.0 >= 60 2.0 >= 50 1.0 If the student gets below 50 in any subject, then the student fails and the GPA will be 0.0. After calculating the GPA, it must be displayed in the appropriate text box as per Figure 1. Then, the user clicks on 'Save Data' button and the student's roll no., student's name and GPA must be saved in a text file. The file must be named after your student id such as 2021-1-60-001.txt. When the user hits the 'Refresh Data' button all data…arrow_forwardCreate ASM statements that move the pointer to label Button1 when the left mouse button is pushed.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY