Professional Documents
Culture Documents
Activity #4
Activity #4
Activity 4
Repetition Structures
A. Calories Burned
You're working on a fitness app, and you want to help users estimate their calorie
expenditure during treadmill workouts. You know that running on a particular treadmill burns 3.9
calories per minute. Design a program that uses a loop to display the number of calories burned after
10, 15, 20, 25, and 30 minutes of running. Additionally, calculate and display the total calories burned
after all these durations.
a) Pseudocode
b) Flowchart
c) Program with screenshot of output
B. Sum of Numbers
You're developing a finance application that helps users keep track of their expenses. Create a
program with a loop that asks the user to enter a series of positive numbers representing expenses.
The user should enter a negative number to signal the end of the series. After all the positive
numbers have been entered, the program should display the following:
a) Pseudocode
b) Flowchart
c) Program with screenshot of output
www.batstate-u.edu.ph coe.alangilan@g.batstate-u.edu.ph