Computer Science, asked by anitabishtbisht9768, 23 hours ago

Q.1) Draw flowcharts to represent the solution of following programming problems. a. To print the first 10 natural numbers. b. To convert entered Rupees into Japanese Yen. (1 Indian Rupees=1.52 Japanese Yen) c. To check whether a person can vote or not and display an appropriate message as the case may be. d. To print your name five times. e. To accept three numbers and find their average. If the average is greater than 80, print “Good”, otherwise print “Work Hard”.​

Answers

Answered by archismanadak
1

Answer:

can you send only one question at a time

Answered by steffiaspinno
1

Please find the answer in the attached images.

Explanation:

In a flowchart,

The oval shape signifies terminal which is either start, stop or halt.

The parallelogram signifies input or output operations

The rectangle signifies arithmetic and data movement operations.

The diamond signifies a decision that needs to be made and here, a branching is needed.

The arrow tells us about the direction the flowchart is progressing.

a. Step 1: the terminal is started then a variable "n" is taken with that assigned value 1.

Step 2: If the value of n is less than 1 then we print it.

Step 3: increase the value of n by 1.

Step 4: If the value of n is more than 10 the program is stopped as we only need to print the first 10 natural numbers.

b. Step 1: The terminal is started then a variable R is taken signifying Rs.

Step 2: The program the converts it into Yen using the value provided in the question.

Step 3: The Yen counterpart is printed and the program ends.

c. Step 1: The terminal is started then a variable age is taken where the user puts in their age.

Step 2: In the decision making tab, it is checked if the age is below 18.

Step 3: If yes, the person is not allowed to vote and the same is printed. If no, then the person is allowed to vote and we print the same.

Step 4: The program ends after the printing.

d.  Step 1: The terminal is started then a variable "n" is taken with that assigned value 1.

Step 2: If the value of n is less than 1 then we print your name.

Step 3: Increase the value of n by 1.

Step 4: If the value of n is more than 5 the program is stopped as we only need to print the name 5 times.

e. Step 1: The terminal is started then 3 variables a, b, c  are taken where the user puts in their desired value.

Step 2: Then the sum of these numbers is calculated after which their average is taken.

Step 3: In the decision making tab, it is checked if the average is below 80.

Step 4: If yes, then word hard is printed. If no, then we print good. the program ends after the printing.

Attachments:
Similar questions