Write a program that prints the numbers 1 to 4 on same lines after one blank line.
1) Write a C program to output following printf statement.
Printf(“\n This is \ a \n C program. “) ;
Create a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop should ask the user whether he or she wishes to perform the operation again. If so, the loop should repeat; otherwise it should terminate
Using a switch statement, write a program that prompts the user for a numeric code and two operands. The numeric codes of 1, 2, 3, and 4 represents addition, subtraction, multiplication, and division respectively. Before division, your program should check whether the second operand is not zero. If it is, it should display “Division by zero not allowed” to the screen.
Among object-oriented languages, one feature that varies considerably is whether the language allows multiple inheritance. C++ does but Ada does not. Java takes a middle ground approach of allowing multiple inheritance of interfaces but not classes. Using a C++ example, illustrate some of the complexities that multiple inheritance introduces. How does C++ deal with them? Why does Java's middle ground approach offer some of the benefits of multiple inheritance while avoids its problems.
Your group visit a shop to get your
assignment typed and printed. Draw a
flowchart to calculate bill of a job work based
on following rates.
• Rate of typing is Rs. 3/- per page
• Rate of Printing is Rs. 5/- per page
User should enter the number of pages in
assignment and no. of print out copies your
group want.
Store a 256-bit unsigned integer number on a 32 byte character array. Add two such
256-bit numbers and print the result.