Ceng198

Introduction to Computer Programming

Lab#1





Part 1. A First Program in C;



Write the C code above using MS Visual Studio 6.0. Compile and run the code and observe the output.





Part 2. Modify the Following Program;



Modify the code above so that it can give the following output;





Part 3. Do It Yourself.

Write a C program to print out your personal information of yourself, such as; your Name, Surname, Age, Address, Telephone, etc… Print each of them on a separate line.

Part 4. Do It Yourself.



Modify the previous week`s program (Part 1. Do It Yourself.) as to be re-entered all the grades until to get a weighted-average score higher than 40 by using a while loop by changing some of your entered grades.