a) Distinguish between the following programming concepts
I. Objects and operations
II. Compilers and interpreters
III. Procedural and non-procedural languages [3 marks]
b) How do the following characteristic improve the quality of a program
I. Modularity
II. Localization
III. Delayed decisions [3 marks]
c) Draw a flowchart to depict the following examination processing scenario
I. The input consists of students marks in a given course
II. Complain if the mark is below 0 or above 100
III. Determine the grade from the supplied mark(>=70=A;<40=C;otherwise B)
IV. Print grade [4 marks]
d) Explain the output when you execute the following code :
#include<stdio.h>
Void main(){
Int a=5;
{
Int b=10;
=
++b;
++a;
{int a=20;
++a;
a=++b;
}
++a;
++b;
Printf(“%d %d”,a,b);
}
Printf(“%d”,a); [3 marks]
e) Accounting software has to deal with money in amounts exceeding a trillion dollars and yet keep the arithmetic accurate to the penny. What kind of number that C supports would be adequate? [1 mark]
f) Write a simple C program that requests three floating point numbers and prints the sum and product of their square roots to three decimal places [4 marks]
For a custom-written paper on the above topic, place your order now!
What We Offer
• On-time delivery guarantee
• PhD-level professionals
• Automatic plagiarism check
• 100% money-back guarantee
• 100% Privacy and Confidentiality
• High Quality custom-written papers