Page 1 of 1

Following is a problem statement. Which of the below algorithms should be used to solve the problem statement? Write a p

Posted: Sun Jul 10, 2022 11:25 am
by answerhappygod
Following Is A Problem Statement Which Of The Below Algorithms Should Be Used To Solve The Problem Statement Write A P 1
Following Is A Problem Statement Which Of The Below Algorithms Should Be Used To Solve The Problem Statement Write A P 1 (45.08 KiB) Viewed 46 times
Following is a problem statement. Which of the below algorithms should be used to solve the problem statement? Write a program that allows the user to enter the age of a mother and her daughter in years. Calculate the sum of their age, the difference in their age and the product of their age. Show the output on the screen. Select one: O a. AgeCalculation display "Provide the first number" enter number1 display "Provide the second number" enter number2 sum = number1 + number2 difference = number1-number2 mmdart= product = number1*number2 display "The sum is", sum display "The difference is", difference display "The product is", product end O b. AgeCalculations end display "Provide the age of the mother enter motherAge display "Provide the age of the daughter enter daughterAge sum = motherAge + daughterAge difference motherAge-daughterAge product = motherAge* daughterAge display "The sum is", sum display "The difference is", difference display The product is", product end O cAgeCalculations enter motherAge enter daughter Age sum motherAge + daughterAge difference motherAge-daughterAge product = matherAge/daughterAge display sum, difference, product O d. AgeCalculations display "Provide the age of the mother enter motherAge display "Provide the age of the daughter" enter daughterAge sum = motherAge + daughterAge difference motherAge-daughterAge product = matherAge/daughterAge display "The sum is", sum display "The difference is", difference display The product is", product end Q45 Not yet ed Marked out of 1.00 Paqution