Remember that every program is composed of: Input > Processing > Output What is
ID: 3886486 • Letter: R
Question
Remember that every program is composed of:
Input > Processing > Output
What is the input? How are you planning to store this input? What variables are you proposing to have for this program?
Chrome File Edit View History Bookmarks People Window Help * us. 73% Mon 2:52 PM Q E O 1: Truck Move-CIS 3100 Fa x. D TruckMove.pdf Chegg Study | Guided Solution x Access Connect x C C file:///Users/Hana/Downloads/TruckMove.pdf TRUCK RENTAL TRUCK MOUE SCHEDULER v1.00 1-Dispatch Truck to Work 2- Iruck Returned Home 3- Report D- Exit What do you want to do? 1 Which truck do you want to sendExplanation / Answer
The Input:
1.Two Trucks - variables - structure to store the
string name //as truck1, truck2
boolean status // Availabe, Not Available
2.Dispatch truck - as an option for menu (int choice=1)
3.Truck Returned - as an option for menu (int choice=2, same variable)
3.Report - as an option for menu (int choice=3, same variable)
Processing:
1.Two Trucks : Storing the information on the struct variables
2.Dispatch truck - as an option for menu (int choice=1)
check which truck is requestes (string requested truck)
if (available)
create a trip entry. Trip can be a structure
truck name(string), status - on/off(completed or not completed boolean), duration(double), rent amount(double)
truck status(boolean) - False
else
display message
3.Truck Returned - as an option for menu (int choice=2, same variable)
Update a trip entry. ststus as completed
truck status as available
3.Report - as an option for menu (int choice=3, same variable)
Display all the trip entries:
Sum all the rents to know the earned rent
Output:
1.Successful trip creation
2.Message to user in case truck is not available
3.Complete rental information along with earned rent amount (double)