Top-Rated Free Essay
Preview

carloe :)

Satisfactory Essays
253 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
carloe :)
Distor, Carloe
Problem: Highest Lowest

Source Code:

Sample Output:

Calpo, JefflerBoy C.
Problem: Input Character

Source Code:

Sample Output:

Calpo, JefflerBoy C.
Problem: Pay

Source Code:
Sample Output:

Calpo, JefflerBoy C.
Problem: Write an interactive Java calculator application that calculates sum, difference, product, and quotient of two numbers. The program prompts the user for the first number, the second number, and the operator ( +, -, *, / ). Display the result based from the chosen operator.
Source Code:

Sample Output:

Calpo, JefflerBoy C.
Loop Implementation
Problem 1: Write an application that prints every integer value from 1 to 20 along with the squared value of each integer.

Source Code:
Sample Output:

Calpo, JefflerBoy C.
Loop Implementation
Problem 2: Write an application that sums the integers from 1 to 50.

Source Code:

Sample Output:

Calpo, JefflerBoy C.
Array Implementation
Problem 1. a) Write an application that can hold five integers in an array. Display the integers from first to last, and then display the integers from last to first.

Source Code:

Sample Output:

Calpo, JefflerBoy C.
Array Implementation
Problem 2. a) Write an application containing three parallel arrays that hold 10 elements each. The first array holds four-digit student ID numbers, the second holds first names, and the third holds the students’ grade point averages. Use dialog boxes to accept a student ID number and display the student’s first name and grade point average. If a match is not found, display an appropriate error message that contains the erroneous ID number, and allow the user to search for a new ID number.

Source Code:

Sample Output:

You May Also Find These Documents Helpful