COS 1512 ASSIGNMENT 1
Johns Hopkins University
All 1 results
Sort by
-
COS 1512 ASSIGNMENT 1
- Exam (elaborations) • 5 pages • 2021
-
- $3.49
- + learn more
Question 1 
//Calculate tuition fees based on number of new modules 
//and the number of repeat modules 
#include <iostream> 
using namespace std; 
int calcFees (int numberOfNewModules, float nModFee) 
{ 
 return (numberOfNewModules * nModFee); 
} 
int calcFees (int numberOfNewModules, float newModFee, int numberOfRepeatModules, float 
repeatModFee) 
{ 
 return (numberOfNewModules * newModFee + numberOfRepeatModules * repeatModFee); 
} 
int main() 
{ 
 int numberOfRepeatModules, numberOfNe...
Fear of missing out? Then don’t!
Do you wonder why so many students wear nice clothes, have money to spare and enjoy tons of free time? Well, they sell on Stuvia! Imagine your study notes being downloaded a dozen times for $15 each. Every. Single. Day. Discover all about earning on Stuvia