#Program, C/C++ Programming

Write a program that accepts two real numbers from a user and a select code. If the entered select code is 1, have the program add the two previously entered numbers and display the result; if the select code is 2, the numbers should be multiplied, and if the select code is 3, the first number should be divided by the second number.




Division by 0 should not be allowed and an appropriate message should be displayed when such a division is attempted. The program should allow the user to use the program over again.
Posted Date: 3/3/2015 2:02:15 AM | Location : Philippines







Related Discussions:- #Program, Assignment Help, Ask Question on #Program, Get Answer, Expert's Help, #Program Discussions

Write discussion on #Program
Your posts are moderated
Related Questions
Protected derivation In addition to doing private and public derivations, you may also do a protected derivation. In this situation :   The private members inherited

#At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with the

There are ''n'' ants on a ''n+1'' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are moving eith

WAP TO PRINT NUMBERS FROM 1-50 WHICH ARE DIVIDED BY 7 void main () { int a; clrscr (); a=1; while (a { if (a%7==0) printf ("%d\n",a); a++; } ge

write a program to calculate the cuboid

Rules of Operator Overloading It is a function defined to an operator with new term or meaning. It cannot produce new operator. It cannot modified the meaning of th

drawbacks in assignments in engeenirng


(a) Write a procedure (count-even n) that counts the number of even digits in the decimal representation of the number n. For example, (count-even 234) should return 2. (b) Writ

Ask queCreate an object oriented application with C# that computes the area of a rectangle, and the area and the volume of a cuboid. Based on the inheritance concept, create a bas