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

Which statements about the modification of chromatin structure in eukaryotes are true? select all that apply. view available

Which statements about the modification of chromatin structure in eukaryotes are true? select all that apply. view available hint(s) select all that apply. deacetylation of histone tails in chromatin loosens the association between nucleosomes and dna. methylation of histone tails in chromatin can ...
3 answers

You run m miles on friday the same amount on saturday and 4 miles on sunday

You run m miles on friday the same amount on saturday and 4 miles on sunday...
3 answers

I work for going a big company

I work for going a big company...
3 answers

What greek letter are used in the precise definition of a limit?

What greek letter are used in the precise definition of a limit?...
6 answers

Can anyone me with this? i haven't went to classes and i need this answered real quick.

Can anyone me with this? i haven't went to classes and i need this answered real quick. anyone know it? given the formula y=mx+b, what is the slope of a line, m, if x = 5, y = 7, and b = 10? a) the slope is 3/5 b) the slope is 5/3 c) the slope is -3/5 d) the slope is -5/3...
3 answers

The measures of a cuboid are 9 m, 4 m and 3 m. Howmany boxes each measuring 40cm, 30 cm and 10 cmcan be kept inside the cuboid

The measures of a cuboid are 9 m, 4 m and 3 m. Howmany boxes each measuring 40cm, 30 cm and 10 cmcan be kept inside the cuboid ?​...
3 answers

How to find zeros of a polynomial using synthetic division?

How to find zeros of a polynomial using synthetic division?...
4 answers

Someone asappp pleade ansswr all of yhese ​

Someone asappp pleade ansswr all of yhese ​ [tex]Someone asappp pleade ansswr all of yhese ​[/tex]...
3 answers

There is a sales tax of $6 on an item that costs $63 before tax. a second item costs $210 before tax.

There is a sales tax of $6 on an item that costs $63 before tax. a second item costs $210 before tax. what is the sales tax on the second item?...
4 answers

Which statement most accurately describes the process of respiration?It occurs only in plants during daylight hours and involves

Which statement most accurately describes the process of respiration? It occurs only in plants during daylight hours and involves ingestion of preformed organic molecules It occurs continuously in the cells of all organisms and involves the synthesis of organic molecules It occurs continuously in t...
9 answers

Help me_

Help me_ [tex]Help meeee__________[/tex]...
10 answers

Which is most likely a covalent compound? nacl kcl cuf2 cf4

Which is most likely a covalent compound? nacl kcl cuf2 cf4...
8 answers

What was the “grito de dolores”

What was the “grito de dolores”...
4 answers

Expand (3x+8)^2 if necessary, combine like terms

Expand (3x+8)^2 if necessary, combine like terms...
4 answers

Find the equation of the line. use exact numbers

Find the equation of the line. use exact numbers [tex]Find the equation of the line. use exact numbers[/tex]...
3 answers

When you copy a formulaQuestion 10 options:Excel erases the original copy of the formulaExcel edits cell references in the newly copied

When you copy a formula Question 10 options: Excel erases the original copy of the formula Excel edits cell references in the newly copied formula Excel adjusts absolute cell references...
3 answers

What inspired the Third Estate’s ideas of reform for government

What inspired the Third Estate’s ideas of reform for government...
4 answers

Pasagot po ako plsss kailangan kona po ngayon nasa kabila po yung isa​ pls

Pasagot po ako plsss kailangan kona po ngayon nasa kabila po yung isa​ pls [tex]Pasagot po ako plsss kailangan kona po ngayon nasa kabila po yung isa​ plsssss[/tex]...
4 answers

Asentence that reveals what the body paragraph will be about.

Asentence that reveals what the body paragraph will be about....
2 answers

3. Graph the system of linear inequalities. Show work for writing inequalities in slope-interceptform. Make sure the solution

3. Graph the system of linear inequalities. Show work for writing inequalities in slope-intercept form. Make sure the solution region is clear in your graph. 2x <-y +9 -2y - 62-2x...

-- 0.052167--