Write a java program that will obtain 10 positive integers

Assignment Help Programming Languages
Reference no: EM131648397

Programming Techniques

Practical Pre-work

Complete the following exercises from the Gaddis textbook prior to your Week 8 practical class. You may check your answers against the answers published in vUWS. Discuss your solutions in the practical class with your tutor in week 8 if there are any that you don't understand.

Gaddis textbook Questions

i. Page 488 [522], Algorithm Workbench, Questions 3, 8
ii. Page 489 [523], Short Answer, Questions 2, 3, 5, 7

Week 8 Practical Exercises

During the Week 8 practical complete the following exercises using the Eclipse IDE to produce working Java code.

Coding Standards: When writing code in this unit you are required to adhere to the Coding Standards and General Principles as defined in the FAQ in vUWS. Your code for the following exercises should adopt these standards and general principles.

1. Write a Java program that will obtain 10 positive integers from the user via the keyboard; as the values are entered by the user store the values in an array. After the values have all been entered and stored in the array, process the array to determine the largest value, smallest value, and the average of the 10 values stored in the array. Your solution must incorporate appropriate methods.

2. Create a copy of your solution to question 1. Edit the copy of the program so that the input numbers are obtained from a text file named numbers.txt instead of from the keyboard. Use a text editor to create the numbers.txt file yourself. Place in the file any number of numbers and test your program. Test the program with different sized files with different sets of numbers. Make sure your code works correctly if the file isn't found, if it exists but doesn't have any data in it, or, if the file has too many values to fit into the array. Your solution must incorporate appropriate methods.

Optional MyProgrammingLab Exercises

These exercises are completely optional. To complete the following exercises you will need to have registered for the Programming Techniques course in MyProgrammingLab. Instructions to register for MyProgrammingLab are published in the "MyProgrammingLab Registration" document that can be found in the "Getting Started" link in vUWS.

To register you will need a MyProgrammingLab access code (comes with the Value Pack version of the text book or can be purchased separately online as part of the registration process) and you should use the ‘Course ID' or ‘Section Access Code' UOFW-29746-XYMH-34

A. Requirements

For each question listed in section B you must

a) use the name for the class file(s) as identified in the question
b) include your authorship details at the top of the file in code comments (see item 3.1 in Section C of this document for details)
c) adhere to the coding standard as identified in the Google Java Style Guide (see Section C of this document for details)
d) reference all sources that you used for inspiration of your solution as per
Section D of this document
e) Ensure that your java code compiles and runs in Eclipse 4.5.3 (Neon.3)

B. Questions

Complete the following questions using the Eclipse IDE to produce working Java code files.
1) Question: Exercise 1 from Week 7 Practical Exercises (Car Class including the additional requirements)
Name of Class File: The name of the Java class for this question is to be Car_studentid where studentid is your student ID. The main program file for this question is to be CarDemo_studentid where studentid is your student ID

This program must be demonstrated to your class tutor for the checkpoint in week 8.

This question will contribute 30% of the marks for Prac Set 2.

Weight of Marking Criteria in this question (refer to pages 9-11 of section 2.5.1 in the Learning Guide for details of the Marking Criteria and Standards)

Code Compilation:

10

Algorithm

15

Identifier

10


 

%

Selection:

%

Use:

%

Code

45

Code

10

Code

10

Functionality/Correctness:

%

Documentatio

%

Readability:

%

 

 

n:

 

 

 

2) Question: Exercise 2 from Week 8 Practical Exercises
Name of Class File: The name of the Java class for this question is to be
Numbers_studentid where studentid is your student ID.

This question will contribute 30% of the marks for Prac Set 2.

Weight of Marking Criteria in this question (refer to pages 9-11 of section 2.5.1 in the Learning Guide for details of the Marking Criteria and Standards)

Code Compilation:

10

%

Algorithm Selection:

10

%

Identifier Use:

10

%

Code

50

Code

10

Code

10

Functionality/Correctness:

%

Documentatio

%

Readability:

%

 

 

n:

 

 

 

3) Question: Exercise 4 from Week 7 Practical Exercises
Name of Class File: The name of the Java class for this question is to be
Membership_studentid where studentid is your student ID.

This question will contribute 40% of the marks for Prac Set 2.

Weight of Marking Criteria in this question (refer to pages 9-11 of section 2.5.1 in the Learning Guide for details of the Marking Criteria and Standards)

Code Compilation:

10

%

Algorithm Selection:

10

%

Identifier Use:

10

%

Code

50

Code

10

Code

10

Functionality/Correctness:

%

Documentatio

%

Readability:

%

 

 

n:

 

 

 

C. Google Java Style Guide
All questions in this Prac Set must adhere to the following listed coding standards as defined in the Google Java Style Guide

Style Guide Item Number

Changes to

Modification

2.1 to 2.3

2.1 modified

2.1 - File Name: The source file name consists of the case-sensitive name of the top-level class it contains as identified in the question, plus an underscore, plus the student ID, plus the .java extension

Example: Retail_12345678.java

3.1 to 3.4.1

3.1 modified

3.1 - License Info is replaced by Authorship

information

All java source files must contain the authorship information as follows:

Student ID: Name: Campus: Tutor Name: Class Day: Class Time:

4.1 to 4.7,

NIL

 

4.8.2.1 to

 

4.8.2.3,

 

4.8.4 to

 

4.8.4.3,

 

4.8.6

 

5, 5.1 to 5.3

NIL

 

Attachment:- Prac_Larger.zip

Verified Expert

In this assignment I use a critical thinking framework to evaluate alternative courses of actions and reach sound decisions in workplace situations. I use AMSC philosophy on critical thinking. For this assignment I use 8 step method disseminated by Roy Eichhorn, Strategic Systems Department, Army Management Staff College, in the report entitled, Developing thinking skills: Critical thinking at the army management staff college in section components of critical thinking at AMSC.

Reference no: EM131648397

Questions Cloud

How many bull-eyes do you expect her to get : More arrows. Consider our archer from Exercise. How many bull's-eyes do you expect her to get?
Elements of effective organizations : Elements of Effective Organizations. Prepare a research paper that analyzes the elements of effective organizations.
How do you think ethical dilemmas affect nursing students : How do you think ethical dilemmas affect nursing students, A general statement identifying the supporting point to be addressed.
Find the mean of the number of right-handers in the group : Still more lefties. Suppose we choose 12 people instead of the 5 chosen in Exercise. Find the mean and standard deviation of number of right-handers in group.u
Write a java program that will obtain 10 positive integers : 300581 Programming Techniques - Write a Java program that will obtain 10 positive integers from the user via the keyboard; as the values are entered by the user
Owners and managers of small businesses : Why do owners and managers of small businesses spend so much time on issues of pricing?
Determining the world trade organization : Conduct an Internet search to find and read at least 3 recent articles that relate to the key term you selected. Articles may be found in the International.
Information or knowledge management system : Identify three learning needs for input into and use of an information or knowledge management system.
Define the four strategic predispositions : 1. Define the four strategic predispositions. 2. How do parochialism and simplification help explain cultures?

Reviews

len1648397

9/19/2017 2:26:22 AM

F. Final Prac Set 2 Submission Procedure To submit your Prac Set 2 you must do the following by the due date and time specified on page 1 of this document. 1. Create a zip file which contains a. your Java source code file(s) for each of the three questions above, and Note: The zip file must be named according to the naming convention: studentid_StudentName_PracSet2_FINAL.zip where studentid is your student id, and StudentName is your full name. 2. Upload the above zip file in the Prac Set 2 Submission link provided in vUWS.

len1648397

9/19/2017 2:26:13 AM

D. Referencing Referencing must follow the guidelines given on page 8 in Section 2.5.1 of the unit Learning Guide. E. Checkpoint The Prac Set 2 Checkpoint will occur in your registered practical class in week 8. At this checkpoint, you will • demonstrate your completed Java program for Question 1 in section B above. • answer a few short questions from the tutor about your work • Zip up the Prac2 folder in which you have created your solution for this prac set. • Name the ZIP file studentid_StudentName _PracSet2_Checkpoint.ZIP where studentid is your student ID • Submit the ZIP file by uploading it in the Prac Set 2 Submission link provided in vUWS.

len1648397

9/19/2017 2:25:56 AM

For each question listed in section B you must a) use the name for the class file(s) as identified in the question b) include your authorship details at the top of the file in code comments (see item 3.1 in Section C of this document for details) c) adhere to the coding standard as identified in the Google Java Style Guide (see Section C of this document for details) d) reference all sources that you used for inspiration of your solution as per Section D of this document e) Ensure that your java code compiles and runs in Eclipse 4.5.3 (Neon.3)

len1648397

9/19/2017 2:25:35 AM

To register you will need a MyProgrammingLab access code (comes with the Value Pack version of the text book or can be purchased separately online as part of the registration process) and you should use the ‘Course ID’ or ‘Section Access Code’ UOFW-29746-XYMH-34 MyProgrammingLab Questions 1. Chapter 7, Section 7.3, “Passing Arrays”, exercise 20650, 20659, 20662 2. Chapter 7, Section 7.4, “Useful Algorithms”, exercise 20710, 20716 3. Chapter 7, Section 7.3, “Passing Arrays”, exercise 20663, 20664 4. Chapter 7, Section 7.4, “Useful Algorithms”, exercise 20714, 20715

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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