0% found this document useful (0 votes)
4 views

Year_1_C_programming_Assignment[1]

Uploaded by

sabbathshema
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Year_1_C_programming_Assignment[1]

Uploaded by

sabbathshema
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Year 1: Civil Engineering Environment

Date:14/11/2022
Assignment: Computer Programming

Note: This work has to be done on an individual basis. You must submit a handwritten copy on
Thursday, November 24, 2022, at 14:00 Pm.

1. State and explain any four-importance features of C language.


2. Developing a program in a compiled language like C requires at least 4 steps, write down and
explain them.
3. Discuss stages used in program development.
4. C language supports two different ways to insert comments; write a C program to computer
remainder and quotients of two integers (dividend and divisor) entered by the user and after
applies one of those comments on each line.
5. Discuss different types of Programming errors.
6. Write a C program to display the average soil moisture for the five construction sites, the data
must be entered from the user’s Keyboard. Known that soil moisture (SM) calibrations: SM<0
(Impossible), SM>0 (Moderated), and SM=0 (Normal).
7. Define and give an example of each of the following concepts:
a. Standard Library b) Source Code c) Object Code d) Structure
8. Differentiate the following terms: source code, keyword, debugging, and variable.
9. Explain when a programmer will prefer to use a switch case statement instead of nested if else in
C language.
10. In C language, you can use multiple If statements to check more than one condition called nested
if else; give its syntax and explain.
11. Write a program that prints a Fahrenheit to Celsius conversion table using While Loop and For
Loop.
12. With examples, differentiate looping from jump statements as applied in C language.
13. Define the term recursion in C programming and state its advantages and disadvantages.
14. Explain any four reasons why a programmer needs to create an additional function in C
language.
15. Differentiate an array from a structure and from a pointer.

GOOD LUCKY

You might also like