Program to return the array index having largest savings

Assignment Help Programming Languages
Reference no: EM1347187

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 down function also called from main module - this function will find out and return 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.

Reference no: EM1347187

Questions Cloud

How two charged dust particles exert a force : A diving board of length 3.00m is supported at a point 1m from the end, and a diver weighing 520 m stands at the free end . The diving board is of uniform cross section and weighs 270m.
Determining the customer margin : Suppose the company decides instead to employ a traditional costing system in which ALL costs are allocated to customers on basis of cleaning hours. Evaluate the margin for the Lazzara family.
Determination of current value of stock : Currently a company is receivings $3.80 per share and has a dividend payout ratio of 70 percent today and in the foreseeable future. Beginning next year EPS is expected to increase by 30 percent for three years.
Asymmetric information and agency cost theories : Should we discard agency theory and asymmetric information - explain
Program to return the array index having largest savings : Write down function also called from main module - this function will find out and return array index containing the largest savings.
Describing of activity based costing : Define and describe activity based costing. Also employ some real-life examples of how companies implement this management tool. Offer some comparisons and contrasts and pros and cons from different stand points on this topic.
Define minimum coefficient of static friction between tires : A race car starts from rest on the circular track of radius 455m. The car's speed increases at the constant rate of 0.480m/s2. At the point where magnitudes of the centripetal and tangential accelerations are equal.
Value of beta for coca-cola-funding for investment projects : Examine the structure and activities in your organization and identify two projects or events that required an investment. One should be a 'current project' and the other long-term investment project.
Product liability-regulatory agencies : Pick a product you are familiar with or interested in. What product liability issues arise for that product? What measures can management take to prevent these product liability problems from arising? How can they minimize legal risk involving the..

Reviews

Write a Review

Programming Languages Questions & Answers

  Technical project: sample website project

Technical Project: Sample Website Project , This assignment consists of three (3) sections: a narrative, a storyboard, and a business Website. You must submit all three (3) sections for the completion of this assignment.

  Two-level memory cache hierarchy

Explain how you would pipeline the four following pairs of statements.

  Ethics and social responsibility

Ethics and social responsibility at McDonalds

  Hierarchy of processes

Write a program that creates a hierarchy of processes using the fork() system call.

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Travelling salesman problem

Travelling Salesman Problem on the L1-metric plane.

  Php script to obtain url and its description from user

Write a PHP script to obtain URL and its description from user and stores information into database by using MySQL.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Learn redirecting standard output

Learn redirecting standard output (stdout) to a file using the output redirection operator

  Accuracy and completeness of computations

Analysis right and you have to develop a plausible argument to "prove" that your analysis is correct

  Writing a class

Build a class for a type called Fraction

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd