ITC11L (Computer Programming 1) : EXERCISE (Pre-Midterm) Conditional Control Structures
ITC11L (Computer Programming 1) : EXERCISE (Pre-Midterm) Conditional Control Structures
INFORMATION TECHNOLOGY
DEPARTMENT
.
ITC11L
(COMPUTER PROGRAMMING 1)
EXERCISE (Pre-Midterm)
CONDITIONAL CONTROL STRUCTURES
Student Name /
Section:
Professor:
Code:
include<iostream>
#include<iomanip.std>
int main() {
int name[15];
float FG;
<< MG;
cout<<fixed<<setprecision(2);
cout << "Congratulations " << name << "!!!" << endl;
cout << "Bad news " << name << "!!!" << endl;
else
cout << "Hi " << name << "!!!" << endl;
return 0;
Statement(s) Remark
a or A
b or B
x or X
Code:
TECHNOLOGY #include<iostream>
#include<iomanip>
using namespace std;
int main() {
int ltr;
switch (ltr) {
cout << Cel << " degrees is " << Fah << " in Fahrenheit.";
break;
cout << Fah << " degrees is " << Cel << " in Celsius";
break;
return 0;
V. REFERENCES
• Abraham (2015). Coding for dummies. John Wiley and Sons: Hoboken, NJ
• Zak, D (2015). An Introduction to Programming with C++. 8th Edition
• Cadenhead, R et. Al. (2016). C++ in 24 Hours, Sams Teach Yourself (6th Edition).Sams Publishing •
McGrath, M. (2017). C++ programming in easy steps (5th ed.). Warwickshire, United Kingdom: Easy
Steps Limited
• Tale, T. (2016). C++: The Ultimate Beginners Guide to C++ Programing. CreateSpace Independent
Publishing Platform
• http://cs.uno.edu/~jaime/Courses/2025/devCpp2025Instructions.html
Submission: October 11, 2021 (Do take note that this will be part of your Midterm exam).