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

Expect development success

The goal of most organizations is to operate in an environment similar to CMM levels 2 repeatable or level 3 defined where projects are well documented and follow standards an

Calculate the profit made on works of art

Calculate the profit made on works of art that have been sold (i.e., the profit/loss on an  individual work of art is the difference between the acquisition price and the sale

Create a flowchart psuedocode and desk check

The members of the board of a small university are considering voting for a pay increase for their 25 faculty members. They are considering a pay increase of 8%. However, befo

Calculates the area and perimeter of a rectangle

Design and write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user. Please write thi

Describe the main difference of worm vs. virus

1. Describe the main difference of worm vs. virus and what are the best countermeasures for each in detail.2. What is a DNS attack? Are there different types, if so, explain e

What is intermodulation distortion

What is intermodulation distortion? What sorts of signals are susceptible to this form of distortion?In addition, identify two situations in which error-free transmission is c

Technical architecture document

Hardware platform: Describe the hardware environment to support the development and production of this system. Network connections between the stores and headquarters: A net

Technical architecture document

Quality assurance process and procedures to ensure the functionality and performance requirements are met Testing procedures to ensure the application is operational at all


Write a Review

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