Create an array of boat objects

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

(1)Create Classes for each of the object types that need to be stored, as indicated above.

 (2) Create an array of Customer objects. You should populate the array with 4 to 6 customers, entering information into all fields of the Customer object. Again they should be created in "non-alphabetical" and "non-numeric" order as far concerns their last name and customer ID. (Again, see Note #3 in Programming Notes below to understand how to populate Objects with data.)

• Display the total number of customers that exist.

• Print Customer information about each customer. You can either print all information (fields), or print customer ID, last name, first name, boat number, and slip number (excluding address and phone number).(See Notes #4 and #5 in Programming Notes below.)

• (3) Create an array of Boat objects. You should populate the array with as many boats as you have customers (since we assume one boat per customer), entering information into all fields of the Boat object. (The boat numbers in the Customer and Boat objects should match.)

• Present the "total" value of all boats moored at HVM as a sum (in dollar amount, formatted properly).

• (4) Create an array of Slip objects. You should populate the array with 10 slips, entering information into all fields of the Slip object. (Make sure that all customers have a valid slip number in their information, and mark that slip as rented.)

• Display the total number of slips that exist.

Reference no: EM13325535

Questions Cloud

Determine the interval where the function is concave up : Consider the following function. f(x) = x^3 ln x b) Use l'Hospital's Rule to determine the limit as x ? 0+, c) Use calculus to find the minimum value., d) Find the interval where the function is concave up.
Estimate the average force exerted by a shot-putter : Estimate the average force exerted by a shot-putter on a 7.0 kg shot if the shot is moved through a distance of 2.8 m and is released with a speed of 13 m/s
Compute the moment of inertia around the center of mass : Two small charges with a mass of 1.0 g each are connected by 2.0-cm-long insulating rod of negligible mass. Obtain the moment of inertia around the center of mass
Calculate the maximum distance up the ramp : A box of unknown mass begins at the base of a 30 degree ramp with an initial velocity of 10.0 m/s. calculate the maximum distance up the ramp which the box will reach
Create an array of boat objects : Create Classes for each of the object types that need to be stored, as indicated above.
Find the momentum and the kinetic energy of each : An electron and a proton are accelerated starting from rest through a potential difference of 10 million volts. Find the momentum (in MeV/c) and the kinetic energy (in MeV) of each
Explain what happens to price and quantity of oil : Congressional action taht allows oil drilling operation in more areas of the Alaska preserve.
Calculate the energy-density of this new fuel : A new plant oil is discovered that is easy to recover from the plant and it might be a useful fuel. A question is the energy density of the fuel. Calculate the energy-density of this "new fuel"
Find the charecteristic frequency of this mass on the spring : A spring stretches 0.05 m when a 0.3 kg mass is suspended from it. find the charecteristic frequency of this mass on the spring

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Implemented a regular binary search tree

In Computer Science I, you implemented a regular binary search tree. Due to your busy schedule, you've decided that it would be best if you could simply reuse this code without any changes. You realize that your code would ONLY work for Arup's ass..

  Write c++ program that reads in the average monthly rainfall

Write a C++ program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months

  Build a table of reynolds numbers at flow velocities

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

  Asks the user for the name of an input file and translates

Write a C++ program that asks the user for the name of an input file and translates the contents of that input file using ROT13. Your  main  function should be responsible for reading the input file and coordinating calls to a value-returning functio..

  Take an n x n matrix, and create a new, (n-1) x (n- 1)

take an N x N matrix, and create a new, (N-1) x (N- 1), matrix with each element being the sum of four nearby elements. You need to figure out a way to break the matrix up into squares and iterate through the matrix, while staying within its bounds.

  Putting objects within objects is the essence of composition

Putting objects within objects is the essence of composition. It is called composition for obvious reasons. As we always say that if something is made from other things that it is composed from those things.

  Write a program that contains a main function

Write a program that contains a main function and three other functions that will return various attribute information about an array of floating point

  Gstring manipulation functions

Write a program that will define the followingstring manipulation functions. Each is analogous to the corresponding C++ string function.

  Creates a macro to calculate the area

Build a program that creates a macro to calculate the area of a circle using the formula area = pie x radius x radius. In the same program, prompt the user to enter a circle's radius. Use the macro to calculate the circle's area and display the re..

  Using visual c++ and your opengl configured environment

Using Visual C++ and your OpenGL configured environment, write an application that uses OpenGL Raster transformations to draw a triangle of your choice of size, location and color, and then rotate that triangle by 90 degrees and scale it by a fact..

  Write program which inputs number of winning coupons

Write a program which inputs number of coupons you win and outputs how many candy bars and gumballs you can get if you spend all off your coupons on candy bars first and remaining coupons on gumballs in c++.

  Define a function named average grade

Define a function named average grade. This function returns a double and has four double arguments, testi, test2, test3, test4. The return value should be the average, or arithmetic mean of the four arguments.

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