Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Class to contain a customer order Create attributes of that class to store Company Name, Address and Sales Tax. Create a public property

Create a Class to contain a customer order

Create attributes of that class to store Company Name, Address and Sales Tax. Create a public property for each of these attributes.

Create a class constructor without parameters that initializes the attributes to default values.

Create a class constructor with parameters that initializes the attributes to the passed in parameter values.

Create a behavior of that class to generate a welcome message that includes the company name.

Create a Class to contain a customer order detail row

Create attributes of that class to store Product Name, Price and Amount. Create a public property for each of these attributes.

Create a constructor without parameters that set all the attributes to an empty string or zero.

Create a constructor with parameters that sets all the attributes to the passed in parameters.

Create a behavior that, when provided a sales tax value, returns the total price for a detail row including sales tax.

Create a behavior that, when provided a product name, price and quantity, returns a single line order detail.

Initialize a Customer order object instance.

For a custom order detail line, prompt the user to enter a product name, price and amount (each separately). Initialize a customer order detail object instance with the values provided.

Repeats this two more times for a total of three customer order details.

Using the behavior in Customer Order, display the header information in the console.

Using the behavior in Customer Order Detail, display the three order detail lines in the console (each on a separate line).

Pause the console for a final user input before.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

Why might managers be compelled to adopt a global approach to HRM?

Answered: 1 week ago

Question

=+4 Develop and deliver the CCT program.

Answered: 1 week ago