Question: I forgot how to write basic code. I can do this program in an efficient way but that is not what is needed here, if

I forgot how to write basic code. I can do this program in an efficient way but that is not what is needed here, if someone could write the program (directions below) in a barebones super simple way that would be great.

  1. Carefully read the instructions before you attempt the assignment.
  2. Create a new class in your newly-created project folder. The class should be named for your object. Number it as V3 to match the ShapesV3 sample. For example, if you implement a clock object, the class name would be ClockV3. (Do ClockV3 as the name of the program)
  3. Provide a default constructor for your object.
  4. Write two methods to perform an action or calculation for your object. Determine the return type and parameter list.
  5. Within the main() method, create an instance of your class. Invoke all methods on your new object.
  6. Print the results in a user-friendly format.

The following screen shot is an example of output for a ClockV3 object. The class contains two methods to calculate the difference in time and converts that value to minutes. Your output will differ based on the object you define.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!