SlideShare ist ein Scribd-Unternehmen logo
1 von 2
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.

Weitere ähnliche Inhalte

Ähnlich wie This assignment is to develop your first object-oriented program.docx

CIS 406 Entire Course NEW
CIS 406 Entire Course NEWCIS 406 Entire Course NEW
CIS 406 Entire Course NEWshyamuopfive
 
66781291 java-lab-manual
66781291 java-lab-manual66781291 java-lab-manual
66781291 java-lab-manualLaura Popovici
 
Book management system
Book management systemBook management system
Book management systemSHARDA SHARAN
 
Computer Software Ultimate History and Benefits
Computer Software Ultimate History and BenefitsComputer Software Ultimate History and Benefits
Computer Software Ultimate History and BenefitsTyler Aaron
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programmingrprajat007
 
Programming Without Coding Technology (PWCT) Features - Programming Paradigm
Programming Without Coding Technology (PWCT) Features - Programming ParadigmProgramming Without Coding Technology (PWCT) Features - Programming Paradigm
Programming Without Coding Technology (PWCT) Features - Programming ParadigmMahmoud Samir Fayed
 
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.comPos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.comULLPTT
 
Lecture 1 uml with java implementation
Lecture 1 uml with java implementationLecture 1 uml with java implementation
Lecture 1 uml with java implementationthe_wumberlog
 
Cis 406 Technology levels--snaptutorial.com
Cis 406 Technology levels--snaptutorial.comCis 406 Technology levels--snaptutorial.com
Cis 406 Technology levels--snaptutorial.comsholingarjosh58
 
Cis 406 Success Begins / snaptutorial.com
Cis 406 Success Begins / snaptutorial.comCis 406 Success Begins / snaptutorial.com
Cis 406 Success Begins / snaptutorial.comRobinson071
 
Cis 406 Enthusiastic Study - snaptutorial.com
Cis 406 Enthusiastic Study - snaptutorial.comCis 406 Enthusiastic Study - snaptutorial.com
Cis 406 Enthusiastic Study - snaptutorial.comStephenson01
 
Cis 406 Extraordinary Success/newtonhelp.com
Cis 406 Extraordinary Success/newtonhelp.com  Cis 406 Extraordinary Success/newtonhelp.com
Cis 406 Extraordinary Success/newtonhelp.com amaranthbeg148
 
SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSnikshaikh786
 

Ähnlich wie This assignment is to develop your first object-oriented program.docx (20)

ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
 
CIS 406 Entire Course NEW
CIS 406 Entire Course NEWCIS 406 Entire Course NEW
CIS 406 Entire Course NEW
 
66781291 java-lab-manual
66781291 java-lab-manual66781291 java-lab-manual
66781291 java-lab-manual
 
Oopp Lab Work
Oopp Lab WorkOopp Lab Work
Oopp Lab Work
 
Book management system
Book management systemBook management system
Book management system
 
Computer Software Ultimate History and Benefits
Computer Software Ultimate History and BenefitsComputer Software Ultimate History and Benefits
Computer Software Ultimate History and Benefits
 
An introduction to programming
An introduction to programmingAn introduction to programming
An introduction to programming
 
Chap01
Chap01Chap01
Chap01
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Programming Without Coding Technology (PWCT) Features - Programming Paradigm
Programming Without Coding Technology (PWCT) Features - Programming ParadigmProgramming Without Coding Technology (PWCT) Features - Programming Paradigm
Programming Without Coding Technology (PWCT) Features - Programming Paradigm
 
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.comPos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
Pos 409 pos409 pos 409 forecasting and strategic planning -uopstudy.com
 
Lecture 1 uml with java implementation
Lecture 1 uml with java implementationLecture 1 uml with java implementation
Lecture 1 uml with java implementation
 
Cis 406 Technology levels--snaptutorial.com
Cis 406 Technology levels--snaptutorial.comCis 406 Technology levels--snaptutorial.com
Cis 406 Technology levels--snaptutorial.com
 
Cis 406 Success Begins / snaptutorial.com
Cis 406 Success Begins / snaptutorial.comCis 406 Success Begins / snaptutorial.com
Cis 406 Success Begins / snaptutorial.com
 
Cis 406 Enthusiastic Study - snaptutorial.com
Cis 406 Enthusiastic Study - snaptutorial.comCis 406 Enthusiastic Study - snaptutorial.com
Cis 406 Enthusiastic Study - snaptutorial.com
 
linkinCVMartin Craughwell
linkinCVMartin CraughwelllinkinCVMartin Craughwell
linkinCVMartin Craughwell
 
PROBLEM SOLVING
PROBLEM SOLVINGPROBLEM SOLVING
PROBLEM SOLVING
 
Cis 406 Extraordinary Success/newtonhelp.com
Cis 406 Extraordinary Success/newtonhelp.com  Cis 406 Extraordinary Success/newtonhelp.com
Cis 406 Extraordinary Success/newtonhelp.com
 
SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUS
 
01CHAP_1.PPT
01CHAP_1.PPT01CHAP_1.PPT
01CHAP_1.PPT
 

Mehr von gasciognecaren

1.In no more than 3-4 sentences, explain why high market-capitalizat.docx
1.In no more than 3-4 sentences, explain why high market-capitalizat.docx1.In no more than 3-4 sentences, explain why high market-capitalizat.docx
1.In no more than 3-4 sentences, explain why high market-capitalizat.docxgasciognecaren
 
1.Longest WordsWrite a Python program that reads wor.docx
1.Longest WordsWrite a Python program that reads wor.docx1.Longest WordsWrite a Python program that reads wor.docx
1.Longest WordsWrite a Python program that reads wor.docxgasciognecaren
 
1.Probable reasons for the collapse of Mayan civilization include a.docx
1.Probable reasons for the collapse of Mayan civilization include a.docx1.Probable reasons for the collapse of Mayan civilization include a.docx
1.Probable reasons for the collapse of Mayan civilization include a.docxgasciognecaren
 
1.Matching How do astronomers determine the physical char.docx
1.Matching How do astronomers determine the physical char.docx1.Matching How do astronomers determine the physical char.docx
1.Matching How do astronomers determine the physical char.docxgasciognecaren
 
1.If President Barack Obama invited you to the White House to partic.docx
1.If President Barack Obama invited you to the White House to partic.docx1.If President Barack Obama invited you to the White House to partic.docx
1.If President Barack Obama invited you to the White House to partic.docxgasciognecaren
 
1.How does DNA establish identity2. What is similar and differe.docx
1.How does DNA establish identity2. What is similar and differe.docx1.How does DNA establish identity2. What is similar and differe.docx
1.How does DNA establish identity2. What is similar and differe.docxgasciognecaren
 
1.purpose2.objectives3.scope4.Function of EOP5.Rules.docx
1.purpose2.objectives3.scope4.Function of EOP5.Rules.docx1.purpose2.objectives3.scope4.Function of EOP5.Rules.docx
1.purpose2.objectives3.scope4.Function of EOP5.Rules.docxgasciognecaren
 
1.Qu’est-ce que c’est(2.5)C’est quelque chose….docx
1.Qu’est-ce que c’est(2.5)C’est quelque chose….docx1.Qu’est-ce que c’est(2.5)C’est quelque chose….docx
1.Qu’est-ce que c’est(2.5)C’est quelque chose….docxgasciognecaren
 
1.Read over the handout titled Academic Summaries,posted b.docx
1.Read over the handout titled Academic Summaries,posted b.docx1.Read over the handout titled Academic Summaries,posted b.docx
1.Read over the handout titled Academic Summaries,posted b.docxgasciognecaren
 
1.Rebecca SperryMar 29, 2020Mar 29 at 552pmManage Discussion .docx
1.Rebecca SperryMar 29, 2020Mar 29 at 552pmManage Discussion .docx1.Rebecca SperryMar 29, 2020Mar 29 at 552pmManage Discussion .docx
1.Rebecca SperryMar 29, 2020Mar 29 at 552pmManage Discussion .docxgasciognecaren
 
1.Probability ConceptsDuring an epidemic of disease, a doctor se.docx
1.Probability ConceptsDuring an epidemic of disease, a doctor se.docx1.Probability ConceptsDuring an epidemic of disease, a doctor se.docx
1.Probability ConceptsDuring an epidemic of disease, a doctor se.docxgasciognecaren
 
1.Find a test to assess, intelligence or education, find a similar a.docx
1.Find a test to assess, intelligence or education, find a similar a.docx1.Find a test to assess, intelligence or education, find a similar a.docx
1.Find a test to assess, intelligence or education, find a similar a.docxgasciognecaren
 
1.Over the past few years, we have seen both emerging and reemerging.docx
1.Over the past few years, we have seen both emerging and reemerging.docx1.Over the past few years, we have seen both emerging and reemerging.docx
1.Over the past few years, we have seen both emerging and reemerging.docxgasciognecaren
 
1.Ornette Coleman Lonely Womanhttpswww.youtube.comwatchv=D.docx
1.Ornette Coleman Lonely Womanhttpswww.youtube.comwatchv=D.docx1.Ornette Coleman Lonely Womanhttpswww.youtube.comwatchv=D.docx
1.Ornette Coleman Lonely Womanhttpswww.youtube.comwatchv=D.docxgasciognecaren
 
1.In patients with acute respiratory distress syndrome (P), .docx
1.In patients with acute respiratory distress syndrome (P), .docx1.In patients with acute respiratory distress syndrome (P), .docx
1.In patients with acute respiratory distress syndrome (P), .docxgasciognecaren
 
1.How is culture reflected in television and movies What relations.docx
1.How is culture reflected in television and movies What relations.docx1.How is culture reflected in television and movies What relations.docx
1.How is culture reflected in television and movies What relations.docxgasciognecaren
 
1.How are the firm’s operational and key risk factors captured in th.docx
1.How are the firm’s operational and key risk factors captured in th.docx1.How are the firm’s operational and key risk factors captured in th.docx
1.How are the firm’s operational and key risk factors captured in th.docxgasciognecaren
 
1.How do you define modernist literature and how does it relate to o.docx
1.How do you define modernist literature and how does it relate to o.docx1.How do you define modernist literature and how does it relate to o.docx
1.How do you define modernist literature and how does it relate to o.docxgasciognecaren
 
1.GOAL STATEMENT Please complete the following goal statement.docx
1.GOAL STATEMENT Please complete the following goal statement.docx1.GOAL STATEMENT Please complete the following goal statement.docx
1.GOAL STATEMENT Please complete the following goal statement.docxgasciognecaren
 
1.Functional Analysis Interview (FAI) is a type of structured in.docx
1.Functional Analysis Interview (FAI) is a type of structured in.docx1.Functional Analysis Interview (FAI) is a type of structured in.docx
1.Functional Analysis Interview (FAI) is a type of structured in.docxgasciognecaren
 

Mehr von gasciognecaren (20)

1.In no more than 3-4 sentences, explain why high market-capitalizat.docx
1.In no more than 3-4 sentences, explain why high market-capitalizat.docx1.In no more than 3-4 sentences, explain why high market-capitalizat.docx
1.In no more than 3-4 sentences, explain why high market-capitalizat.docx
 
1.Longest WordsWrite a Python program that reads wor.docx
1.Longest WordsWrite a Python program that reads wor.docx1.Longest WordsWrite a Python program that reads wor.docx
1.Longest WordsWrite a Python program that reads wor.docx
 
1.Probable reasons for the collapse of Mayan civilization include a.docx
1.Probable reasons for the collapse of Mayan civilization include a.docx1.Probable reasons for the collapse of Mayan civilization include a.docx
1.Probable reasons for the collapse of Mayan civilization include a.docx
 
1.Matching How do astronomers determine the physical char.docx
1.Matching How do astronomers determine the physical char.docx1.Matching How do astronomers determine the physical char.docx
1.Matching How do astronomers determine the physical char.docx
 
1.If President Barack Obama invited you to the White House to partic.docx
1.If President Barack Obama invited you to the White House to partic.docx1.If President Barack Obama invited you to the White House to partic.docx
1.If President Barack Obama invited you to the White House to partic.docx
 
1.How does DNA establish identity2. What is similar and differe.docx
1.How does DNA establish identity2. What is similar and differe.docx1.How does DNA establish identity2. What is similar and differe.docx
1.How does DNA establish identity2. What is similar and differe.docx
 
1.purpose2.objectives3.scope4.Function of EOP5.Rules.docx
1.purpose2.objectives3.scope4.Function of EOP5.Rules.docx1.purpose2.objectives3.scope4.Function of EOP5.Rules.docx
1.purpose2.objectives3.scope4.Function of EOP5.Rules.docx
 
1.Qu’est-ce que c’est(2.5)C’est quelque chose….docx
1.Qu’est-ce que c’est(2.5)C’est quelque chose….docx1.Qu’est-ce que c’est(2.5)C’est quelque chose….docx
1.Qu’est-ce que c’est(2.5)C’est quelque chose….docx
 
1.Read over the handout titled Academic Summaries,posted b.docx
1.Read over the handout titled Academic Summaries,posted b.docx1.Read over the handout titled Academic Summaries,posted b.docx
1.Read over the handout titled Academic Summaries,posted b.docx
 
1.Rebecca SperryMar 29, 2020Mar 29 at 552pmManage Discussion .docx
1.Rebecca SperryMar 29, 2020Mar 29 at 552pmManage Discussion .docx1.Rebecca SperryMar 29, 2020Mar 29 at 552pmManage Discussion .docx
1.Rebecca SperryMar 29, 2020Mar 29 at 552pmManage Discussion .docx
 
1.Probability ConceptsDuring an epidemic of disease, a doctor se.docx
1.Probability ConceptsDuring an epidemic of disease, a doctor se.docx1.Probability ConceptsDuring an epidemic of disease, a doctor se.docx
1.Probability ConceptsDuring an epidemic of disease, a doctor se.docx
 
1.Find a test to assess, intelligence or education, find a similar a.docx
1.Find a test to assess, intelligence or education, find a similar a.docx1.Find a test to assess, intelligence or education, find a similar a.docx
1.Find a test to assess, intelligence or education, find a similar a.docx
 
1.Over the past few years, we have seen both emerging and reemerging.docx
1.Over the past few years, we have seen both emerging and reemerging.docx1.Over the past few years, we have seen both emerging and reemerging.docx
1.Over the past few years, we have seen both emerging and reemerging.docx
 
1.Ornette Coleman Lonely Womanhttpswww.youtube.comwatchv=D.docx
1.Ornette Coleman Lonely Womanhttpswww.youtube.comwatchv=D.docx1.Ornette Coleman Lonely Womanhttpswww.youtube.comwatchv=D.docx
1.Ornette Coleman Lonely Womanhttpswww.youtube.comwatchv=D.docx
 
1.In patients with acute respiratory distress syndrome (P), .docx
1.In patients with acute respiratory distress syndrome (P), .docx1.In patients with acute respiratory distress syndrome (P), .docx
1.In patients with acute respiratory distress syndrome (P), .docx
 
1.How is culture reflected in television and movies What relations.docx
1.How is culture reflected in television and movies What relations.docx1.How is culture reflected in television and movies What relations.docx
1.How is culture reflected in television and movies What relations.docx
 
1.How are the firm’s operational and key risk factors captured in th.docx
1.How are the firm’s operational and key risk factors captured in th.docx1.How are the firm’s operational and key risk factors captured in th.docx
1.How are the firm’s operational and key risk factors captured in th.docx
 
1.How do you define modernist literature and how does it relate to o.docx
1.How do you define modernist literature and how does it relate to o.docx1.How do you define modernist literature and how does it relate to o.docx
1.How do you define modernist literature and how does it relate to o.docx
 
1.GOAL STATEMENT Please complete the following goal statement.docx
1.GOAL STATEMENT Please complete the following goal statement.docx1.GOAL STATEMENT Please complete the following goal statement.docx
1.GOAL STATEMENT Please complete the following goal statement.docx
 
1.Functional Analysis Interview (FAI) is a type of structured in.docx
1.Functional Analysis Interview (FAI) is a type of structured in.docx1.Functional Analysis Interview (FAI) is a type of structured in.docx
1.Functional Analysis Interview (FAI) is a type of structured in.docx
 

Kürzlich hochgeladen

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Kürzlich hochgeladen (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

This assignment is to develop your first object-oriented program.docx

  • 1. 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,
  • 2. 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.