Saturday
May 25, 2013

Homework Help: pseudocode

Posted by Anonymous on Saturday, March 3, 2012 at 6:24pm.

Assume that your family has 10 members. Assume further that each family member has a certain amount of savings. Your task is to determine: (a) the total amount of savings that the family has, as a whole and (b) to determine who has the largest savings. To solve this problem:

a. Show the pseudocode declarations needed to declare two arrays - one an array which contains the names of the family members, and the other an array which contains the savings (i.e. money) held by each family member. The arrays are parallel arrays because the savings shown in the second array for a certain array position are the savings for the family member whose name appears in the same position in the first array.

b. Write a function, which is called from the main module - this function will determine and return the total savings.

c. Write a function also called from the main module - this function will determine and return the array index containing the largest savings. Your main program should then print the name of the person who holds those savings, as well as the amount

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

English expression - How many are there in Mi-na's family? There are five in...
English expression - 1. How many are there in your family? 2. How many people ...
Math 10 Linear Equations - Kevin opened a bank account and plans to deposit $200...
healt - Consider this scenario: Deana recently decided to start attending ...
mathematics - Consider the composition of a three-child family. Assume that a ...
English - Hi, I am preparing for a english ISU presentation where my job is to ...
science - Never found in nature uncombined? Alkali metals Alkaline Earth Metals ...
physical science - do not noramlly react with other elements? Alkali metals ...
Physical science - Never found in nature uncombined? Alkali metals Alkaline ...
Data managment math - 1:There are 7 seats in the family new van. if 4 of the 7 ...

For Further Reading

Search
Members
Community