The main objective of this lab activity is to help students to write simple C programs. Part A: a sample pseudocode, flowchart and a C program [6 marks]
Exercise 1: Write a pseudocode or draw a flowchart to print the following lines as shown below: Note: myName and my_field_of_study needs to be replaced by your full name and field of study respectively. Hello! My name is: ** myName ** Field of Study: – my_field_of_study Thanks
Exercise 2: Write a C program for the exercise 1.
Exercise 3: Write a C program to display the following asterisk-face pattern: ***************
Exercise 4: Write a C program to produce the following table, using proper escape sequences: x value expressions results y- x+ 3 y= 8 | y= x+ 5 y= 151 5 10 Exercise 5: Write a simple C program that display the following message where myName needs to be replaced by your full name, My name is myName.
Exercise 6: Write a C program that using just one printf statement produces the following output. Hello, World!