Create a base class

Assignment Help Basic Computer Science
Reference no: EM13761907

programming follow up

  • Weekly tasks or assignments (Individual or Group Projects) will be due by Monday, and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus.
  • Create a base class (also called a superclass) that contains all of the properties that are common to both of these products. Create 2 derived classes (also called subclasses) that contain different kinds of sizes. If your product does not already have a name property, you will need to add one along with appropriate get- and set-methods.
    Modify your program so that at an appropriate point in the ordering process, the program requests the name or kind of product. At that point, the correct kind of product class needs to be instantiated. Polymorphism should ensure that the correct kind of size information or method is used.
  • Modify your program so that it requests 3 products. Create an array of products and save all of the product instances in this array. You might want to think about how an indefinite number of product orders might be handled. However, do not implement this extension for this course.
  • You will need to change how you handle file output or input. Instead of creating or writing a new file for each product, you need to create an empty file when the program starts. Each new product should then be added to the file. You no longer need to create the confirmation dialog based on data that are read back in after each individual product is ordered. Instead, you will confirm the entire 3-product order after all 3 product orders have been completed. This can be done by reading the order file and displaying or confirming the product orders one after another.
  • You must revisit your UML diagrams one last time and revise them to represent the final online ordering system in structural diagrams (the class diagrams) and in a behavioral diagram (the use case diagram).

Reference no: EM13761907

Questions Cloud

Class to describe the product : For this assignment, you will create a class to describe the product that is being ordered. You will then modify your code to create an instance of this class and utilize it in the ordering process.
Examine the effect of changes in the variable cost : Examine the effect of changes in the variable cost / fixed cost structure of the company on cost- volume analysis decisions by managers.
Monthly compounding-annualizing a monthly rate : (Annualizing a monthly rate) You credit card statement says that you will be charged 1.05% interest a month on unpaid balances. What is the Effective Annual Rate (EAR) being charged?
Health care financial management : Would it be better to place the employee on probation while you investigate to prevent possible further degradation of your position and then return them to work if they are not the root cause?
Create a base class : Weekly tasks or assignments (Individual or Group Projects) will be due by Monday, and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus.
Who is the best communicator you know : Who is the best communicator you know? Why do you consider that person to be so? Who is the best listener you have ever known?
Guidelines for recognizing revenue : The earning of revenue by a business enterprise is recognized for accounting purposes when the transaction is recorded. In some situations, revenue is recognized approximately as it is earned in the economic sense. In other situations, however, ac..
Lounge independent projec : Download and extract the .zip file containing the data files for this project. Rename the outermost folder to be Lounge1-Your Last Name Your First Name.
Explain relation between philosophy and public opinion : explain what Plato is trying to say about the relation between philosophy and public opinion in Book VI up through p. 174, 500c. Why is philosophy not popular?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Using the expand, guess, and verify method find closed

Using the expand, guess, and verify method find closed form solutions for the following recurrence relations.

  Draw a production system

Suppose that you must perform three tasks, X, Y, and Z. You can only do one task at a time, and once that task is done, you never redo it.

  Access control system

What access control system is most valuable for protecting enterprise systems? Why? What are two specific strengths and two specific drawbacks for your chosen access control system?

  Assembly program to compute division of two integer numbers

Write a program in assembly with the necessary comments that computes division of two integer numbers (Y by X) by consecutively subtracting X from Y.

  Cloud provider secure large amount of capital

Few organizations tend to prefer operating expense models. whether Cloud providers will continue to secure large amount of capital....or will equity firms stop their funding?

  Explain delimiter marks only beginning of comment

Delimiter marks only the beginning of the comment (for one line comments). Write the advantages and disadvantages of each of these with respect to our criteria.

  Find pythagorean triplets

Given an array of integers, find Pythagorean triplets. i.e. find a,b and c which satisfies a^2 + b^2 = c^2 Integers could be positive or negative.

  What are some factors or requirements

What are some factors or requirements when designing an Active Directory Infrastructure. How do you gather the requirements for the design? Please explain in approximately in two paragraphs.

  Write a code using greedy best first search

Write a code using Greedy Best First Search and A* in Java language to find the shortest path in Romania path to Bucharest

  Write a select statement that returns four columns

Write a SELECT statement that returns four columns: VendorName

  Internal service-level agreements

Determine if internal service-level agreements (SLAs) are necessary, and identify the monitoring points and levels for an SLA.

  Summarize by outlining the sequence of operations

Explain how an operating system can temporarily pass control of the CPU over to user code without risking an indefinite loss of control. Discuss the roles of timer interrupts, privileged mode operation, and memory protection and explain why all of..

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