Write an algorithm and draw a flowchart to solve the following problems: 1. Read 3 student marks for 3 courses. Calculate the average marks for the 3 students. Check the average with the below table and calculate the CGPA according to the formula [CGPA = (Average * Grade point)/10]. Display the CGPA of all the students. Average Grade point 8.5-10 3.75 6.5-8.49 3.25 4.25-6.49 2.75 <4.25 2.25 2. To find the type of visa according to the following rules:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Write an algorithm and draw a flowchart to solve the following problems:
1. Read 3 student marks for 3 courses. Calculate the average marks for the 3 students.
Check the average with the below table and calculate the CGPA according to the
formula [CGPA=(Average * Grade point)/10]. Display the CGPA of all the
students.
Grade point
Average
8.5-10
3.75
6.5-8.49
3.25
4.25-6.49 2.75
<4.25
2.25
2. To find the type of visa according to the following rules:
No. of days to stay
Age
>=25
Visa
>=50
Golden
<50
<25
Ordinary
3. To check whether a passenger can be allowed into Oman?
Fully Vaccinated
Yes
Age
>=18
Entry
Yes
No
>=18
No
No
<18
Yes
4. Find the smallest among 3 numbers.
5. Check whether a number is positive or negative or =0. If it is positive, find the area
of a square. If it is negative, find the area of a rectangle. Otherwise print 'Number is
0'.
[Area of square= side * side; Area of rectangle = length * breadth]
Transcribed Image Text:Write an algorithm and draw a flowchart to solve the following problems: 1. Read 3 student marks for 3 courses. Calculate the average marks for the 3 students. Check the average with the below table and calculate the CGPA according to the formula [CGPA=(Average * Grade point)/10]. Display the CGPA of all the students. Grade point Average 8.5-10 3.75 6.5-8.49 3.25 4.25-6.49 2.75 <4.25 2.25 2. To find the type of visa according to the following rules: No. of days to stay Age >=25 Visa >=50 Golden <50 <25 Ordinary 3. To check whether a passenger can be allowed into Oman? Fully Vaccinated Yes Age >=18 Entry Yes No >=18 No No <18 Yes 4. Find the smallest among 3 numbers. 5. Check whether a number is positive or negative or =0. If it is positive, find the area of a square. If it is negative, find the area of a rectangle. Otherwise print 'Number is 0'. [Area of square= side * side; Area of rectangle = length * breadth]
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY