Page 1 of 1

Write a modular program for a company that supplies high quality auto supplies to other companies. There should be four

Posted: Sat May 14, 2022 4:51 pm
by answerhappygod
Write a modular program for a company that supplies high quality auto supplies to other companies. There should be four functions to the program. Main is one and should call the Welcome Function , ask the user for the number of shipments that week, and call the SetupShipments Function and pass it the number of shipments as a parameter.
The Welcome Function should print a welcome message to the user with the name of a Company.
The SetupShipments Function should have a For Loop that goes to the number of shipments that were entered. We are going to keep it simple for this program and only track the Car Tires and the Engine parts and they both are going to be the same price each time (not vary as in the real world.) For each shipment it should ask for the number of Car Tires, and number of Engine Parts. Car Tires from this custom supply company are 200 each, and Engine Parts cost 450 each. Find the find the cost for each shipment and add it to a total. At the end it should then call the TotalBill function and pass the total as a parameter to it.
The TotalBill function should find the tax as 7% of the total, and print the total, the tax, and the total with tax for the user.
Write a program that has an array of 8 integers. Create a loop to allow the user to enter values into the array. (You can either use a loop to go through the entire array and ask for all 8 values and put them in the array or have an indefinite loop to ask for a position and a value. It’s up to you.)
Ask the user for a specific position in the array and tell the user what the value is there.
Make a function to total up the array that accepts an array as a parameter. It should Call this function from Main() and pass the array.
Demonstrate a For Loop in the function by totaling the values in the array using a For loop (make sure to use a For loop here. It is an objective left off the second test because of where the assignments were up to) and print the total for the user.
Back in main, ask the User for a position and change the value in the array at that location.
Call the function you created one more time to show the total of the array after the change.
Do this in C++, and show work please