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

  How many clock cycles are needed

Indicate data dependency in the code below. Assuming there is no forwarding in the pipeline, howmany clock cycles are needed to finish the program? If full forwarding is used, how many clock cycles are needed?

  Demonstrate the both the commit and the rollback

Write a script to test your procedure. Demonstrate the both the commit and the rollback.

  Electronic health record

Write a paper on Electronic Health Record (EHR) Research and Summary.

  Utility auditing program based

Design, implement, test, and debug a Visual Basic® program to create an enhanced home utility auditing program

  Determine the monthly payment for a loan

Write a program to determine the monthly payment for a loan where the annual interest rate, the amount of the loan, and the number of years are entered as input.

  Why is it necessary to include both wmfc and mfc

Why is it necessary to include both WMFC and MFC in the logic expression for Counter_enable given in Section 5.6.2?

  Declare an integer constant for the size of the array

When the user runs this block of code, the values in the array will be displayed, along with a sum value, the lowest value, and the number of occurrences of the lowest value.

  In mips assembly language

In MIPS Assembly language

  Why can i only see up to the index of this book

Why can I only see up to the index of this book? I understand it's a large book and you may only want to give the reader access to part of the book, but if it's read only until I get my book in the mail, why can't I see the whole book

  Draw dfsa for identifiers contain only letters and digits

Draw a DFSA for identifiers that contain only letters and digits, where the identifier must have at least one letter, but it need not be the first character. Hint: everything to the left of the leftmost letter must be a digit.

  Which of these conditions returns true

Which of these conditions returns true? Check the Java documentation for the inheritance patterns.

  Distance between nodes u and v

The distance between nodes u and v in graph is the length of the shortest path from u to v. Given a d-dimensional hypercube and a designated source node s, how many nodes are distance i from s, where 0

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