Determine which people in the list above get on the elevator

Assignment Help Computer Engineering
Reference no: EM132208414

Write a program in c++ .

Part I:

Create and print out the two arrays: (Be sure to do this first) You are allowed to hard code these arrays into your program. The data is as follows:

Anne             150

          Bob               250

          Ralph            305

          Tim               250

          Barbara         85

          Jane              160

          Steve            180

          Tom              210

          Mike              165

          Shirley                    155

          Pam              125

          Frank            130

Part II: The elevators in our building have an 1100 lb. load limit. Determine which people in the list above get on the elevator. Print their names, weights, total weight, and how many got on.

Part III: Rearrange these people in asscending sequence by weight and print the two arrays. Determine again how many may ride the elevator, printing out their names, weights, total weight and the number of how many people got on.

Part IV: Rearrange these people in descending sequence by name (USE A DIFFERENT SORT ALGORITHM THAN THE ONE YOU USED IN PART III) and print the two arrays. Determine again how many may ride the elevator, printing out their names, weights, total weight and the number of how many people got on.

Part V: Have the program determine which method allowed the most people to get on the elevator. The program should compare the three different counts of how many people got on the elevator in each of the scenarios above - with the weight array as given, with the weight array in ascenging order, with the name array in descending order.

This program should include:

2 different sort functions

a function to determine how many people get on the elevator (will be called 3 times)

a print function which prints both arrays (include a size parameter and it can be called 6 times).

Make sure all methods are writen to handle n elements, not just 12. You can pass 12 from main to n in the method/function.

Reference no: EM132208414

Questions Cloud

Write a program in c that builds a contiguous list of 1 : Write a program in C that: a. Builds a contiguous list of 100 cells. b. Populates the cells with random numbers between 0 and 1000.
Why do governments usually apply a sales tax to the goods : Why do governments usually apply a sales tax to the goods that are characterized by an inelastic demand rather than elastic demand?
How many pounds will be purchased : The equilibrium exchange rate equals . At this exchange rate, how many pounds will be purchased, and at what cost in terms of dollars?
Briefly trace and discuss flow of blood in the human kidney : Briefly trace and discuss the flow of blood in the human kidney. Briefly identify the structure and trace the development of urine production in human kidney
Determine which people in the list above get on the elevator : Determine which people in the list above get on the elevator. Print their names, weights, total weight, and how many got on.
Construst a structure for international mobile telephone : Write a program in c++ to construst a structure for international mobile telephone number.
Ask the user how many integers that she wants to enter : Write a program in C++. Ask the user how many integers that he/she wants to enter. Using a for loop, ask the user for that many integers.
Discuss in what ways refugee crisis is international crisis : Discuss in what ways the refugee crisis is an international crisis and your views on how various nations have responded
Determine the expected return and the risk : Dunder Mifflin Paper Company is examining the purchase of a machine that will cost $50,000. The machine is expected to last 10 years and will have no salvage.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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