Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

ISBN: 0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

Write an article on "Young Goodman Brown".

Answered: 1 week ago

Question

2. Define identity.

Answered: 1 week ago

Question

Do you currently have a team agreement?

Answered: 1 week ago

Question

c. How is trust demonstrated?

Answered: 1 week ago

Question

c. Will leaders rotate periodically?

Answered: 1 week ago