Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pseudocode Consider the Homework Point Sum problem below. The problem states: Get all homework scores for one student, calculate and display the sum of the

image text in transcribed
image text in transcribed
Pseudocode Consider the Homework Point Sum problem below. The problem states: Get all homework scores for one student, calculate and display the sum of the scores, and also display the word "fail" ifthe sum is lower than 150. Note: we do not know how many homework scores each student will enter Think about different ways this problem could be implemented A. Ask the user how many homework scores there are at the beginning. Then, ask for a homework score at a time, for as many times as indicated by the user B. Ask for homework scores, one at the time, and have user enter"-1" or "stop" or "quit" at the end (some sentinel word) C. After each score is entered, ask the user if they have more scores to enter. If they say "Yes", ask them to enter the next score. If they say "No", then you now know you have all the scores and you can compute the sum. Let's look at one possible sample run for version A (the values entered by the user will be shown in the red color) Welcome to the Homework Point Sum program! How many assignments did you complete? 5 Enter score 1:30 Enter score 2:25 Enter score 3: 14 Enter score 4: 42 Enter score 5: 23 Homework point sum is 134 Fail

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago