Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Write a program that will read a person's age as input. Check whether a person is a senior citizen or not. A senior citizen
1. Write a program that will read a person's age as input. Check whether a person is a senior citizen or not. A senior citizen is a person whose age is more than or equal to 60. Display the remark Senior if the age is considered a senior, otherwise display Junior". 2. Write a program to print below shown pattern 5 55 55 4444 333 22 1 3. Write a program that will read the base and height of a triangle. Using a function, compute for the area of the triangle using the formula: Area = base * height/2 4. Write a program to compute the following (x + y) S y? Result= y 2* Z 2 4 5. You are tasked to create a program that will read the mark obtained by a student in a certain course. Display the Grade and GPA equivalent based on the value of marks as indicated in the table below: COURSE GRADING SCHEME Marks 90-100 85-89 80-84 76-79 73-75 70-72 67-69 60-66 55-59 Below 55 Grade A A- B+ B B- C+ GPA 4.0 3.7 3.3 3.0 2.7 2.3 2.0 1.7 1.0 0.0 C- D F
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started