Purchase Solution

Write a program that asks the user for two integers and a character, 'A', 'S', or 'M'.

Not what you're looking for?

Ask Custom Question

Write a program that asks the user for two integers and a character, 'A', 'S', or 'M'. Call one of three functions that adds, substracts, or multiplies the user's integers, based on the character input.

Purchase this Solution

Solution Summary

Write a program that asks the user for two integers and a character, 'A', 'S', or 'M'.

Solution Preview

Please try the following program. The program and the executable file are also included.

#include<iostream.h>

void main()
{
int num1;
int num2;
char c;
int result=0;

cout << " Please enter ...

Purchase this Solution


Free BrainMass Quizzes
C# variables and classes

This quiz contains questions about C# classes and variables.

Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

This quiz tests a student's knowledge about C++ operators.