#include<iostream> |
| Please
enter last year's tuition fee: 1233 Please enter this year's tuition fee: 1459 The tuition increases 18.3293%. |
double thisYearFee, lastYearFee, percentage;
You type
doule thisYearFee, lastYearFee, percentage;
(The image is for Visual C++)

#include<iostream> /_____________ these two lines are
included
using namespace std; \
so that the libaries
about input/output
are available to the program
int main() {
<----------------- fill your codes
here
return 0;
}
| Code |
Explanation |
|---|---|
double thisYearFee, lastYearFee,
percentage; |
declare 3 decimal numbers |
cout << "Please enter last year's
tuition fee: "; |
cout <<"blah blah blah"; outputs blah blah blah on the screen |
cin >> lastYearFee; |
cin >> x; asks the user to input a
value. The value will be stored in a variable named x. |