BackgroundYour friend “W” paints houses for extra cash.
When W is not tired, the
BackgroundYour friend “W” paints houses for extra cash.
When W is not tired, they can paint 400 square feet in one hour.
Once W gets tired, they can only paint 200 square feet in one hour.
W needs to know how much time they need to complete their painting jobs. You, wonderful you! decide to create an app to help your friend.
W doesn’t like computers but trusts you to create a reliable, friendly app that’s easy to use.
InstructionsCreate a C++ program that fulfills these requirements:Greets your friend W by name.
Asks W whether they are tired and accepts W’s input.
Asks W how many square feet of surface they need to paint.
Calculates how many hours the job will take them to complete, given that they are tired or not tired.
Displays the number of hours needed to complete the job.
Meets our class coding standard with proper indentation and comments, including file comment header and main function comment header.
Your program’s outputOutput the number of hours W will paint as a decimal number. For instance, a tired W will paint 200 square feet in 1.0 hours. A non-tired W will paint 200 square feet in 0.5 hours, or 600 square feet in 1.5 hours.
Your output should use at most one place to the right of the decimal point. For instance, display 5.3 not 5.28.
Use a text message to tell your user what the output means. For instance, “Painting 980 square feet will take you 4.9 hours.”
Your output should always give good UX (for noobs, that’s User eXperience). Show off your design skills or keep it simple, but always treat your users right!
Fix typos – these give a bad impression.
Display status messages – don’t make your users guess what’s happening!
Add blank output lines for easy reading and less eye strain.
If you get fancy with console text color, make text easy to read and be sure to RESET the user’s text color.
Always ask yourself: “If I needed to use this app I wrote, would I like it?”
What to submitYour code should run with no errors before you submit the assignment. Reach out if you need help fixing errors!
Submit your .cpp file with completed C++ source code.
If you used ansi-colors.h for color output, submit your ansi-colors.h also. I need all your project files to build and run your code.
2 peer reviewsPart of your score is for completing peer reviews for two (2) classmates’ code. Give your classmates the kind, useful feedback you’d like to get.Assignment 1 Rubric
Assignment 1 Rubric
CriteriaRatingsPts
This criterion is linked to a Learning OutcomeRuns correctly according to the assignment instructions.Submitted code shows that you carefully followed the assignment instructions. All required features are present and each feature works correctly.
10 to >7.0 ptsGood job!
7 to >0 ptsNot yet…
10 pts
This criterion is linked to a Learning OutcomeFollows class coding standardUses appropriate and descriptive variable names and proper indentation. Has file comment header and main function comment header.
10 to >7.0 ptsGood job!
7 to >0 ptsNot yet…
10 pts
This criterion is linked to a Learning OutcomeSubmitted code compiles with no errors and runs without crashing.
10 ptsGood job!
0 ptsNot yet…
10 pts
This criterion is linked to a Learning OutcomeGood UXUser prompts are informative and presented neatly. Output is neatly formatted and easy to read. User interface follows a consistent scheme for a good User eXperience.
10 to >7.0 ptsGood job!
7 to >0 ptsNot yet…
10 pts
Total Points: 40