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

  A store with a bag of groceries

write C++ statements that remove all the items from storeBag and place them into one of two new bags, as follows: Place all occurrences of bread and eggs into fragileBag, and all other items into groceryBag. When you are done, storeBag should be empt..

  Template method patern from the strategy pattern

The template method pattern and the strategy pattern both abstract some computation in the form of methods. What de ning characteristic distinguishes the template method patern from the strategy pattern? Explain your answer.

  It would be cool if a device was actually part

Have you ever been low on cash and couldn't go beyond a certain dollar limit when shopping? You sort of need a calculator in your head. It would be cool if a device was actually part of the cart and as you add an item into the cart it would increm..

  State diagram to recognize one form

Design a state diagram to recognize one form of the comments of the C-based programming languages, those that begin with /* and end with */. and also Write and test the code to implement the state diagram.

  The program should support a ''new'' feature

Write a GUI program that represents a simple Notepad clone. The program should support a 'new' feature that clears the text buffer, a save feature that writes to a file using a PrintStream

  The mean and standard deviation

How do i write a program in c++ that use functions max, min, the total numbers, the mean and standard deviation to read a file text and return these values from the file text. note the file text has random numbers. note im not suppose to use arrays.

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

  Program on basic arithmetic operation

Two integers must be compared before the arithmetic operation and Subtract the two integers provided the first integer is greater than the second integer, otherwise add the two integers and subtract the second integer from the first integer.

  What information do you need to find the selling price

To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

  Initialize an array and fill the array with the gpa values.

Write a program in java that asks user input (using a loop) for name of 10 student and the corresponding grade point averages (GPAs). Initialize an array and fill the array with the GPA values.

  Static field holds rent due date for an office

// static field holds rent due date for an office - // rents are due on the 1st

  Write a program code to compute and build a table of reynold

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)

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