Use example of polymorphically processing employee objects

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

Modify your Account superclass so that it is abstract and contains the abstract method, computeSales(). If you added default behavior in the earlier task for computeSales(), remove this default behavior.

Leave your implementation of computeSales() in the subclasses as:

Supplies = office supplies sold dollar amount + books sold dollar amount + apparel sold dollar amount

Services = number of hours * rate per hour.

Paper = number of pounds * price per pound

Update your design document so that the UML class diagrams reflect the abstract class and abstract method.

Modify your application so that it polymorphically processes any account objects created. Store each account object created into an array of type Account. For each element in this array, call the computeSales() method and display the results. Use the example of polymorphically processing employee objects in Chapter 10 as inspiration.

Test your application and verify your results. Take screenshots to demonstrate that your application works.

Intermediate-level Java programming should be demonstrated in your application:

There should be implemented constructors for each class.

The toString() method should be overridden to provide readable string representation of each object.

Getters and setters need to be implemented to enforce data hiding.

Code should be fully commented.

Program flow should be logical.

Behavior should be encapsulated into methods avoiding all encompassing large main() methods.

Projects should be developed in NetBeans and zipped prior to submission.

Code should compile and run free of exceptions, indicating that debugging tools were used to eliminate any run time errors.

Reference no: EM13314509

Questions Cloud

Discuss which model is better and why : Write a 2 page research paper (excluding the title page) on the Turing and von Neumann models. Compare and contrast each and discuss which model is better and why.
Find the relationship between the multiplier and the mpc : Find the change in the equilibrium level of output when there is a $10 increase in net export spending and the MPC =0.50, 0.75, and 0.80.
Why are check-writing deposits included in the definition : Is there backing for coins, paper currency, and check-writing deposits?
Find the force he exerts on the ball : As a protest against the umpire's calls, a baseball pitcher throws a ball straight up into the air at a speed of 17.0 m/s. find the force he exerts on the ball to give it this upward speed
Use example of polymorphically processing employee objects : Modify your Account superclass so that it is abstract and contains the abstract method, computeSales(). If you added default behavior in the earlier task for computeSales(), remove this default behavior.
What factors may limit the actual increase in aggregate : What factors may limit the actual increase in aggregate demand? b. An increase in aggregate demand should raise equilibrium output.
Compute the linear density of the string : A steel wire with mass 29.7 g and length 1.52 m is strung on a bass so that the distance from the nut to the bridge is 1.10 m. Compute the linear density of the string
Compare the quantity of check-writing deposits when reserves : Compare the quantity of check-writing deposits when reserves are held constant and the reserve requirement is lowered in (a) with the quantity of deposits when the amount of reserves held by banks is increased and the reserve requirement remains cons..
A middle manager for a cloud provider company : Write a one page paper. As a middle manager for a cloud provider company,

Reviews

Write a Review

C/C++ Programming Questions & Answers

  The factorial of a positive integer n, denoted by n!

Write a program that computes the sequence of factorial values: 1! = 1, 2! = 2, 3! = 6, 4! = 24, 5! = 120, 6! = 720, ....

  Display your name in the title bar

Display your name in the title bar of the browser, declare the DOCTYPE for HTML5, and create a comment listing the lab number, the author, and the date.

  Write program that stores the numbers in array

Write a c++ program that stores the following numbers in the array named miles: 15,22,16,18,27,23, and 20. have your program copy the data stored in miles to another array.

  Design and implement a c++ program for find friends

MCS2514Pgm1- Design and implement a C++ program that will help find friends according to a defined method. In particular, your program will find and display the ten people in database who answered a set of survey questions closest to what the user..

  Prepare a temperature converter

Have to write a small program that prompts the user to enter a temperature in degrees Fahrenheit and then prints a massage as to whether the alarm will sound at that temperature.

  Use functional decomposition to solve

Use functional decomposition to solve this problem, and code the solution using functions wherever it makes sense to do so. Your program should check for invalid data such as nonpositive dimensions, number of rooms less than 1.

  Declare a vector

Declare a vector of these structures where the size of the vector is to be 7.

  Computers have trended to larger word

Since the beginning, computers have trended to larger word sizes, 8 to 16 to 32 and now some 64 bit computers. Explain a pro or a con in a computer with a larger word size, or comment on someone else's pro or con.

  Returns a count of the steps through the sort

Please write a c++ implimentation that returns a count of the steps through the sort. (do not worry about updating count, I will rewrite that segemnt. I need help with writing the shell sort.

  The initial data structure with information about a service

Implement a program using function for a defined task. Initial data is read from a file and added from keyboard. Program has to output initial and resulting data.The initial data structure with information about a service:

  A perfect solution is impossible or too expensive

Optimization is often encountered in engineering problems. More often than not, a perfect solution is impossible or too expensive to find and implement. Therefore, we resort to sub-optimal, yet useful, solutions. This assignment tackles a classical p..

  Lu decomposition with gauss elimination

The LU decomposition with Gauss elimination and what is the physical interpretation of the elements of ? Write C++ programs for steps 2, 3, and 4.

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