Question
C language only. College tuition and fees increase about 2% to 8% per year in the United States. Write a program that calculates a universitys
C language only.
College tuition and fees increase about 2% to 8% per year in the United States. Write a program that calculates a universitys 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 colleges 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 universitys 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started