Question: write the program in c++ Assignment Write a program that tracks how much calorie the user burns in total in a day and reports if

write the program in c++
write the program in c++ Assignment Write a program that tracks how

Assignment Write a program that tracks how much calorie the user burns in total in a day and reports if the daily target is reached or not. The program will keep reading double values, each representing calories burned during an individual activity within a day (calorieBurned) until either the user enters or the daily target of 1800 calories is met. If the user enters 0. the program should print total calories burned as a double Otherwise, the program should notify the user has reached the daily target by printing the text "Target is reached in", followed by the number of activities given as an int. and finally printing the text activities NOTE: You MUST use a repetitive statement in this question, NOTE: Each calorieBurned value will be given as a non-negative value. You do NOT need to check this, Input 1000 500 300 50 504 320 300 500 900 600 Target is Target is reached in 4 Output reached in 3 554.32 activity(ies) activities) Answer assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!