Es1 Midterm

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

COMPUTER FUNDAMENTALS AND PROGRAMMING ES 1

SECOND SEMESTER l A.Y. 2023 - 2024


NAME: ROWELL VICTORIO COURSE: BS CIVIL ENGINEERING
YEAR & SECTION: 1CE -C INSTRUCTOR: ENGR. FREDELINA F. DE LEON, MAEd.

CODING ACTIVITY
1. Draw a flowchart and write a C++ program that will determine the output of a
digital converter unit using the following input/output relationship:
ROOT PATH: C:\Users\rowel\OneDrive\Documents\Coding Activity\MIDTERM\
2. Draw a flowchart and create a C++program that will input your grade score then
display the letter grade assigned by the end user. Table below shows the assigned
letter grade for each test score.
ROOT PATH: C:\Users\rowel\OneDrive\Documents\Coding Activity\MIDTERM 2\
3. Draw a flowchart and write a C++ that accepts a number followed by one space
and then a letter. If the letter following the number is f, the program is to
treat the number entered as a temperature in degrees Fahrenheit, convert the
number to the equivalent degrees Celsius, and print a suitable display message.
If the letter following the number is c, the program is to treat the number
entered as a temperature in Celsius, convert the number to the equivalent degrees
Fahrenheit, and print a suitable display message. If the letter is neither an f
or c, the program is to print a message that the data entered is incorrect and
terminate.

ROOT PATH: C:\Users\rowel\OneDrive\Documents\Coding Activity\MIDTERM 3\


4. Draw a flowchart and write a C++ program that will select the arithmetic
operation (addition, subtraction, multiplication, or division) to be performed on
two numbers depending on the operation to be use.
ROOT PATH: C:\Users\rowel\OneDrive\Documents\Coding Activity\MIDTERM 4\
5. A child’s parents promised to give the child Php 550 on her 12th birthday and
double the gift on every subsequent birthday until the gift exceeded Php 55,000.
Draw a flowchart and write a C++ program that will determine how old the child
will be when the last amount is given, and the total amount received.
ROOT PATH: C:\Users\rowel\OneDrive\Documents\Coding Activity\MIDTERM 5\
6. Each disk drive in a shipment of these devices is stamped with a code from 1
through 4, which indicates a drive of manufacturers as follows:
Code Disk Drive Manufacturer
1 3M Corporation
2 Maxell Corporation
3 Sony Corporation
4 Verbatim Corporation
ROOT PATH: C:\Users\rowel\OneDrive\Documents\Coding Activity\MIDTERM 6\
7. Draw a flowchart and write a C++ program that will compute the weekly wages of
an employee base on the following:
Gross pay depends on the pay rate and the number of hours worked per week.
However, if you work more than 40 hours, you get paid time-and-a-half for all
hours worked over 40.
ROOT PATH: C:\Users\rowel\OneDrive\Documents\Coding Activity\MIDTERM 7\

You might also like