Write a program that accepts two real numbers

Assignment Help C/C++ Programming
Reference no: EM13681778

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.

Reference no: EM13681778

Questions Cloud

What is the value of the electric field among the plates : A man of 50.0 kg mass is in equilibrium among two parallel plates. The man is charged up to + 130. mC of charge. The plates are 1.75 meters apart. What is the value of the electric field among the plates? What is the potential difference among the pl..
Analyse the international trade strategies : Analyse the international trade strategies of Boeing and Airbus by developing the following to be included in your Final Project paper.
Compute the potential difference across each capacitor : A 0.50-F and a 1.4-F capacitor (C1 and C2, respectively) are connected in series to a 16-Vbattery. Calculate the charge on each capacitor. Compute the potential difference across each capacitor. Compute the charge on each capacitor assuming the two c..
Kinetic energy of the first block before the collision : A 3.5kg block moving at 2.0 m/s toward the west on a frictionless surface has an elastic head-on collision with a second 1.1kg block traveling east at 3.0 m/s. Decide the kinetic energy of the first block after the collision. Decide the kinetic energ..
Write a program that accepts two real numbers : 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
Length of the spring when the charges are in equilibrium : Two spherical point charges each carrying a charge of 40 mC is attached to the two ends of a spring of length 20 cm. If its spring constant is 120 Nm-1, what is the length of the spring when the charges are in equilibrium?
How much energy is required to place four positive charges : How much energy is required to place four positive charges, each of magnitude +5.0 mc, at the vertices of a square of side 2.5 cm? Choose one way of assembling the charges and com1pute the potential at each empty vertex as this set of charges is asse..
What is the individual capacitance of each capacitor : Two capacitors connected in parallel produce an equivalent capacitance of 45.0F however when connected in series the equivalent capacitance is only 4.2F. What is the individual capacitance of each capacitor?
What will the speed of the car be if there is no friction : A 1210 kg car is driving on 60 km/h on an inclined plane. The car is located on the top of the plane. The plane is 655 m long and the angle is 4.50 degrees. What will the speed of the car be if there is no friction?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd