Ask Java Expert


Home >> Java

Assignment

Section 1: Java Program File

1. Create a Java program in which you include:

• a class called "roster"

• attributes, which must be last names and numerical grades, and must also be parallel arrays

• an indefinite loop, which allows the user to manually enter five (5) names and grades and stores them in the array. Note: The loop must end either when the user specifies that they are done or when a maximum of five (5) values have been stored in the arrays, i.e., five names and a corresponding grade for each name.

• an indefinite loop, which prompts the user to select a sorting criterion or to end the program, and must also use bubble sort. Note: The user may either select name or grade as the sorting criteria. The program must use bubble sort to sort that data according to the specific criteria and then use another loop to display the data. This process must continue until the user ends the program.

Section 2: Screen Shot of the Output and Description of Your Java Program

2. Create a screen shot of the output and include a description about your Java program.

• Submit a screen shot which shows the output of your Java Program. Note: Go to http://www.take-a-screenshot.org/ if you need a tutorial on taking a screen shot.

• Include a one page description about your program. Note: Use MS Word for your program description, and place the screen shot of the output from your Java program into the Word file as an attached image.

The output should look like this if the user chose to sort by name:

Name Numerical Grade
Bailey 97
David 88
Ericson 79
Frank 99
Manning 91

The output should look like this if the user chose to sort by grade:

Name Numerical Grade
Frank 99
Bailey 97
Manning 91
David 88
Ericson 79

Note: The name and grade pairs must stay together.

Section 1 and Section 2 will be graded based on the following:

1. The program must compile, execute, produce correct results, and meet all of the specifications stated in Section 1.

Additionally you must:

1. Organize the code for user readability.
2. Organize the code for reusability.
3. Organize the code for efficiency.
4. Provide documentation with embedded comments for reader understanding.
5. Include a one page description about your program.

The specific course learning outcomes associated with this assignment are:

• Demonstrate the proper use and application of syntax in the Java programming language.
• Demonstrate the ability to design, compile, implement, test, and debug simple programs in Java.
• Demonstrate the ability to manipulate numbers and character strings in Java.
• Compare and contrast classes and objects in Java.
• Construct classes through systematic procedures.
• Discuss object-oriented design principles.
• Compare and contrast abstract and concrete data types.
• Demonstrate the ability to implement generic classes and methods.
• Declare and use interface types.
• Demonstrate the ability to program simple and complex decisions in Java.
• Implement loops for repetitive tasks.
• Compare and contrast definite loops and indefinite loops.
• Compare and contrast arrays and array lists in Java.
• Write clearly and concisely about Java programming using proper writing mechanics and technical style conventions.

Java, Programming

  • Category:- Java
  • Reference No.:- M92543131
  • Price:- $45

Priced at Now at $45, Verified Solution

Have any Question?


Related Questions in Java

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As