Prepare a word document that shows your program plan

Assignment Help Computer Engineering
Reference no: EM131906325

Assignment

This assignment is to develop your first object-oriented program. You will utilize classes, common data types, and control structures. Following are the instructions.

Step 1: Define a Computer class that can be used to describe your computer. The class must have at least two attributes. One variable must be an integer data type and the other must be a String data type. At least one method should be defined in your class. Step 1a: Prepare a class diagram to illustrate your Computer class. Copy to a Word document. Step 1b: Prepare the source code that implements your Computer class. Give your source code a filename of Computer.java.

Step 2: Prepare a program that utilizes your Computer class. The requirements for the program include prompting the user for input, making a calculation, and printing out the results. Begin by creating your pseudocode for this program. Once you have your pseudocode, copy it into your Word document. You can now begin writing your program.

Your program should prompt the user for information about their existing computer followed by information about a future, more desirable computer. This means that your program will create two instances of Computer class, the first instance reflects the existing Computer, and the second instance reflects the future Computer.

Use the Scanner class for obtaining input from the user keyboard. The program must calculate the difference (improvement) between the existing and future Computer class variables of integer data type. For example, Computer class may contain an integer variable named memory. The value of the memory variable for the existing Computer instance may be 8, while the value for this variable in the future Computer instance may be 10. Calculating the difference would indicate an improvement of 2.

Print to the screen the values for the existing computer class and the desired computer class, along with the calculated improvement.

Your assignment submittal should include your properly commented Java source code for your Computer class as well as for your program.

The first step should be to plan your program. Prepare a Word document that shows your program plan description including class diagram and your pseudocode defining program logic.

The second step should be to write the code based upon your planning document.

Submit the Word design document, source code for Computer class and for your program. Include both .class files.

Reference no: EM131906325

Questions Cloud

Differences between dispositional and evolutionary theories : Write a 1,000- to 1,250-word informational article for a newspaper in which you do the following: Describe the differences between dispositional.
What level of pretax cost savings : At what level of pretax cost savings would you be indifferent between accepting the project and not accepting it?
Range of wavelengths for visible light traveling : The visible spectrum of light is often given in terms of the wavelengths of the various colors, with the range of wavelengths for visible light traveling
What is the typical financial objective of the firm : What is the typical financial objective of the firm? Why is capital budgeting essential for achieving that objective?
Prepare a word document that shows your program plan : Prepare a Word document that shows your program plan description including class diagram and your pseudocode defining program logic.
What is the logic behind the npv capital-budgeting framework : What is the logic behind the NPV capital-budgeting framework? Would changes in the cost of capital ever cause a change in the IRR ranking of several projects?
What is the magnitude of the final velocity : A 5 kg mass with an initial velocity of 7 i m/s collides and sticks to a 6 kg mass with an initial velocity of - 8 j m/s.
Create an online scavenger hunt : Create an online scavenger hunt - develop a series of questions and hot link keywords to websites to locate the answers. After locating the answer, students
Calculate the magnitude of the total momentum : Calculate the magnitude of the total momentum (in kg*m/s) of the two masses.

Reviews

Write a Review

Computer Engineering Questions & Answers

  The primary function of the steering committee

What do you find one of the most interesting advances in health care informatics and why.

  What is the difference between radio buttons and check boxes

What is the difference between radio buttons and check boxes? Why do you need a button group for radio buttons but not for check boxes?

  What is the total fertilizer use in honduras

What is the total fertilizer use in Honduras (metric tons) What is the average application per cropped area (100 grams per hectare of arable land) Compare this to fertilizer use per cropped area in the US

  The main reasons for it project failures

Why do you believe some projects do not meet their objective or scope.

  Find a critical race-free assignment

Find a critical race-free assignment for the following reduced table by each of the three state assignment methods.

  Find if m is a maximum matching in g in worst case

Let G = (V,E) be a weighted graph and let T be a minimum spanning tree of G. The path in T between any pair of vertices v_1 and v_2 must be a shortest path in G.

  When the server reboots will the file handle still be valid

When the server reboots, will the file handle still be valid? If so, how does it work? If not, does this violate the principle of statelessness?

  Calculate the approximate bit rate and signal level

Calculate the approximate bit rate and signal level(s) for a 4.2 MHz bandwidth system with a signal to noise ratio of 170. In a peer-to-peer (P2P) network, Internet users that are ready to share their resources become peers and form a network. Descr..

  Explian the design for a small web site

Develop a 5-6 page Word document that explian the design for a small Web site that meets the following specifications.

  Integrity of data entered into a database

What is the relationship between quality and integrity of data entered into a database and the resulting effect on the quality of patient care.

  Write ada program for a computer to be used as cash register

Develop a top-down design and write an Ada program for a computer to be used as a cash register at Alan's Bake Shop.

  How do you use grep to locate lines containing the patterns

What do these regular expressions match? How do you use grep to locate lines containing these patterns?

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