SlideShare una empresa de Scribd logo
1 de 6
Description: Unit 9 - Java Arrays and Data Files
This unit is really about three different topics that are related to
one another – arrays in Java, simple text files in Java, and
modular programing in java (Java methods).
The unit has a programming project spread over three related
programming assignments, each worth 10 points.
In the first assignment, you will create a Java program that
works with a small array of data containing five test scores. It
will get data from user input do some calculations, and then
print the results.
In the second assignment, you will modify a copy of the first
assignment to load the data from a data file into an array, and
then output the results to a data file.
In the third assignment, you will decompose a copy of the
second assignment into separate methods in Java.
Our goal is to have a good modular program that loads stored
data from a fie into an array, works with the data, then sends
results to another data file. Doing this in three parts will allow
you to focus on one aspect of the problem at a time.
There are reading assignments in Zybooks, but
the two chapters from the Java Learning Kit – Chapter 5 – and
Chapter 6 are your best source for learning this material. They
cover the things you need to learn to complete this project and
have good sample programs.
Your tasks are to:
Read Zybooks Assginment 11 - Arrays in Java.
Read the material in JLK Chapter 6 about arrays in Java.
Complete the Java Arrays Programming assignment.
Read the material in Chapter 6 about text files in Java.
There is no corresponding Zybooks assignment.
Complete the Java Text Files Programming assignment.
Read the Zybooks Assignment 12 - Methods in Java
Read the material in JLK Chapter 5 about methods in Java.
Complete the Java Methods programming assignment.
It may seem like their is a lot to do here but the assignments are
each simple and build on one another.
assignments:
#1
You should complete
Zybooks Assignment 11 - Arrays in Java
and read lessons
6.1, 6.2, and 6.3 in JLK Chapter 6
about arrays in Java before starting this assignment.
Your task is to create a Java I-P-O program that works with a
small array of data containing five test scores.
Your program should:
contain a for loop to read five test score into an array from the
user. The array should be a floating point array with five
elements.
Using second for loop, calculate the average score, highest
score, and lowest score in the array. JLK lesson 6.3 is a good
guide for doing this.
print the results.
You should submit a zipped copy of your IntelliJ project folder.
#2
You should read lesson
6.5 Text File Input and Output in Java
before starting this assignment. Reading Lab 6.6 will also be
helpful. There is no corresponding Zybooks assignment.
Your task is to modify the program from the
Java Arrays
programming assignment to use text files for input and output.
I suggest you save acopy of the original before modifying the
software.
Your modified program should:
contain a for loop to read the five test score into the array from
a text data file.
You will need to create and save a data file for the program to
use. It should have one test score on each line of the file. You
can type and save the text file with any text editor, such as
Notepad or Notepad++. NotePad++ is a good program to have
on your computer, It can be downloaded freely from:
https://notepad-plus-plus.org
(Links to an external site.)
It should be saved or copied to the same folder as your Java
source code file within you Intellij project.
Contain a second for loop, calculate the average score, highest
score, and lowest score in the array. This part of your program
does not need to change from the previous assignment.
output the results to a new text file. You can decide the name of
the file. You should only use a local file name and the file will
then be created in your IntelliJ project folder.
You should submit a zipped copy of your IntelliJ project folder,
which should contain the two data files within the project..
Previous
Next
#3
You should complete
Zybooks Assignment 12 - Methods in Java
and read lessons
JLK Chapter 5 - Methods and Modularity in Java
before starting this assignment.
Your task is to modify the program from the
Java
Text files programming assignment to contain several methods
for different parts of the program.I suggest you save a copy of
the original before modifying the software.
Your modified program should have the following six methods:
a method with a for loop to read the five test score into the
array from a text data file. The array should be declared in the
main method and passed as a parameter to this method.
three separate methods to each calculate and return one of the
following: the average score, highest score, and lowest score .
Each method should contain a for loop to calculate and return
one of the values to the main method. You can copy and edit he
existing loop form the previous program for each of these
methods.
a method to output the results to a new text file, as the main
method did in the previous program. You basically need to
move the code to do this into a new method.
the main method, which has the necessary variables and which
calls the other methods as needed, passing values to those
methods and receiving returned value from the methods as
needed.
Unlike Python functions, methods do not need to appear before
they are called in a program file. In fact, it is common practice
in Java to put the main() method as the first method in Java
program, similar to what is done in the payMethods sample
program in the chapter.
You should submit a zipped copy of your IntelliJ project folder,
which should contain will contain the two data files within the
project..
You should submit a zipped copy of your IntelliJ project folder.
Previous
Next

Más contenido relacionado

Similar a Description Unit 9 - Java Arrays and Data FilesThis unit is.docx

Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newshyaminfo40
 
66781291 java-lab-manual
66781291 java-lab-manual66781291 java-lab-manual
66781291 java-lab-manualLaura Popovici
 
Computer Tools for Academic Research
Computer Tools for Academic ResearchComputer Tools for Academic Research
Computer Tools for Academic ResearchMiklos Koren
 
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
 
9781111530532 ppt ch07
9781111530532 ppt ch079781111530532 ppt ch07
9781111530532 ppt ch07Terry Yoast
 
9781111530532 ppt ch07
9781111530532 ppt ch079781111530532 ppt ch07
9781111530532 ppt ch07Terry Yoast
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingHamad Odhabi
 
CIS 406 Imagine Your Future/newtonhelp.com   
CIS 406 Imagine Your Future/newtonhelp.com   CIS 406 Imagine Your Future/newtonhelp.com   
CIS 406 Imagine Your Future/newtonhelp.com   bellflower47
 
CIS 406 Focus Dreams/newtonhelp.com
CIS 406 Focus Dreams/newtonhelp.comCIS 406 Focus Dreams/newtonhelp.com
CIS 406 Focus Dreams/newtonhelp.combellflower87
 
CIS 406 Life of the Mind/newtonhelp.com   
CIS 406 Life of the Mind/newtonhelp.com   CIS 406 Life of the Mind/newtonhelp.com   
CIS 406 Life of the Mind/newtonhelp.com   bellflower5
 
CIS 406 Inspiring Innovation/tutorialrank.com
 CIS 406 Inspiring Innovation/tutorialrank.com CIS 406 Inspiring Innovation/tutorialrank.com
CIS 406 Inspiring Innovation/tutorialrank.comjonhson112
 
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 Effective Communication - tutorialrank.com
CIS 406 Effective Communication - tutorialrank.comCIS 406 Effective Communication - tutorialrank.com
CIS 406 Effective Communication - tutorialrank.comBartholomew21
 

Similar a Description Unit 9 - Java Arrays and Data FilesThis unit is.docx (20)

Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
 
66781291 java-lab-manual
66781291 java-lab-manual66781291 java-lab-manual
66781291 java-lab-manual
 
Computer Tools for Academic Research
Computer Tools for Academic ResearchComputer Tools for Academic Research
Computer Tools for Academic Research
 
Class 1
Class 1Class 1
Class 1
 
Class 1
Class 1Class 1
Class 1
 
Class 1 blog
Class 1 blogClass 1 blog
Class 1 blog
 
Prg421
Prg421Prg421
Prg421
 
Cis 406 Extraordinary Success/newtonhelp.com
Cis 406 Extraordinary Success/newtonhelp.com  Cis 406 Extraordinary Success/newtonhelp.com
Cis 406 Extraordinary Success/newtonhelp.com
 
9781111530532 ppt ch07
9781111530532 ppt ch079781111530532 ppt ch07
9781111530532 ppt ch07
 
9781111530532 ppt ch07
9781111530532 ppt ch079781111530532 ppt ch07
9781111530532 ppt ch07
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
 
CIS 406 Imagine Your Future/newtonhelp.com   
CIS 406 Imagine Your Future/newtonhelp.com   CIS 406 Imagine Your Future/newtonhelp.com   
CIS 406 Imagine Your Future/newtonhelp.com   
 
CIS 406 Focus Dreams/newtonhelp.com
CIS 406 Focus Dreams/newtonhelp.comCIS 406 Focus Dreams/newtonhelp.com
CIS 406 Focus Dreams/newtonhelp.com
 
CIS 406 Life of the Mind/newtonhelp.com   
CIS 406 Life of the Mind/newtonhelp.com   CIS 406 Life of the Mind/newtonhelp.com   
CIS 406 Life of the Mind/newtonhelp.com   
 
CIS 406 Inspiring Innovation/tutorialrank.com
 CIS 406 Inspiring Innovation/tutorialrank.com CIS 406 Inspiring Innovation/tutorialrank.com
CIS 406 Inspiring Innovation/tutorialrank.com
 
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
 
CIS 406 Effective Communication - tutorialrank.com
CIS 406 Effective Communication - tutorialrank.comCIS 406 Effective Communication - tutorialrank.com
CIS 406 Effective Communication - tutorialrank.com
 
Prg421 prg 421
Prg421 prg 421Prg421 prg 421
Prg421 prg 421
 

Más de carolinef5

Design, develop, and justify a public safety agency budget of EMS. I.docx
Design, develop, and justify a public safety agency budget of EMS. I.docxDesign, develop, and justify a public safety agency budget of EMS. I.docx
Design, develop, and justify a public safety agency budget of EMS. I.docxcarolinef5
 
DESIGN STUDIO III ARCP 301R. Belton, AIA, NOMA, CSI Associates.docx
DESIGN STUDIO III ARCP 301R. Belton, AIA, NOMA, CSI Associates.docxDESIGN STUDIO III ARCP 301R. Belton, AIA, NOMA, CSI Associates.docx
DESIGN STUDIO III ARCP 301R. Belton, AIA, NOMA, CSI Associates.docxcarolinef5
 
Designing Mobile Health Technology for Bipolar DisorderA Fi.docx
Designing Mobile Health Technology for Bipolar DisorderA Fi.docxDesigning Mobile Health Technology for Bipolar DisorderA Fi.docx
Designing Mobile Health Technology for Bipolar DisorderA Fi.docxcarolinef5
 
Design, develop, and justify a public safety agency budget of EMS..docx
Design, develop, and justify a public safety agency budget of EMS..docxDesign, develop, and justify a public safety agency budget of EMS..docx
Design, develop, and justify a public safety agency budget of EMS..docxcarolinef5
 
Designa high-level conceptual view of a data warehouse (DW) fo.docx
Designa high-level conceptual view of a data warehouse (DW) fo.docxDesigna high-level conceptual view of a data warehouse (DW) fo.docx
Designa high-level conceptual view of a data warehouse (DW) fo.docxcarolinef5
 
Design your one assignment of Creating Rubrics for students of eleme.docx
Design your one assignment of Creating Rubrics for students of eleme.docxDesign your one assignment of Creating Rubrics for students of eleme.docx
Design your one assignment of Creating Rubrics for students of eleme.docxcarolinef5
 
Design  a PowerPoint presentation for high school aged students .docx
Design  a PowerPoint presentation for high school aged students .docxDesign  a PowerPoint presentation for high school aged students .docx
Design  a PowerPoint presentation for high school aged students .docxcarolinef5
 
Design PatternsChristian Behrenshttpswww.behance.netgall.docx
Design PatternsChristian Behrenshttpswww.behance.netgall.docxDesign PatternsChristian Behrenshttpswww.behance.netgall.docx
Design PatternsChristian Behrenshttpswww.behance.netgall.docxcarolinef5
 
DESIGN TECHNOLOGY CLASS” DescriptionUsing the various tool.docx
DESIGN TECHNOLOGY CLASS” DescriptionUsing the various tool.docxDESIGN TECHNOLOGY CLASS” DescriptionUsing the various tool.docx
DESIGN TECHNOLOGY CLASS” DescriptionUsing the various tool.docxcarolinef5
 
Design one assignment of the Word Find and the one of Using Digital .docx
Design one assignment of the Word Find and the one of Using Digital .docxDesign one assignment of the Word Find and the one of Using Digital .docx
Design one assignment of the Word Find and the one of Using Digital .docxcarolinef5
 
Design of Pareto optimal CO2 cap-and-trade policies for de.docx
Design of Pareto optimal CO2 cap-and-trade policies for de.docxDesign of Pareto optimal CO2 cap-and-trade policies for de.docx
Design of Pareto optimal CO2 cap-and-trade policies for de.docxcarolinef5
 
Design of a non-invasive Hip Exoskeleton DISCLAIMERThis repo.docx
Design of a non-invasive Hip Exoskeleton DISCLAIMERThis repo.docxDesign of a non-invasive Hip Exoskeleton DISCLAIMERThis repo.docx
Design of a non-invasive Hip Exoskeleton DISCLAIMERThis repo.docxcarolinef5
 
Design Document – Week 1 – ProposalCourse ID IT 491 CAPSTONE .docx
Design Document – Week 1 – ProposalCourse ID IT 491 CAPSTONE .docxDesign Document – Week 1 – ProposalCourse ID IT 491 CAPSTONE .docx
Design Document – Week 1 – ProposalCourse ID IT 491 CAPSTONE .docxcarolinef5
 
Design DissertationDeveloping a coherent methodologyAimTo p.docx
Design DissertationDeveloping a coherent methodologyAimTo p.docxDesign DissertationDeveloping a coherent methodologyAimTo p.docx
Design DissertationDeveloping a coherent methodologyAimTo p.docxcarolinef5
 
Design and implement a Java program that transfers fragments of a fi.docx
Design and implement a Java program that transfers fragments of a fi.docxDesign and implement a Java program that transfers fragments of a fi.docx
Design and implement a Java program that transfers fragments of a fi.docxcarolinef5
 
Design and Mechanism ofControlling a Robotic ArmIntroduction.docx
Design and Mechanism ofControlling a Robotic ArmIntroduction.docxDesign and Mechanism ofControlling a Robotic ArmIntroduction.docx
Design and Mechanism ofControlling a Robotic ArmIntroduction.docxcarolinef5
 
design and develop an interactive and user-friendly GUI-based networ.docx
design and develop an interactive and user-friendly GUI-based networ.docxdesign and develop an interactive and user-friendly GUI-based networ.docx
design and develop an interactive and user-friendly GUI-based networ.docxcarolinef5
 
Design a Lesson plan on the subject of Reflections and Guide Reflect.docx
Design a Lesson plan on the subject of Reflections and Guide Reflect.docxDesign a Lesson plan on the subject of Reflections and Guide Reflect.docx
Design a Lesson plan on the subject of Reflections and Guide Reflect.docxcarolinef5
 
Design a Java application that will read a file containing data rela.docx
Design a Java application that will read a file containing data rela.docxDesign a Java application that will read a file containing data rela.docx
Design a Java application that will read a file containing data rela.docxcarolinef5
 
Design a high-level conceptual view of a data warehouse (DW) for H.docx
Design a high-level conceptual view of a data warehouse (DW) for H.docxDesign a high-level conceptual view of a data warehouse (DW) for H.docx
Design a high-level conceptual view of a data warehouse (DW) for H.docxcarolinef5
 

Más de carolinef5 (20)

Design, develop, and justify a public safety agency budget of EMS. I.docx
Design, develop, and justify a public safety agency budget of EMS. I.docxDesign, develop, and justify a public safety agency budget of EMS. I.docx
Design, develop, and justify a public safety agency budget of EMS. I.docx
 
DESIGN STUDIO III ARCP 301R. Belton, AIA, NOMA, CSI Associates.docx
DESIGN STUDIO III ARCP 301R. Belton, AIA, NOMA, CSI Associates.docxDESIGN STUDIO III ARCP 301R. Belton, AIA, NOMA, CSI Associates.docx
DESIGN STUDIO III ARCP 301R. Belton, AIA, NOMA, CSI Associates.docx
 
Designing Mobile Health Technology for Bipolar DisorderA Fi.docx
Designing Mobile Health Technology for Bipolar DisorderA Fi.docxDesigning Mobile Health Technology for Bipolar DisorderA Fi.docx
Designing Mobile Health Technology for Bipolar DisorderA Fi.docx
 
Design, develop, and justify a public safety agency budget of EMS..docx
Design, develop, and justify a public safety agency budget of EMS..docxDesign, develop, and justify a public safety agency budget of EMS..docx
Design, develop, and justify a public safety agency budget of EMS..docx
 
Designa high-level conceptual view of a data warehouse (DW) fo.docx
Designa high-level conceptual view of a data warehouse (DW) fo.docxDesigna high-level conceptual view of a data warehouse (DW) fo.docx
Designa high-level conceptual view of a data warehouse (DW) fo.docx
 
Design your one assignment of Creating Rubrics for students of eleme.docx
Design your one assignment of Creating Rubrics for students of eleme.docxDesign your one assignment of Creating Rubrics for students of eleme.docx
Design your one assignment of Creating Rubrics for students of eleme.docx
 
Design  a PowerPoint presentation for high school aged students .docx
Design  a PowerPoint presentation for high school aged students .docxDesign  a PowerPoint presentation for high school aged students .docx
Design  a PowerPoint presentation for high school aged students .docx
 
Design PatternsChristian Behrenshttpswww.behance.netgall.docx
Design PatternsChristian Behrenshttpswww.behance.netgall.docxDesign PatternsChristian Behrenshttpswww.behance.netgall.docx
Design PatternsChristian Behrenshttpswww.behance.netgall.docx
 
DESIGN TECHNOLOGY CLASS” DescriptionUsing the various tool.docx
DESIGN TECHNOLOGY CLASS” DescriptionUsing the various tool.docxDESIGN TECHNOLOGY CLASS” DescriptionUsing the various tool.docx
DESIGN TECHNOLOGY CLASS” DescriptionUsing the various tool.docx
 
Design one assignment of the Word Find and the one of Using Digital .docx
Design one assignment of the Word Find and the one of Using Digital .docxDesign one assignment of the Word Find and the one of Using Digital .docx
Design one assignment of the Word Find and the one of Using Digital .docx
 
Design of Pareto optimal CO2 cap-and-trade policies for de.docx
Design of Pareto optimal CO2 cap-and-trade policies for de.docxDesign of Pareto optimal CO2 cap-and-trade policies for de.docx
Design of Pareto optimal CO2 cap-and-trade policies for de.docx
 
Design of a non-invasive Hip Exoskeleton DISCLAIMERThis repo.docx
Design of a non-invasive Hip Exoskeleton DISCLAIMERThis repo.docxDesign of a non-invasive Hip Exoskeleton DISCLAIMERThis repo.docx
Design of a non-invasive Hip Exoskeleton DISCLAIMERThis repo.docx
 
Design Document – Week 1 – ProposalCourse ID IT 491 CAPSTONE .docx
Design Document – Week 1 – ProposalCourse ID IT 491 CAPSTONE .docxDesign Document – Week 1 – ProposalCourse ID IT 491 CAPSTONE .docx
Design Document – Week 1 – ProposalCourse ID IT 491 CAPSTONE .docx
 
Design DissertationDeveloping a coherent methodologyAimTo p.docx
Design DissertationDeveloping a coherent methodologyAimTo p.docxDesign DissertationDeveloping a coherent methodologyAimTo p.docx
Design DissertationDeveloping a coherent methodologyAimTo p.docx
 
Design and implement a Java program that transfers fragments of a fi.docx
Design and implement a Java program that transfers fragments of a fi.docxDesign and implement a Java program that transfers fragments of a fi.docx
Design and implement a Java program that transfers fragments of a fi.docx
 
Design and Mechanism ofControlling a Robotic ArmIntroduction.docx
Design and Mechanism ofControlling a Robotic ArmIntroduction.docxDesign and Mechanism ofControlling a Robotic ArmIntroduction.docx
Design and Mechanism ofControlling a Robotic ArmIntroduction.docx
 
design and develop an interactive and user-friendly GUI-based networ.docx
design and develop an interactive and user-friendly GUI-based networ.docxdesign and develop an interactive and user-friendly GUI-based networ.docx
design and develop an interactive and user-friendly GUI-based networ.docx
 
Design a Lesson plan on the subject of Reflections and Guide Reflect.docx
Design a Lesson plan on the subject of Reflections and Guide Reflect.docxDesign a Lesson plan on the subject of Reflections and Guide Reflect.docx
Design a Lesson plan on the subject of Reflections and Guide Reflect.docx
 
Design a Java application that will read a file containing data rela.docx
Design a Java application that will read a file containing data rela.docxDesign a Java application that will read a file containing data rela.docx
Design a Java application that will read a file containing data rela.docx
 
Design a high-level conceptual view of a data warehouse (DW) for H.docx
Design a high-level conceptual view of a data warehouse (DW) for H.docxDesign a high-level conceptual view of a data warehouse (DW) for H.docx
Design a high-level conceptual view of a data warehouse (DW) for H.docx
 

Último

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 

Último (20)

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 

Description Unit 9 - Java Arrays and Data FilesThis unit is.docx

  • 1. Description: Unit 9 - Java Arrays and Data Files This unit is really about three different topics that are related to one another – arrays in Java, simple text files in Java, and modular programing in java (Java methods). The unit has a programming project spread over three related programming assignments, each worth 10 points. In the first assignment, you will create a Java program that works with a small array of data containing five test scores. It will get data from user input do some calculations, and then print the results. In the second assignment, you will modify a copy of the first assignment to load the data from a data file into an array, and then output the results to a data file. In the third assignment, you will decompose a copy of the second assignment into separate methods in Java. Our goal is to have a good modular program that loads stored data from a fie into an array, works with the data, then sends results to another data file. Doing this in three parts will allow you to focus on one aspect of the problem at a time. There are reading assignments in Zybooks, but the two chapters from the Java Learning Kit – Chapter 5 – and Chapter 6 are your best source for learning this material. They cover the things you need to learn to complete this project and have good sample programs. Your tasks are to:
  • 2. Read Zybooks Assginment 11 - Arrays in Java. Read the material in JLK Chapter 6 about arrays in Java. Complete the Java Arrays Programming assignment. Read the material in Chapter 6 about text files in Java. There is no corresponding Zybooks assignment. Complete the Java Text Files Programming assignment. Read the Zybooks Assignment 12 - Methods in Java Read the material in JLK Chapter 5 about methods in Java. Complete the Java Methods programming assignment. It may seem like their is a lot to do here but the assignments are each simple and build on one another. assignments: #1 You should complete Zybooks Assignment 11 - Arrays in Java and read lessons 6.1, 6.2, and 6.3 in JLK Chapter 6
  • 3. about arrays in Java before starting this assignment. Your task is to create a Java I-P-O program that works with a small array of data containing five test scores. Your program should: contain a for loop to read five test score into an array from the user. The array should be a floating point array with five elements. Using second for loop, calculate the average score, highest score, and lowest score in the array. JLK lesson 6.3 is a good guide for doing this. print the results. You should submit a zipped copy of your IntelliJ project folder. #2 You should read lesson 6.5 Text File Input and Output in Java before starting this assignment. Reading Lab 6.6 will also be helpful. There is no corresponding Zybooks assignment. Your task is to modify the program from the Java Arrays programming assignment to use text files for input and output. I suggest you save acopy of the original before modifying the software.
  • 4. Your modified program should: contain a for loop to read the five test score into the array from a text data file. You will need to create and save a data file for the program to use. It should have one test score on each line of the file. You can type and save the text file with any text editor, such as Notepad or Notepad++. NotePad++ is a good program to have on your computer, It can be downloaded freely from: https://notepad-plus-plus.org (Links to an external site.) It should be saved or copied to the same folder as your Java source code file within you Intellij project. Contain a second for loop, calculate the average score, highest score, and lowest score in the array. This part of your program does not need to change from the previous assignment. output the results to a new text file. You can decide the name of the file. You should only use a local file name and the file will then be created in your IntelliJ project folder. You should submit a zipped copy of your IntelliJ project folder, which should contain the two data files within the project.. Previous Next
  • 5. #3 You should complete Zybooks Assignment 12 - Methods in Java and read lessons JLK Chapter 5 - Methods and Modularity in Java before starting this assignment. Your task is to modify the program from the Java Text files programming assignment to contain several methods for different parts of the program.I suggest you save a copy of the original before modifying the software. Your modified program should have the following six methods: a method with a for loop to read the five test score into the array from a text data file. The array should be declared in the main method and passed as a parameter to this method. three separate methods to each calculate and return one of the following: the average score, highest score, and lowest score . Each method should contain a for loop to calculate and return one of the values to the main method. You can copy and edit he existing loop form the previous program for each of these methods.
  • 6. a method to output the results to a new text file, as the main method did in the previous program. You basically need to move the code to do this into a new method. the main method, which has the necessary variables and which calls the other methods as needed, passing values to those methods and receiving returned value from the methods as needed. Unlike Python functions, methods do not need to appear before they are called in a program file. In fact, it is common practice in Java to put the main() method as the first method in Java program, similar to what is done in the payMethods sample program in the chapter. You should submit a zipped copy of your IntelliJ project folder, which should contain will contain the two data files within the project.. You should submit a zipped copy of your IntelliJ project folder. Previous Next