The program that you coded for your assignment
The Aussie Best Car (ABC) authority now wants to create a database for the sales and bonus records of different years.The program that you coded for your Assignment 3 (A3) should calculate Total Sales, Total Bonus etc. for a particular year. The ABC authority now wants to store the detail sales and bonus information for every year in a text file. So you are now requested to modify your program of Assignment A3 as follows.The main program should first display a menu as follows. A user needs to select an operation from the main menu.===========================================Welcome to ABC Car Shop:Please choose an option from the followings.dd sales details in the database.earch sales details for a given year in the database.uit.===========================================If a user chooses the option then the program first asks the year (such as 2014) for which the sales and bonus information is being calculated. It then computes the sales amount of each car type, total sales, total bonus and bonus contributed by each car type, as it did before in A3.The program then collects the additional bonus rates for all car types from a text file called "additionalBonusRates.txt" (stored in the same folder) that contains the bonus rates as follows.Toyota Kluger Nissan Patrol Ford Territory========== ========== ===========10% 5% 3%Once the additional bonus rates are collected the program should pass them to a function called CalculateAdditionalBonus() that will then be used by another function called CalculateTotalBonus() like in A3. The program will display the total sales, sales for each car type, total bonus, bonus contributed by each car type, additional bonus for each car type and grand total bonus as it did for A3. However, it will now also display the year for which the sales and bonus information is being calculated. The year will be displayed at the beginning followed by the other information as follows.YEAR: 2014Total Sales: $500,000Sales of Toyota Kluger: $500,000Sales of Nissan Patrol: $0Sales of Ford Territorry: $0Total Bonus: $500Bonus contributed by Toyota Kluger: $500Bonus contributed by Nissan Patrol: $0Bonus contributed by Ford Territory: $0Additional Bonus for Toyota Kluger: $50Additional Bonus for Nissan Patrol: $0Additional Bonus for Ford Territory: $0Grand Total Bonus: $550The program will then store the information (as displayed) in a text file called "sales.txt". All information will be appended in the sales.txt file.After storing the sales and bonus information in the sales.txt file, the program prompts the user with the following message, "Do you want to calculate the sales and bonus for another year (Y/N)?". If the user enters "Y" then the whole process will be repeated for another year. Otherwise the program displays the main menu for choosing an operation.Now if the user chooses the option then the program first asks the use to enter the year (such as 2014) for which the sales and bonus information is being searched. To facilitate the Search option you must use the List data structure. The program then collects the sales and bonus information from the sales.txt file and displays it as follows.YEAR: 2014Total Sales: $500,000Sales of Toyota Kluger: $500,000Sales of Nissan Patrol: $0Sales of Ford Territorry: $0Total Bonus: $500Bonus contributed by Toyota Kluger: $500Bonus contributed by Nissan Patrol: $0Bonus contributed by Ford Territory: $0Additional Bonus for Toyota Kluger: $50Additional Bonus for Nissan Patrol: $0Additional Bonus for Ford Territory: $0Grand Total Bonus: $550After displaying the sales and bonus information the program prompts the user with the following message, "Do you want to search for another year (Y/N)?". If a user enters "Y" then the program asks the user to enter the year for which the information needs to be searched and displayed. If the user enters "N" then the program displays the main menu.Finally, the program quits if the user chooses the option .Use multiple functions, instead of using a single function to do everything. Create a good design of the functions to make the best use of the code and avoid duplicate calculations. You also need to design your program so that it has components that can be reused in another program, if needed.Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified. Some examples of pseudocode can be found at https://www.unf.edu/~broggio/cop2221/2221pseu.htm.Implement your algorithm in Python.Avoid duplicate code. For example, do not calculate the bonus in multiple places in your code.Comment your code as necessary to explain it clearly.Select 3 sets of test data that will demonstrate the correct "normal" operation of your program.Run your program using the test data you have selected and save the output it produces in a text file.Submit:1. Your algorithm.2. The table recording your chosen test data.3. Source code for your Python implementation.4. Output listings demonstrating the results of using the test data.It is important that the output listings are not edited in any way.
uit.===========================================If a user chooses the option then the program first asks the year (such as 2014) for which the sales and bonus information is being calculated. It then computes the sales amount of each car type, total sales, total bonus and bonus contributed by each car type, as it did before in A3.The program then collects the additional bonus rates for all car types from a text file called "additionalBonusRates.txt" (stored in the same folder) that contains the bonus rates as follows.Toyota Kluger Nissan Patrol Ford Territory========== ========== ===========10% 5% 3%Once the additional bonus rates are collected the program should pass them to a function called CalculateAdditionalBonus() that will then be used by another function called CalculateTotalBonus() like in A3. The program will display the total sales, sales for each car type, total bonus, bonus contributed by each car type, additional bonus for each car type and grand total bonus as it did for A3. However, it will now also display the year for which the sales and bonus information is being calculated. The year will be displayed at the beginning followed by the other information as follows.YEAR: 2014Total Sales: $500,000Sales of Toyota Kluger: $500,000Sales of Nissan Patrol: $0Sales of Ford Territorry: $0Total Bonus: $500Bonus contributed by Toyota Kluger: $500Bonus contributed by Nissan Patrol: $0Bonus contributed by Ford Territory: $0Additional Bonus for Toyota Kluger: $50Additional Bonus for Nissan Patrol: $0Additional Bonus for Ford Territory: $0Grand Total Bonus: $550The program will then store the information (as displayed) in a text file called "sales.txt". All information will be appended in the sales.txt file.After storing the sales and bonus information in the sales.txt file, the program prompts the user with the following message, "Do you want to calculate the sales and bonus for another year (Y/N)?". If the user enters "Y" then the whole process will be repeated for another year. Otherwise the program displays the main menu for choosing an operation.Now if the user chooses the option then the program first asks the use to enter the year (such as 2014) for which the sales and bonus information is being searched. To facilitate the Search option you must use the List data structure. The program then collects the sales and bonus information from the sales.txt file and displays it as follows.YEAR: 2014Total Sales: $500,000Sales of Toyota Kluger: $500,000Sales of Nissan Patrol: $0Sales of Ford Territorry: $0Total Bonus: $500Bonus contributed by Toyota Kluger: $500Bonus contributed by Nissan Patrol: $0Bonus contributed by Ford Territory: $0Additional Bonus for Toyota Kluger: $50Additional Bonus for Nissan Patrol: $0Additional Bonus for Ford Territory: $0Grand Total Bonus: $550After displaying the sales and bonus information the program prompts the user with the following message, "Do you want to search for another year (Y/N)?". If a user enters "Y" then the program asks the user to enter the year for which the information needs to be searched and displayed. If the user enters "N" then the program displays the main menu.Finally, the program quits if the user chooses the option .Use multiple functions, instead of using a single function to do everything. Create a good design of the functions to make the best use of the code and avoid duplicate calculations. You also need to design your program so that it has components that can be reused in another program, if needed.Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified. Some examples of pseudocode can be found at https://www.unf.edu/~broggio/cop2221/2221pseu.htm.Implement your algorithm in Python.Avoid duplicate code. For example, do not calculate the bonus in multiple places in your code.Comment your code as necessary to explain it clearly.Select 3 sets of test data that will demonstrate the correct "normal" operation of your program.Run your program using the test data you have selected and save the output it produces in a text file.Submit:1. Your algorithm.2. The table recording your chosen test data.3. Source code for your Python implementation.4. Output listings demonstrating the results of using the test data.It is important that the output listings are not edited in any way.
.Use multiple functions, instead of using a single function to do everything. Create a good design of the functions to make the best use of the code and avoid duplicate calculations. You also need to design your program so that it has components that can be reused in another program, if needed.Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified. Some examples of pseudocode can be found at https://www.unf.edu/~broggio/cop2221/2221pseu.htm.Implement your algorithm in Python.Avoid duplicate code. For example, do not calculate the bonus in multiple places in your code.Comment your code as necessary to explain it clearly.Select 3 sets of test data that will demonstrate the correct "normal" operation of your program.Run your program using the test data you have selected and save the output it produces in a text file.Submit:1. Your algorithm.2. The table recording your chosen test data.3. Source code for your Python implementation.4. Output listings demonstrating the results of using the test data.It is important that the output listings are not edited in any way.
Expected delivery within 24 Hours
what amount should Morgan credit to the account "paid-in capital in excess of par," as a result of this conversion?
Which of the following health problems has been associated with high protein intakes?
Example of commerical or advertisement of Fast Food product or service that strikes you as particularly creative and appealing. Consider some of the following questions: What are the elements that are unusual? What is the target group of the comm
Many leaders face the dilemma of trying to make good decisions. However, often leaders differ on their belief as to what is good. Some may think "What is good for me is what counts.
The program that you coded for your Assignment 3 (A3) should calculate Total Sales, Total Bonus etc. for a particular year. The ABC authority now wants to store the detail sales and bonus information for every year in a text file. So you are now requ
A scientist uses a molecule of dna composed of ucleotides containing radioactive deoxyribose as a taplet for replication and transcription in a non radioactive envirnoment. what % of DNA strands will be radioactive after 3 DNA replication cycles.what
what should be done about individual exposures facing a business firm and identify the reasons for self-insurance and the disadvantages of self-insurance.
What categories of nonverbal communication were most prevalent in the observed greetings and good-byes?
Apoptosis is programmed cell death that is under the control of the cell?
1950990
Questions Asked
3,689
Active Tutors
1440328
Questions Answered
Start Excelling in your courses, Ask a tutor for help and get answers for your problems !!
The nurse calls the HCP for an order for pain medication for a client who is 2 days postoperative aortic aneurysm repair.
Question: Which of the following is most true regarding the post-positivist paradigm? Need Online Tutoring?
Explain how your Walden experience might have strengthened your ability to advocate for social change in your community.
A client with a peptic ulcer is prescribed sucralfate. Which statement by the client indicates an understanding of the medication?
Barry was laid off from his job where he and his family were covered by a group health insurance policy. He has heard that a Federal law called HIPAA
Please discuss the Medical Model. You might include a description, the client, the dynamics, the goals, the treatment, etc.
A nurse is caring for a client with chronic obstructive pulmonary disease (COPD) who is currently receiving mechanical ventilation.