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 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
