Write a program that computes customers

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

Online processing system:

You are to write a program that computes customers' bill for his/her order in an online processing system. The different components of the program are
1. The CustomerAccount class
2. TheOrder class
3. TheItem class
4. The main program

A. The CustomerAccount class will havethe customers' information. It will alsokeep track of customerID, CustomerName, Address, and phoneNumber. The responsibilities for this class are: AddCustomer, EditCustomer, and deleteCustomer

B. The Order class will information about customer order. It can update the charges for the customer order. It will keep track of orderID, customerID, productID, totalCharge. The responsibilities for this class are: CreateOrder and EditOrder

C. The Item class will have information about different items. It can update the totalCharge variable of theOrder classclass. It will keep track of productID, productPrice, and productDescription. The responsibilities for this class are: Addproduct, EditProduct, and SelectProduct

I. Design the main so that it have a menu that allows theuser to add items to the customer order, and check the customer out by showing the total charges. When the custmoer checks out, the total charges should be displayed.
II. You need to writer constructors and destructors, get functions (to retrieve appropriate attributes) and set functions (to set attribute values) for each class. And any other required functions to perform the requirements

• The parameters and return types of each function and class member function should be decided in advance (during the analysis and design phase).
• Think about what attributes to include in each class
• Think of useful member functions for each class
• The program will be best implemented as a multi-file program.

Reference no: EM13890637

Questions Cloud

Identify how states deal with immigration issues : For this paper you need to write about policy decisions that states make and laws states enact when the federal government does not write laws or deal with a specific issue. Read U.S. v. Lopez, 514 U.S. 549 (1995), and Schechter v. U.S., 295 U.S. 495..
Description of two forensic psychology professional roles : a description of two forensic psychology professional roles. Then, analyze the impact of each role in both an internal context (i.e., within the police department) and an external context (i.e., outside the police department-n neighborhoods, schoo..
Emails are randomly monitored to enforce policy : Consolidated Bargains, Inc. has a corporate policy of not allowing employees to use company email for private use.  Joe Bennett is a Consolidated employee who used email to communicate with his attorney asking whether Joe's wife filed for divorce
How a forensic psychology professional could address : Select a special challenge that a forensic psychology professional may encounter when working with or in a police force. Think about how a forensic psychology professional could address these challenges.
Write a program that computes customers : Design the main so that it have a menu that allows theuser to add items to the customer order, and check the customer out by showing the total charges.
Who won at the lower appellate level : Brief Alissa Jamison v. Summer Infant (USA), Inc the Parties (Who is the plaintiff?  The defendant?  The appellant?  The appellee?)  the History of the case (Who won at trial court?  Who won at the lower appellate level?  Who won in this decision?)
Essay - animal language : Essay: Animal Language. First, do some research on animal language. Follow this link (http://mishhirsch.edu.glogster.com/animals-language/) to videos, articles, and other resources
Cash in advance of performing work for amina jordan : Costanza Company experienced the following events and transactions during July.
How can unforeseen circumstances effect the economy? : How can unforeseen circumstances effect the economy? Give examples.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Whitewater high school has contracted

Whitewater High School has contracted you to write a program that will read a file of student names and test scores in the formation FIRST NAME LAST NAME: SCORE1 SCORE2 SCORE3, where each of the scores is an integer

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  Investigate the use of the random generator function

For this assignment you will have to investigate the use of the C++ random generator function, rand(). Rand() produces a random integer in the range of 0 to RAND_MAX (a constant -- often 32767 -- defined in the stdlib, automatically included in al..

  Write a program that allows a user to enter 12 double values

Write a program that allows a user to enter 12 double values representing store sales for each month of one year. After all 12 values are entered,

  Numbers until the user wants and in the end display

Write a C program to enter the numbers until the user wants and in the end display the product of numbers entered by the user. The program should terminate once the user enters the character 'n' and continue computing product if user enters 'y'

  A robot can take steps of 1 meter

A robot can take steps of 1 meter, 2 meters, or 3 meters. Write a recursive function to calculate the number of ways the robot can walk n meters. (n is an integer obtained from user.) As example:

  Create codes for the following problem compile and test run

Create codes for the following problem/s. Compile, test run, and edit them if necessary. Include your original .cpp and related file(s) (if any) in a single folder. Name the folder CIS110_Module_4. Compress (zip) the folder and submit the sing..

  Write an iterative function power

Write an iterative function power1 to compute xn for n >= 0 and write a recursive function power2 to compute xn by using the following recursive formulation

  Illustrate example from ansi c programming language

Illustrate example from ANSI C programming language, without using nested procedures, to show the fact that "assignment-by-sharing in conjunction with quasi-dynamic object binding

  Preparing a high level language program

Describe the purpose of each step in preparing a high level language program for execution (editing, compiling, linking, and loading).  Include in your description the types of files created with each of the first three steps.?

  Solution to the naur text-processing problem

Design and implement a solution to the Naur text-processing problem using the language specified by your instructor. Execute it against test data and record the number of faults you find and the cause of each fault

  Create two arrays with ten random numbers

Determine the largest difference (only subtract corresponding index numbers) between these two arrays. (hint: create a third array with the differences)

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