Flowchart in programming

1 answer
Question:

Flowchart in programming

Answers

The pseudocode is as follows:

Input coursename, numgrades

count = 1; totalgrades = 0

while count <= numgrades:

   input grade

   totalgrade+=grade

   count++

average = totalgrade/count

print(coursename)

print(average)

Explanation:

The solution is as follows:

(1) See attachment for flowchart

(2) See answer section for pseudocode

Explanation

Input coursename and number of grades

Input coursename, numgrades

Initialize count of grades input by the user to 1 and the sum of all grades to 0

count = 1; totalgrades = 0

This loop is repeated while count of grades input by the user is less than or equal to the numgrades

while count <= numgrades:

Input grade

   input grade

Add grades

   totalgrade+=grade

Increase count by 1

   count++

End of loop

Calculate average

average = totalgrade/count

Print coursename

print(coursename)

Print average

print(average)

C. Summary of the flowchart

The flowchart gets coursename and the number of grades from the user. Then it gets the score of each grade, add them up t calculate the average of grades.

Lastly, the course name and the average grades is printed


[tex]Calculate The Average of Grades Instructions: Please read the following problem carefully. You will[/tex]

Similar Solved Works

10 answers

1. food source that contains all the essential amino acids vitamin c 2. an excellent source of vitamin

1. food source that contains all the essential amino acids vitamin c 2. an excellent source of vitamin c and vitamin a sucrose 3. linked to increased immunity and the destruction of toxic substances within the body citrus fruits 4. found in yellow and green vegetables and fruits fructose 5. ...
3 answers

I'll give u wtvr u want

I'll give u wtvr u want [tex]I'll give u wtvr u want[/tex]...
8 answers

What is the legal BAC for teens in the state of California?

What is the legal BAC for teens in the state of California?...
10 answers

Which level of government is responsible for fire protection and police? Answers: 1: State 2: Local

Which level of government is responsible for fire protection and police? Answers: 1: State 2: Local 3: National 4:Continental...
3 answers

Think about a time you heard a sound come from another room in your house. How did those sound waves

Think about a time you heard a sound come from another room in your house. How did those sound waves get to you if there were obstacles like walls in the way?...
3 answers

What is the square footage of a triangle piece of plastic with a base of 18cm and a height of 25 cm. 12 points

What is the square footage of a triangle piece of plastic with a base of 18cm and a height of 25 cm. 12 points...
5 answers

Performance goals are used to a. measure productivity. b. determine a worker's attitude. c. communicate nonverbally. d.

Performance goals are used to a. measure productivity. b. determine a worker's attitude. c. communicate nonverbally. d. measure effectiveness, but not efficiency....
4 answers

Im doing Financial position throughout the life cycle homework and i would like to know Chuck And Wendy's investment assets and

Im doing Financial position throughout the life cycle homework and i would like to know Chuck And Wendy's investment assets and total assets?...
6 answers

The head of state in a republic such as the United States is often referred to as which of the selections

The head of state in a republic such as the United States is often referred to as which of the selections below?...
4 answers

One number is seven more than the other. Their sum is fifteen. Find the numbers.

One number is seven more than the other. Their sum is fifteen. Find the numbers....
7 answers

MORE MATHThe graph shows the cost of a taxi ride depending of the number of miles traveled. What dose the rate of change tell us?Question 10 options:The

MORE MATH The graph shows the cost of a taxi ride depending of the number of miles traveled. What dose the rate of change tell us? Question 10 options: The total fare was $35.00. The cabbie drives at a rate of 5 miles per hour. The cab rate is $5 per mile. The cab went a total of 6 miles. ...
4 answers

Here is your goal for this assignment:Write an essay applying a scripture passage and economic principles that you have studiedRead

Here is your goal for this assignment: Write an essay applying a scripture passage and economic principles that you have studied Read Proverbs 31:10-27. How does this passage of Scripture apply to what you have learned so far about economics? Your response should be 250 words in length....
5 answers

The voting cast directly by the people is called the popular vote. True or false

The voting cast directly by the people is called the popular vote. True or false...
3 answers

-6x - 73 = 12x + 143 = …I need help .

-6x - 73 = 12x + 143 = … I need help ....
2 answers

(ellen has 2 quarters 1 dime and 1 nickel how many different amounts of money can you make using 1 ore more of these clubs

(ellen has 2 quarters 1 dime and 1 nickel how many different amounts of money can you make using 1 ore more of these clubs )...
10 answers

What are the most effective ways of reducing a huge budget deficit?

What are the most effective ways of reducing a huge budget deficit?...
12 answers

Please do as instructed! thank you! :)

Please do as instructed! thank you! :) [tex]Please do as instructed! thank you! :)[/tex]...
4 answers

Pendulum clocks generally run fast in winter and slow in summer

Pendulum clocks generally run fast in winter and slow in summer...
10 answers

Which idea is a fundamental principle of the articles of confederation

Which idea is a fundamental principle of the articles of confederation...
10 answers

Nail tips exert tremendous pressures when they are hit by hammers because they exert a large force over a small area. What force

Nail tips exert tremendous pressures when they are hit by hammers because they exert a large force over a small area. What force (in N) must be exerted on a nail with a circular tip of 1.55 mm diameter to create a pressure of 3.08 ✕ 109 N/m2? (This high pressure is possible because the hammer stri...

-- 0.060304--