Computer Science
Write a pseudocode that will perform the following:
(a) Read the marks of three subjects: Computer Science, Mathematics and Physics out of 100.
(b) Calculate the aggregate marks.
(c) Calculate the percentage of marks.
Algo & Flowcharts
1 Like
Answer
Step 1: Input the marks in Computer_Science
Step 2: Input the marks in Mathematics
Step 3: Input the marks in Physics
Step 4: Set total_marks by adding marks in Computer_Science, Mathematics and Physics
Step 6: Set percentage by dividing total_marks by 300 and then multiply it by 100
Step 7: Display total_marks and percentage
Answered By
2 Likes
Related Questions
Write an algorithm that performs the following:
Ask a user to enter a number.
If the number is between 5 and 15, write the word GREEN.
If the number is between 15 and 25, write the word BLUE.
If the number is between 25 and 35, write the word ORANGE.
If it is any other number, write that ALL COLORS ARE BEAUTIFUL.Write an algorithm to find the greatest among two different numbers entered by the user.
Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the cake. An input of 1 means player 1 wins a flip, and a 2 means player 2 wins a flip. Design an algorithm to determine who takes the cake?
Write a pseudocode to print all multiples of 5 between 10 and 25 (including both 10 and 25).