Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This needs to be written in C++ Write a tool that could be used by a book warehouse to calculate the approximate weight of a
This needs to be written in C++
Write a tool that could be used by a book warehouse to calculate the approximate weight of a box of books. Your program should ask the user for the number of hard cover books, the number of soft cover books, and the number of magazines. Assume hardcover books weigh 0.7kg, paperback books weigh 0.5kg, and magazines weigh 0.2kg. Your program should repeatedly ask for quantities and report weight until the user enters a negative value for any input. Submit your program in Moodle. Make sure to: submit all of your source files including the .pro and .cpp files. (I really don't care about your executable files.) I suggest you zip the entire directory before uploading. include a short comment at the top of your program with your name and a description of what the program does. (All programs you write should include comments. At least for each .cpp and .h file you write, have a comment at top with your name and a description.) Example input and output: I'll calculate the weight of your books. How many hardcover books are in the box? 5 How many soft cover books? 4 How many magazines? 8 Weight in kg: 7.1 I'll calculate the weight of your books. How many hardcover books are in the box? -2 ByeStep 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