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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post 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 45 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply