1. Engineering
2. Computer Science
3. c language only college tuition and fees increase about 2...

# Question: c language only college tuition and fees increase about 2...

###### Question details

C language only.

College tuition and fees increase about 2% to 8% per year in the United States. Write a program that calculates a university’s tuition and fees per credit hour for each year for the next 20 years, using the simplifying assumption that the inflation rate will stay constant – 5% per year. The output should display the anticipated tuition and fees per credit hour for the next 20 years. The program asks the user to enter the college’s tuition and fees for 2018.

1) Use a for loop.
2) Format the output to print the values to 2 decimal place.

input/output:
Enter the university’s tuition and fees per credit hour for 2018 (\$): 382.73
The anticipated tuition for the next 20 years:
2019: 401.87
2020: 421.96
2021: 443.06

2038: 1015.50

____________________________________________________________________________________________________________________

You are creating a new account on a website and need to come up with a username. The website requires that a new username meets the following requirement:
a) There is a 5-15 symbol limit for the usernames.
b) It can include alphabetic letters upper or lower case, digit, period, or underscore, but no space or any other punctuation.

1) Use getchar() to read in the input. The user input ends with the user pressing the enter key (a new line character).

Write a program that checks the username for the website.
Example Input/Output:
Enter the username: sam_NY.88
Output: valid
Enter the username: sam&NY!
Output: invalid
Enter the username: sam
Output: invalid
Enter the username: sam_sacramento_California
Output: invalid