Following is a problem statement. Which of the below algorithms should be used to solve the problem statement? Write a p
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Following is a problem statement. Which of the below algorithms should be used to solve the problem statement? Write a p
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
Following is a problem