Reference no: EM132396518
Computer Programming Assignment -
Q1. (a) Recall the definitions of (I) Assembler (II) Compiler (III) Interpreter.
Q1. (b) Write a program that reads two numbers from key board and gives their addition, subtraction, multiplication, division and modulo.
Q1. (c) Develop an application program to convert and print distance between two cities in meters, feet, inches ¢imeters. The distance between two cities (In KM) is input through keyboard.
Q2. (a) Discuss general form of following decision - making statements. (I) IF (II) SWITCH (III) GOTO.
Q2. (b) Describe the four basic data types. How could we extend the range of values they represent?
Q3. Distinguish between the following pairs:
(I) "getchar" and "scanf" functions.
(II) %s" and "%c" specifications for reading.
Q4. Develop a simple program to Add, subtract and multiply two numbers using switch statement.
Q5. Define a structure called cricket that will describe the following information:
a. Player name
b. Team name
c. Batting average.