1. Write the pseudocode for the following problem. Ask the user for number of people...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
1 Problem Statement Pseudocode Input Ages names and the number of individuals Output Results incl... View the full answer
Related Book For
Systems Analysis And Design
ISBN: 978-1119496489
7th Edition
Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth
Posted Date:
Students also viewed these programming questions
-
3. For x, y R, define 1, xy d(x,y) = (0.1) x = y. (a) Prove that d defines a metric on R. (b) Find N, (0), where N,(0) = {x R d(x, 0)
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
In this programming assignment you will practice using ArrayLists, Inheritance and Polymorphism. You are to write a game called Magical Creatures War. You will do this by implementing a class called...
-
Given the definition of the radian angle: S l Where [s] = m, [4] = m What are the dimensions of angles? A. No way to know B. meters, m C. 1 (or no units/dimensions) D. seconds, S E. kilograms, kg
-
The semicircular arch is subjected to a uniform distributed load along its axis of w0 per unit length. Determine the internal normal force, shear force, and moment in the arch at angle . Given: =...
-
For the past 62 years, your grandfather has been putting $100 each month into a cookie jar. How much MORE would he have earned if he had deposited the money in a bank that paid an 8% interest...
-
Chemical and mechanical engineers often need to know the vapor pressure of water at various temperatures (the "infamous" steam tables can be used for this). Below are data on the vapor pressure of...
-
PrideTalk Corp., reporting under ASPE, has provided the following information regarding its intangible assets : 1. A patent was purchased from Marvin Inc. for $1.2 million on January 1, 2013....
-
How do servant leaders prioritize the well-being and development of their team members, fostering a supportive environment that encourages autonomy, mastery, and purposeful engagement ?
-
Murphy Delivery Service completed the following transactions during December 2018: Dec. 1 Murphy Delivery Service began operations by receiving $13,000 cash and a truck with a fair value of $9,000...
-
You need to write a paper about the Role of Reform Movements towards Improved Democracy in USA.
-
The final slide asking for questions features a picture of pastry. Assume that youd like a picture that will help spark interesting questions. What picture(s) or text could the slide contain, instead...
-
Implement the transfer function below using a parallel realization with the minimum number of multipliers: \[H(z)=\frac{z^{3}+3 z^{2}+\frac{11}{4}+\frac{5}{4}}{\left(z^{2}+\frac{1}{2} z+\frac{1}{2}...
-
This presentation uses a consistent visual style and template. In your opinion, does it work well with this presentation? If so, why? If not, why not?
-
Repeat parts (a) through (c) of Problem 12 assuming that Carlisle's board of directors has decided that since this action is based on a Federal government citation, no financial gain should be...
-
This presentation includes a number of bullet-point slides. Are the bullets parallel? Are any slides too crowded? Are there any slides you would recommend revising?
-
Compressed air coming out from a punctured football a. becomes hotter O b. remains at the same temperature O c. becomes cooler O
-
All of the following assets can be depreciated, except: (a) A bulldozer (b) A copper mine (c) A surgical robot (d) A conveyor belt
-
Create a set of use cases for the following health club membership system: When members join the health club, they pay a fee for a certain length of time. Most memberships are for one year, but...
-
Work has proceeded well on the Williams Specialty Company engagement. The staff members were able to work effectively through the process of use case modeling, and the team has begun the development...
-
Suppose that you are the project leader for the development of a new Web-based course registration system for your university that replaces an old system in which students had to go to the coliseum...
-
Discuss the employment-at-will doctrine.
-
Discuss under what conditions unemployment compensation can be denied to a claimant.
-
Discuss why employment disclaimers are important to the employer.
Study smarter with the SolutionInn App