You are on page 1of 4

Module 4 Practical Exercise

❖ Course Code: INS2020.


❖ Practice Exercise Number: Module 4.
❖ Practice Exercise Name:
❖ Lecturer: Dr. Ngoc Thanh Pham.

1. Question 1
Insert data a, b then calculate the area of a rectangle where the length is equal
to 2a + b and the width is a – 2b

2. Question 2
A student applied to a university in Hanoi, write a Code to show the application status.
The university requires results of Mathematic exam (0-10 marks) and IELT score
(band scores: 0.0-9.0).
✓ The application status is “success” if the total marks is not less than 16, where
IELTs must larger than 5.0.
✓ Furthermore, the status is “Scholarship” if the student has both math points >
9.0 or IELTS >8.0.
✓ Otherwise, the status is “ Thank for your application”

1
3. Question 3
Given a positive integer n. Count the number of digits of the positive integer n.

4. Question 4
Insert five arbitrary number. Find the largest of five numbers.

2
5. Question 5
a) Enter from the keyboard the positive integer n. Calculate the sum of the
digits in n

b) Enter the positive integer n from the keyboard. Calculate the result of
multiplying the digits in n.

Enjoy your Exercise


3
4

You might also like