lkjhgfdsa

profilea-s-o-b
123456789.pdf

COURSE INSTRUCTOR: SULTAN ALFALAH 1

Kingdom of Saudi Arabia

Ministry of Education

Aljouf University

Computer Science & Information College

Department of Computer Science

Introduction to Computer & Programming

- CS101 -

Practical Part

Assignment

- MaxAndMin

- Equation

Worth points: 10 (5 points for each one)

 Exercise#1:

Write a java class that asks the user to enter three numbers N1, N2, N3 , obtains the numbers,

then calculates and displays the largest number Max followed by the text “is the largest”

and the smallest number Min followed by the text “is the smallest”.

 Exercise#2:

Write a java class that reads an integer N, then calculates the following equation and prints

the result:

𝐒 = 𝟏𝟑 + 𝟐𝟑 + 𝟑𝟑 + ⋯ + 𝐍𝟑