ITCS 1214 - 002 Programming Assignment II 

Due: Wednesday Feb 21 by 8am

Homework #2.  Simple Calculator


Planning: You must write pseudocode prior to writing the program code. You will not be given assistance from me without evidence that detailed planning has been done.

 

NOTE: Be sure to adhere to the University’s Policy on Academic Integrity as discussed in class. Programming assignments are to be written individually and submitted programs must be the result of your own efforts. Any suspicion of cheating will be dealt with accordingly. The minimum punishment I will impose for cheating will be a 0% on the programming assignment and a 2-letter grade reduction in the course. Please refer to the following site for additional details as it is your responsibility to be aware: http://www.uncc.edu/policystate/ps-105.html

 

Important: I reserve the right to revisit program grades after completion of semester and final exams. If there is a marked discrepancy in program grades and your answers to related questions on tests, this will be challenged and appropriate grade adjustments given. In addition, appropriate measures will be taken with respect to the University’s policy on Academic Integrity where indicated as a result of the outcome of such a challenge.

 

Purpose: This assignment is designed to demonstrate your understanding of calculating and printing results from user-supplied input.

Task: write a program that will accept two "integer" numbers, a choice of mathematical operator from (+, -, *, /) then prints out the output

Sample Output (generated by running this program compiled on cygwin on windows)

Due: Wed 02/21 8:00am (for 002)

What to turn in: one text file including the entire program.  The file name should be your homework2.cpp.

How to turn in: email to me by due date

Program 3 will be worth 100 points and will be assigned points as follows:

Program compiles                                                                                          30 Points

Documentation                                              

            Header documentation (programmer info)                                             5 Points

Input

            User-prompted data                                                                             20 Points

Output

            Personal Information (printed on monitor)                                              5 Points

            Prompted data requests (clearly labeled)                                               20 Points

            Correctly calculated output (on monitor)                                                20 Points

Total                                                                                                            100 Points

FAQ: