LAB 6 - BIC10204

QUESTION a:

a. Write a program using if … else statement to display student’s bachelor class of graduation based on Cumulative Grade Point Average (CGPA) by referring to the table below.



CODING & OUTPUT a:




QUESTION b:

Table 1 shows classification of blood pressure based on the systolic blood pressure (SBP) and diastolic blood pressure (DBP) level and recommendations for follow up defined by The Seventh Report of the Joint National Committee on Prevention, Detection, Evaluation and Treatment of High Blood Pressure. Based on Table 1, write C program to determine blood pressure. This program will read SBP and DBP and display the blood pressure category and recommendation as an output messages.


CODING & OUTPUT b:

QUESTION c:

Write a program using nested if statements that perform the following test:

If the variable employed is equal to ‘Y’ and if worklength is equal or greater than 5, then display the message “Your credit card application is accepted”. However, if worklength is less than 5, then display the message “Please provide a guarantor”. Otherwise, if the variable employed is equal to ‘N’, then display the message “Your credit card application is rejected”.

CODING & OUTPUT c:



QUESTION d:

Write a program to convert English unit to metric as unit by using switch … case statement. The conversion units as tabulated in Table 2.


CODING & OUTPUT d:





                                                                                                     Written by Arif (AI210125)😁.

Comments

Popular reaches : 3

Lab Task 1 - BIC10503

LAB 4 - BIC10204

Lab Task 6 - BIC10503

Lab Task 3 - BIC10503

LAB 8 - BIC10204