CPPForSchool.com: Flow of Control Set 1: Assignment 4

4. Write a program to determine whether the seller has made profit or incurred loss. Also determine how much profit he made or loss he incurred. Cost price and selling price of an item is input by the user.

This program was not too difficult.  It is amazing how prior exercises truly build upon itself for future assignments.  Presumably, this was due to the course design itself, but nevertheless.  Here is my source code and test outputs.  Everything is working correctly.









Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 9

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8