Question
2. for this program , you will be building on M1Lab2. What you are required to do is convert the program to a Modularized program.
2. for this program , you will be building on M1Lab2. What you are required to do is convert the program to a "Modularized" program. Note the program will still deliver the same results it did in M1Lab2 only here you will create functions to preform the tasks. More details shown below\ Define and use functions with the following signatures\ \ The three functions defined above (getInfo, calc_cost and display_results) above are to be saved in a DIFFERENT file (so all 3 functions in ONE file). give the file a discriptive name.\ The main file is to ask the user to enter the number of items they want to purchase. So if the user enters 2, it means the program is to iterate twice\ After the user enters the number of items they want to purchase, the get_info and calc_cost functions should be called for each item.\ After all item costs are calculated , the display_results function is to be called in order to display results
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started