Compare and contrast classes and objects in java

Assignment Help JAVA Programming
Reference no: EM131734445

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 https://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.

Reference no: EM131734445

Questions Cloud

Create a matrix comparing features of presentation software : Create a matrix comparing five features of presentation software. Using these five features, compare two presentation programs.
What are typical ethical violations observed by hr managers : What role does organizational culture play in organizational ethics. What are typical ethical violations observed by HR managers
Why do interest tax shields associated with debt financing : Why do the interest tax shields associated with debt financing have a positive value for the typical profitable corporation but not for the typical taxed.
Brief overview of the role of hormones : Demonstrate your research and knowledge skills in the following aspects of facial treatments -
Compare and contrast classes and objects in java : Compare and contrast classes and objects in Java. Construct classes through systematic procedures. Discuss object-oriented design principles.
Elaborate on specific concepts that you found useful : Discuss ideas from Understanding Comics What did you learn? Please refer to and elaborate on specific concepts that you found useful/interesting
What is the pv of all future cash flows : (a) What is the PV of all future cash flows if it is assumed that the gold mine is never closed?
What should be the income reported by garfield : Ignoring income taxes, what should be the income reported by Garfield from the lease for the year ended December 31, 2012
Find amount of risk in the equity investment : Without assuming riskless debt, what is the relationship between the ex ante equity risk premium and the amount of risk in the equity investment.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

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

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