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

4 answers

For the following reaction, 63.6 grams of barium hydroxide are allowed to react with 34.1 grams of sulfuric acid .barium hydroxide(aq)

For the following reaction, 63.6 grams of barium hydroxide are allowed to react with 34.1 grams of sulfuric acid . barium hydroxide(aq) + sulfuric acid(aq) -> water(l) + barium sulfate(s) What is the maximum amount of barium sulfate that can be formed?What is the FORMULA for the limiting reagen...
5 answers

It is used to as a strategy to convince readers of the truth of the writer's position. it is called

It is used to as a strategy to convince readers of the truth of the writer's position. it is called a claim....
7 answers

Please change the verb in the parentheses to the correct preterite form to match the subject .Uds.(nadar) en la piscina el sábado pasado.

Please change the verb in the parentheses to the correct preterite form to match the subject . Uds.(nadar) en la piscina el sábado pasado....
10 answers

Explain how you could write a quadratic function in factored form that would have a vertex with an x coordinate of 3 and two

Explain how you could write a quadratic function in factored form that would have a vertex with an x coordinate of 3 and two distinct roots...
10 answers

Presentation software allows users to

Presentation software allows users to...
3 answers

A large crate sits on the floor of a warehouse. Paul and Bob apply constant horizontal forces to the crate. The force applied

A large crate sits on the floor of a warehouse. Paul and Bob apply constant horizontal forces to the crate. The force applied by Paul has magnitude 48.0 N and direction 61.0∘ south of west. How much work does Paul’s force do during a displacement of the crate that is 12.0 m in the direction 22.0...
5 answers

Find the area of the figure : It's a parallelogram with the height of 12 1/2 and the base of 17 1/5 Note: Sorry I can't insert

Find the area of the figure : It's a parallelogram with the height of 12 1/2 and the base of 17 1/5 Note: Sorry I can't insert a picture TwT...
4 answers

The fundamental mechanism by which the energy is converted from one form to another in electrical machines is a. electrie

The fundamental mechanism by which the energy is converted from one form to another in electrical machines is a. electrie field b magnetie field d. inductive reactance...
4 answers

Fill in the blank: includes the continents, islands and the entire ocean floor

Fill in the blank: includes the continents, islands and the entire ocean floor...
4 answers

Most countries in Europe can be characterized as...Less DevelopedDevelopingMore DevelopedUnder Developed

Most countries in Europe can be characterized as... Less Developed Developing More Developed Under Developed...
10 answers

Need Help with these questions ASAP!! 1. How did the automobile industry change American society? 2. Why did the economy grow

Need Help with these questions ASAP!! 1. How did the automobile industry change American society? 2. Why did the economy grow so rapidly in the 1920s? 3. How did Americans respond to immigration and social change during the 1920s? 4. In what areas did women gain power during the 1920s? 5. How did 1...
6 answers

Democratic Concepts ChartDirections: Use your knowledge from the lesson to fill in the missing content in the charts below.

Democratic Concepts Chart Directions: Use your knowledge from the lesson to fill in the missing content in the charts below. Once you have completed your charts, be sure to answer the focus question at the bottom of the page. Tracing the roots of the American political process to Athens Ancient Gre...
10 answers

99 points what is the equation of the line graphed?

99 points what is the equation of the line graphed? [tex]99 points what is the equation of the line graphed?[/tex]...
10 answers

What is accerlation​

What is accerlation​...
3 answers

What is the meaning of the death of Argus? (what is significant about it?)

What is the meaning of the death of Argus? (what is significant about it?)...
4 answers

Please help me so thequestion is which one of these is a photograph can u help me ASAP ? Please

Please help me so the question is which one of these is a photograph can u help me ASAP ? Please [tex]Please help me so the question is which one of these is a photograph can u help me ASAP ???? Ple[/tex]...
3 answers

A person who has a conversion disorder may complain of which kinds of problems? Select all that apply.

A person who has a conversion disorder may complain of which kinds of problems? Select all that apply....
3 answers

Solve the equation 5y – 7x = 7 for y. 7 7 Oy x+ o y = 35x + 35 Оу — als 7 5 o y= 35 – 35x​

Solve the equation 5y – 7x = 7 for y. 7 7 Oy x+ o y = 35x + 35 Оу — als 7 5 o y= 35 – 35x​ [tex]Solve the equation 5y – 7x = 7 for y. 7 7 Oy x+ o y = 35x + 35 Оу — als 7 5 o y= 35 – 35x​[/tex]...
4 answers

PLEASE HELPWhich expression is equivalent to sqrt 1-cos(10x) /2cos(5x)cos(20x)sin(5x)sin(20x)

PLEASE HELP Which expression is equivalent to sqrt 1-cos(10x) /2 cos(5x) cos(20x) sin(5x) sin(20x)...
4 answers

Select the correct answer from each drop-down menu.Carlos’s daughter Evie just turned two years old. Complete the sentences to describe

Select the correct answer from each drop-down menu. Carlos’s daughter Evie just turned two years old. Complete the sentences to describe the likely intellectual and emotional developments Evie will go through as a toddler. Evie is likely to . In addition, Evie may want to ....

-- 0.012580--