Computer Science 235 C Programming
 

Programming Project #1 – Faux Fone


 


For this project, we are going to start the code for our faux (which means fake) cell phone. Two features must be created for our phone:
 

  1. A splash screen - When a phone first turns on a screen is displayed with the name of the provider. Ours will be Faux Fone, or if you would like, make up your own name. Keep it simple for this first project, we can always add to it later.
  2. A rate calculator - Under the splash screen, display the current usage of prime time and off peak minutes and the cost if the monthly allocation(s) have been exceeded.


Just to make it interesting, I want you to write TWO versions of this project, a C and a C++ version. It will essentially be the same program, but the C version will use stdio.h, printf and scanf. The C++ program will use iostream.h, cout and cin.  We want to compare the size (memory usage) of each program. As the code for the phone is developed, we will have to budget the space allocated for features.

Without question, I would do part 1 first. Use characters only, no graphics, build large characters composed of smaller text characters. You may wish to review project X.X from chapter X in the book.

Once you have the splash screen, place part 2 on one line of text immediatly below the splash screen. Do not exceed one line, cell phones have small screens and you must fit all information on one line. i.e.   prime: 49 m.  off-peak: 231 m. cost: 19.50
For our cell phone 'plan' the first 30 minutes primetime and 200 minutes off peak are included with the monthly fee, the cost reflects a .39 cent a minute charge for calls that exceed the included minutes.

You will need a menu (can you squeeze it onto the same line as the minutes?) for entering fake phone calls. A call will essentially just ask the user to enter the type and length of the call, then will refresh the splash screen and information line.

Please use functions and/or parameters to implement all cell phone features.
 

Good Luck