Prepare a class diagram to illustrate your computer class

Assignment Help Computer Engineering
Reference no: EM131938493

Assignment

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: EM131938493

Questions Cloud

Write assembly language program that write out two strings : Write an Assembly Language program that will write out two strings. The first string will be defined in the data segment.
How much is the stock worth today : Suppose the stock is expected to grow at a rate of 15% for the next five years that it started paying dividends, then slows to a long-term growth rate of 5%.
What should be the stock market value : If the required return on this stock is currently 8%, what should be the stock's market value? Show work please
What annual rate of interest must you earn on investment : What annual rate of interest must you earn on your investment to cover the cost of your child's college education?
Prepare a class diagram to illustrate your computer class : Prepare a class diagram to illustrate your Computer class. Prepare the source code that implements your Computer class.
Determining the stock total return for the coming year : What is the stock's expected capital gains yield for the coming year? What is the stock's total return for the coming year?
Company capital gains yield and dividend yield : The long-run growth rate for the company is a constant 5%. What is the company's capital gains yield and dividend yield? Show explanation
What is the potential down side to this strategy : What is the potential down side to this strategy?Explain how your job satisfaction or dissatisfaction can be directly linked to the attitude of others.
What is the intrinsic value of the company : The company currently has debt and preferred stock totaling $500 million and 150 million outstanding shares of common stock.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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