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 les...
Computer Hardware Specifications A. Suggest an appropriate computer for each of the following scenarios. You should attach the technical specifications of the computer. i) Person A works mostly on image editing. He requires the latest Adobe Photoshop software as well as large storage to store a huge collection of digital images. = Asus ROG Zephyrus GX550LWS-HF130TS ii) Person B is a student and is looking for a low-cost computer below RM1500. He just needs the computer for surfing the Internet and doing his assignments by using a free office suite such as Apache Open Office. = Asus Laptop 15 A516 iii) Person C wants a small, portable computer to read e-books while on the go. = Dell Latitude E7270 Touchscreen Ultrabook B. Fill in the specification of each of the computer components in the following table. C. Justify your answers for Question A . i) Asus ROG Zephyrus GX550LWS-HF130TS is very suitable with scenario #1 due to being ideal for editing because it is one of the grea...
QUESTION 2: 2. Write a complete program following the algorithm given below. 2.1 Print a message to ask users to enter their names. 2.2 Read the name. 2.3 Print a message to ask users to enter their height and weight in kg and m. 2.4 Read weight and height. 2.5 Print name. 2.6 Print weight and height. CODING & OUTPUT QUESTION 2: QUESTION 3: 3. Write a complete program following the algorithm given below. 3.1 Declare identifier of integer data type named num1. 3.2 Declare identifier of float data type named num2. 3.3 Declare a constant called MAX with a value of 50.88. 3.4 Print a message to ask the user to enter a value for num1. 3.5 Read num1. 3.6 Print a message to ask the user to enter the value for num2. ...
Digital Logic Digital computers perform a variety of information processing tasks. Among the basic tasks encountered are the various arithmetic operations. The most basic arithmetic operation is the addition of two binary digits. This simple addition consists of 4 possible operations, they are 0+0=0, 0+1=1, 1+0=1, and 1+1=10. This is called bit adder. Q1. Based on the explanation above, design a circuit for a bit adder. Q2. Test your design in Q (1) using a digital logic simulator. Situation a) 0 + 0 = SUM 0 CARRY 0 Situation b) 0 + 1 = SUM 1 CARRY 0 Situation c) 1 + 0 = SUM 1 CARRY 0 Situation d) 1 + 1 = SUM 0 CARRY 1 Written by Arif (AI210125) 😎
Motherboard Identify the motherboard components. i) Figure L3(i) shows the layout of a motherboard. Identify the labeled components. Answer : Written by Arif (AI210125) 😎
QUESTION 1(a) & (b): 1. Based on the function definition below, write a complete C program with the implementation of functions: a. int GreaterThan(int no) { if (no > 10) printf(“%d is greater than 10”, no); else printf(“%d is less than 10”, no); } b. int ExamGrade(char grade) { if (grade == ‘A’ || grade == ‘a’) printf(“\nExcellent!”); else if (grade == ‘B’ || grade == ‘b’) printf(“\nGood”); else printf(“\nNot in the list”); } CODING & OUTPUT Q1(a): CODING & OUTPUT Q1(b): QUESTION 2: 2. Write a complete C program with the implementation of functions to generate a multiplication table based on user input. The output is displayed as below. Please enter multiplication table: 3 3 Times Table 1 * 3 = 3 2 * 3 = 6 .. .. 12 * 3 = 36 CODING & OUTPUT Q2: QUESTION 3: 3. Write a complete C program to calculate total pay which includes net salary and bonus. Listed below are functions that need to be included in your program.: void BasicSalary() – Ask the user to enter basic sal...
Comments
Post a Comment