Categories
Writers Solution

The class contains two attributes (consumerID and a purchase-amount

Write a class, ConsumersCls. The class contains two attributes (consumerID and a purchase-amount. The class must have a two-parameter constructor and member functions such as get and set member functions and a member function calculate(). The calculate( ) is used to calculate a discount amount in dollars based on the conditions below. Implement the class and the main( ). Grading Criteria: (10 points) The class implementation is coded correctly. (10 points) The calculations in the member function calculate ( ) are performed correctly. If the purchase-amount is between $1.0-$2000.0, the discount rate is 2.5%. If the sales-amount is between $2001.0-$6,000.0, the discount rate is 3.5%. If the sales-amount is between $6001.0-$10000.0, the discount rate is 4.5%. If the sales-amount is greater than $10000.0, the discount rate is 5.5%. The main ( ) program/function must do the following tasks: Create an array of three objects (8 points) or one object (5 points), ConsList, of the class calling/invoking the constructor. As a result, the data members/private members of the class will contain the assigned values passed to the constructor parameters. (5 points) Create one object, Cons4, of the class. Use the object to call the set member functions. As a result, the data members/private members of the class will contain the assigned values passed to the set member functions. (4 points) Use a loop to iterate through each object in the ConsList in which it calls the member function calculate(). (2 points) Use Cons4 to call the member function calculate( ). (4 points) Display the names, sales amount, and discount amount(s) of all objects, ConsList, and Cons4. Copy the code (the class implementation and main ( ) function into the answer box

GET SOLUTION FOR THIS ASSIGNMENT

CLICK HERE TO MAKE YOUR ORDER

TO BE RE-WRITTEN FROM THE SCRATCH

NO PLAGIARISM

  • Original and non-plagiarized custom papers. Our writers develop their writing from scratch unless you request them to rewrite, edit or proofread your paper.
  • Timely Delivery. capitalessaywriting.com believes in beating the deadlines that our customers have imposed because we understand how important it is.
  • Customer satisfaction. Customer satisfaction. We have an outstanding customer care team that is always ready and willing to listen to you, collect your instructions and make sure that your custom writing needs are satisfied
  • Privacy and safety. It’s secure to place an order at capitalessaywriting.com We won’t reveal your private information to anyone else.
  • Writing services provided by experts. Looking for expert essay writers, thesis and dissertation writers, personal statement writers, or writers to provide any other kind of custom writing service?  film dealing with the march on Washington on August 28, 1963
  • Enjoy our bonus services. You can make a free inquiry before placing and your order and paying this way, you know just how much you will pay. The class contains two attributes (consumerID and a purchase-amount
  • Premium papers. We provide the highest quality papers in the writing industry. Our company only employs specialized professional writers who take pride in satisfying the needs of our huge client base by offering them premium writing services.

Get Professionally Written Papers From The Writing Experts 

Green Order Now Button PNG Image | Transparent PNG Free Download on SeekPNG

By admin

Academic tutoring services from the best essay writing company

Leave a Reply

Your email address will not be published. Required fields are marked *