The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 2 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
let me know when you are done I will you pay you $10 it will work right?
Â
You are assigned to write a program that calculates tuition for students. The program will ask
user to enter number of credit hours a student enrolled (use loop to validate the input>0) and
enter if the student is resident or non-resident. Then the program will calculate the tuition based
on CUNY tuition chart, and print out the results. After complete one student's tuition, the
program should as user to choose to continue for next student or not. If user chooses to continue,
the program will repeat the process for next student; if user chooses not to, the program will end.
Â
Requirements:
• Your program should be well documented: brief description of program and comments at
major steps.
·        Your program must have the following methods:
o  booleanisValid( int credit) – return true if the credit is greater than 0, otherwise return fasle
o  double instate_tuition( in credit) – will return tuition based on the number of credit for in state students
o  double outstate_tuition( int credit) – return tuition based on number of credit for out of state students
Â
• Check CUNY website to find out tuition policy
http://www.citytech.cuny.edu/admissions/generalinfo/tuition.shtml
You may only consider tution based on number of credit and resident status, ignore other fees.
Â
• Test your program with different inputs
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly