Exercises 1-2. Use Flowgorithm or SFC for the Programming Exercises. Please upload your solutions and provide a Word document containing the Programming Exercises.
sum,
Set total total + sum
set sum = 0
End For
Display “The total of all the sets 1s”, total,
Programming Exercises
eoNote
1. Bug Collector
A bug collector collects bugs every day for seven days. Design a program that
keeps a running total of the number of bugs collected during the seven days. The
loop should ask for the number of bugs collected for each day, and when the loop
is finished, the program should display the total number of bugs collected.
Bud collector
Jem
2. Calories Burned
Running on a particular treadmill you burn 3.9 calories per minute. Design a pro-
gram that uses a loop to display the number of calories burned after 10, 15, 20, 25,
and 30 minutes.
3. Budget Analysis
Design a program that asks the user to enter the amount that he or she has budg-
eted for a month. A loop should then prompt the user to enter each of his or her
expenses for the month, and keep a running total. When the loop finishes, the
program should display the amount that the user is over or under budget.
4. Sum of Numbers
Design a program with a loop that asks the user to enter a series of positive num-
bers. 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 their sum.