Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS3301 You are to write a calculator program in c++. The calculator will allow the user to perform the following operations Get the area of

CIS3301 You are to write a calculator program in c++. The calculator will allow the user to perform the following operations Get the area of a square Get the exponent of 2 integers Get the quotient of 2 integers Get the real division of 2 integers Get the remainder of 2 integers Multiplication Subtraction Additiorn Convert from decimal to bases 2 16 Get Factorial Find out if an integer is even or odd Get the area of a circle Get the area of a rightlisosceles triangle ALL of these operations MUST be done in separate functions (i.e. NOT in the main function) You must present the options to the user (also in a separate function). One of the options in the menu must be the option to quit. If that is the option, the program must end as soon as it returns to the main function. If that is n must determine if the user has made a legal option (i.e. one on the menu). If they entered an illegal option, you must n ntered an illegal option, you must notify the user that it is an illegal choice, redisplay the menu, and get the user r's new choice. The user cannot leave the menu function until they enter a legal option (The user's choice to quit is a legal option). When a legal choice is entere choice must be returned to the main function When the user's choice is returned to the main function the first thing you must determine is whether the user wants to quit, if so, quit (the main funct tion should return a value, so you can return that value). Otherwise, you must determine how many parameters must be passed to the required function. Some require only 1 integer (conversions, factorial , and the area of a circle or square) the others require 2 (all of the user's choices must be integers) t use any global variables (except for the assignment of the output file name). About half the external You may not use any global variables (except for the assignment of the o functions must return the result of the operations the function). Your program must print out the result presented as a loop. until the user decides to quit.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago