Question

In: Computer Science

For this program you will be looking at future tuition at your university. In 2020, the...

For this program you will be looking at future tuition at your university. In 2020, the tuition for a full time student is $6,549 per semester, the tuition for a part time student is $3,325. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write a program using if-else and a loop. Ask the user if they are a full time or part time student, then display the projected semester tuition for the next 7 years. You should display the actual year (2021, 2022, through 2027) and the tuition amount per semester for that year.

Solutions

Expert Solution

Here is the c/c++ code, if the code is required in any other language (java, python) put it in the comments:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//Main funtion
int main()
{
    char choice;
    //ask the user
    printf("Are you a full time or part time student?(f/p): ");
    //input the choice
    scanf("%c", &choice);
    //if it is full time make the fees as 6549
    if (choice == 'f')
    {
        printf("The fess thorugh the years is\n");
        float fees = 6549;
        int i, year = 2020;
        for (i = 0; i < 7; i++)
        {
            //print the year(also increment it) and the fees
            printf("Year %d: %f\n", year++, fees);
            fees += (3.5 * fees / 100);
        }
    }
    else if (choice == 'p')
    {
        printf("The fess thorugh the years is\n");
        float fees = 3325;
        int i, year = 2020;
        for (i = 0; i < 7; i++)
        {
            printf("Year %d: %f\n", year++, fees);
            fees += (3.5 * fees / 100);
        }
    }
    else
        printf("Wrong choice entered\n");
    return 0;
}

Here is the output of the above code:


Related Solutions

For this program you will be looking at future tuition at your university. In 2020, the...
For this program you will be looking at future tuition at your university. In 2020, the tuition for a full time student is $6,549 per semester, the tuition for a part time student is $3,325. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write a program using if-else and a loop. Ask the user if they are a full time or part time student, then display the projected semester tuition...
Branching Program write a program to do the following: A university needs to compute the tuition...
Branching Program write a program to do the following: A university needs to compute the tuition of its students. They will ask for the name, the number of units the student is taking, and their residency status. R=resident , N = non- resident. The tuition to be computed as follows: non-resident students pay $100 per unit; resident students pay $50 per unit if they take 12 or units or more and $75 per unit if they take less than 12...
Why are you looking to pursue an MBA or MS program at this point in your...
Why are you looking to pursue an MBA or MS program at this point in your life and what do you see yourself doing professionally upon graduation? What key actions have you taken up to this point to prepare you for this career? 500 words
Looking forward to current and future needs in your own industry or one in which you...
Looking forward to current and future needs in your own industry or one in which you desire to work, describe how the more advanced SQL server integration services (SSIS) data migration software, SQL server analysis services (SSAS) online analytical processing technology, or SQL server reporting services (SSRS) report software could be useful for the industry's current needs as well as to propel growth. Justify your ideas with support from the Topic Materials or relevant industry examples.
You are currently part of a university work experience program. Your job placement is at the...
You are currently part of a university work experience program. Your job placement is at the municipal transit centre. Your supervisor is responsible for the recording and distribution of monthly transit passes to authorized vendors throughout the city. The vendors pay €50 per bus pass and sell them for €55. Your job is to prepare a monthly reconciliation of the transit passes including the quantity sold, the number actually distributed, the unsold passes, and the cash proceeds. You are unable...
Describe your view on the future of the Social Security Program. How do you think this...
Describe your view on the future of the Social Security Program. How do you think this program will look in 20 years? Explain.
You have just graduated from the MBA program of a large university, and one of your...
You have just graduated from the MBA program of a large university, and one of your favorite courses was “Today’s Entrepreneurs.” In fact, you enjoyed it so much you have decided you want to “be your own boss.” While you were in the master’s program, your grandfather died and left you $1 million to do with as you please. You are not an inventor and you do not have a trade skill that you can market; however, you have decided...
You have just graduated from the MBA program of a large university, and one of your...
You have just graduated from the MBA program of a large university, and one of your favorite courses was Today’s Entrepreneurs. In fact, you enjoyed it so much you have decided you want to “be your own boss.” While you were in the master’s program, your grandfather died and left you $1 million to do with as you please. You are not an inventor, and you do not have a trade skill that you can market; however, you have decided...
You have just graduated from the MBA program of a large university, and one of your...
You have just graduated from the MBA program of a large university, and one of your favorite courses was “Today’s Entrepreneurs.” In fact, you enjoyed it so much you have decided you want to “be your own boss.” While you were in the master’s program, your grandfather died and left you $1.5 million to do with as you please. You are not an inventor, and you do not have a trade skill that you can market; however, you have decided...
Looking into the future, describe one future technology and how you believe programming languages will have...
Looking into the future, describe one future technology and how you believe programming languages will have to adapt to make that technology successful
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT