Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ programing Project -CIS3301 You are to write a 'calculator' program. The calculator will allow the user to perform the following operations Get the area

image text in transcribedc++ programing

Project -CIS3301 You are to write a 'calculator' program. The calculator will allow the user to perform the following operations Get the area of a square addition Get the exponent of 2 integers Convert from decimal to bases 2 - 16 Get the quotient of 2 integers Get Factorial Get the real division of 2 integers Find out if an integer is even or odd Get the remainder of 2 integers Get the area of a circle Multiplication Get the area of a right\isosceles triangle Subtraction 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 not the option, you must determine if the user has made a legal option (i.e. one on the menu). If they entered an illegal option, you must notify the user that it is an illegal choice, redisplay the menu, and get the user'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 entered, the 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 function 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). You may not use any global variables (except for the assignment of the output file name). About half the external functions must return the result of the operations (where they will be printed), the remaining operations can be printed in the function). Your program must print out the result to the console and to an external file. Your main function must be presented as a loop. Once it completes the operation, it must again present the menu and perform all of the operations, until the user decides to quit. If I find that there are errors duplicated by multiple individuals, I must assume that the authors of the code shared their code with others. In this case I will submit the findings to the Dean of student affairs who will decide their fates. Failure to abide by any of the conditions will result in relatively severe deductions from the grades of those involved. If you decide not to come to any of the classes during the project, I will assume you don't care about understanding the project and will deduct points (i.e. I will take attendance). I will give help to anyone who needs it during our regularly scheduled class time (we will spend a few weeks on this project. I will also be available after class). The final test, which you will take on the computer in class, we will have will be a shortened replication of this project. If you decide you don't need to fully understand this project, and decide to copy your friend's code, what do you suppose your grade on that test will be? The final test will have the greatest weighting in your grade) If there is some problem I did not point to in the above instructions, I will rewrite the instructions and email it to you

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Describe one classification of marketing research.

Answered: 1 week ago