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

  Writing application to accept loan amount-interest rate

Write down the application to accept a loan amount, annual interest rate, and loan period (in number of years) and displays a table with five columns.

  Implicit unsafe type conversions-statements and expressions

Write a report using APA format for references that researches the definition of the language with respect to implicit unsafe type conversions in both assignment statements and expressions.

  Program that prompts user to enter five test scores

Write the algorithm for a program that prompts the user to enter five test scores.

  Timer interrupt to coordinate peripherals on microcontroller

The timer interrupts to coordinate peripherals on the microcontroller. Use code from prior labs to drive the peripherals and will make minor modifications to use the interrupts.

  Evaluate the fibonacci series

Write a program to evaluate the first 20 numbers of Fibonacci series.

  Program to print total balances forward and total withdrawal

At the end of report, print total balances forward, total deposits, total interest earned, total withdrawals and total final account balances.

  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.

  What is java adapter class

What is Java adapter class.

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Program to compute unit price of items sold

Manager of a Supermarket would like to be able to calculate the unit price of items sold there. To do this the program should input the name and the price of the item.

  Program to prompt a user for hourly pay rate

Create program called "calculatePay" which will prompt user for their hourly pay rate.

  Application development and programming languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of:

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