Create and print out the two arrays

Assignment Help C/C++ Programming
Reference no: EM132107898

Programming Language: C++

Project  - Elevator

Objectives:

Use single arrays to solve a problem.

Use searching and sorting techniques on a single array.

Format output properly, according to the directions.

Use functions in a program to be able to reuse code.

Instructions:

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                30

            Bob                  150

            Ralph               305

            Tim                  225

            Barbara           135

            Jane                 160

            Steve               80

            Tom                 200

            Mike                165

            Shirley             90

            Pam                 100

            Frank               120

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 descending 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 ascending 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.

This program should include:

2 sort methods

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

a print method 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.

Run:

You only have to run this program once since the data is embedded in the program.

Reference no: EM132107898

Questions Cloud

Interest payments are made semiannually : The coupon rate is 7% and the interest payments are made semiannually. What is its YTM? (Show workings)
Return on equity for similar stocks : The dividend is expected to grow at a 7% annual rate. The return on equity for similar stocks is 14%. What is P0? (Show workings)
Write a recursive method : You will need to recurse on n/4 rather than n-1. That's because the method is called with some big values .
Difference between the cash cycle and the operating cycle : What is the difference between the cash cycle and the operating cycle? Under what condition would they be the same?
Create and print out the two arrays : Create and print out the two arrays: (Be sure to do this first) You are allowed to hard code these arrays into your program.
What could be the cause in the increase t the value : What does it mean to have a higher inventory turnover ratio (compared to the annual year before)? What could be the cause in the increase t the value?
Create a webpage similar to the one shown : Create a webpage similar to the one shown in Figure 12-25. The image on the webpage is stored in the VB2015\ Chap12\Carnival.png file.
Will you recommend someone to invest in it or not : Say that the company's current and quick ratios are 0.59 and 0.46 respectively, while its competitors' are 1.39 and 1.23?
Reports the total number of bearings : Reports the number of valid, invalid, good, bad, and total bearings after reading in each bearing size (e.g. within the loop).

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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