NAME: ABULQUADRI RAHAMON BOLUWATIFE
COURSE CODE: COM 127
COURSE TITLE: JAVA PROGRAMING LANGUAGE
MALTIC NO: NLP/ND/23/COM/FT/023
Assignment:
✓ Write a program to accepted values from the keyboard, and output the values using ‘printf’
function
Answer:
NAME: ABULQUADRI RAHAMON BOLUWATIFE
COURSE CODE: COM 127
COURSE TITLE: JAVA PROGRAMING LANGUAGE
MALTIC NO: NLP/ND/23/COM/FT/023
Assignment:
1. Write a java program that reads a floating-point number. If the number is zero it prints “zero”,
print positive or negative. Add small if the absolute value of the number is less than 1 or large if
it exceeds 1,000,000
Answer:
2. Write a java program to convert temperature from Fahrenheit to Celsius degree.
Answer:
NAME: ABULQUADRI RAHAMON BOLUWATIFE
COURSE CODE: COM 127
COURSE TITLE: JAVA PROGRAMING LANGUAGE
MALTIC NO: NLP/ND/23/COM/FT/023
Assignment:
1. Write a java that’s reads a number in inches, converts it to meters.
Answer:
2. Write a java program that reads an integer between 0 and 1000 and adds all the digits in the
integer.
Answer:
NAME: ABULQUADRI RAHAMON BOLUWATIFE
COURSE CODE: COM 127
COURSE TITLE: JAVA PROGRAMING LANGUAGE
MALTIC NO: NLP/ND/23/COM/FT/023
Assignment:
1. Write a java program that accept two integers from the user and then prints the sums , the
difference, the product, the average, the distance (difference between the integers), the
minimum (smaller of the two number).
Answer:
2. Write a java program that accepts four integer from the user and print equal if all four number
are equal and not equal otherwise.
Answer:
NAME: ABULQUADRI RAHAMON BOLUWATIFE
COURSE CODE: COM 127
COURSE TITLE: JAVA PROGRAMING LANGUAGE
MALTIC NO: NLP/ND/23/COM/FT/023
Assignment:
Write a java program to solve quadratic equation. Using the usual formula
Answer:
NAME: ABULQUADRI RAHAMON BOLUWATIFE
COURSE CODE: COM 127
COURSE TITLE: JAVA PROGRAMING LANGUAGE
MALTIC NO: NLP/ND/23/COM/FT/023
Assignment:
Write a java program that will compute grade of a particular student with 5 different courses
use 2 constructor. First constructor accepts student name and matric number while second
constructor accepts the scores for the five courses. Cal. The grade and print the result.
Answer:
Answer: