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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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