Question: 1. Write the pseudocode for the following problem. Ask the user for number of people For each person, ask for the name and age
1. Write the pseudocode for the following problem. Ask the user for number of people For each person, ask for the name and age in years and store the data in 2 arrays. Display the heading "***Age Report***** Display the name and the age one line at a time for everyone For each person, calculate age in days and store in another array. Assume 365 days in a year Calculate the total age in days and average age in days Display the heading "***Final Report**** Display name, age in years, age in days, total age in days, average age in days 2. Write the Raptor code for problem 1. Here is a test run: Enter number of people: 2 Enter name: Bob Enter age: 20 Enter name: Jack Enter age: 30 ***Age Report*** 20 30 Bob Jack ***Final Report*** 20 30 Bob 7300 Jack 10950 Total age in days: 18250 Average age in days: 9125
Step by Step Solution
There are 3 Steps involved in it
1 Problem Statement Pseudocode Input Ages names and the number of individuals Output Results incl... View full answer
Get step-by-step solutions from verified subject matter experts
