Question: Instructions): If you are asked to write a C-program, please provide the source code as well as the SCHOSKO of the console output window in.doc

 Instructions): If you are asked to write a C-program, please provide

Instructions): If you are asked to write a C-program, please provide the source code as well as the SCHOSKO of the console output window in.doc file. Also upload the doc file into the Camus. Submit the .e file of your source code into the canvas as well. 1. (15 points) Write a C-program that paints the numbers 1 to 4 on the same line. Write the program using the following methods. a) Using one printf statement with no format specifiers. b) Using one printf statement with four format specifiers c) Using four printf statement 2. (20 points) Write 2 C-program that reads achieved points of a student in 3 (three) subjects. Calculate the percentage of marks assuming the maximum marks to be 300 3. (10+10 points) (You do not zeed to write a C-program for the following probleatus). 1) Problem 2.7 from textbook. (attached in the module) 11) Problem 2.12 from textbook. (attached in the module) 4. (20 points) Write a code that takes a year as input and finds out whether it is a leap year or not 5. (20 points) Convert the following for loop and if else code to do while and switch case code [Do not use any for'if else] #include int main() int nun, 1; printf("Enter positive integer"); scanf("%d", Sun) printf("Factors of dare: nus): for (i -1; ++i) { if (nur 1 - 0) 1 printf("d", 1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!