1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Butoxors [25]
4 years ago
7

// Program decides tuition based on several criteria: // 1 - 12 credit hours @ $150 per credit hour // 13 - 18 credit hours, fla

t fee $1900 // over 18 hours, $1900 plus $100 per credit hour over 18 // If year in school is 4, there is a 15% discount using System; using static System.Console; class DebugFour3 { static void Main() { int credits; year; string inputString; double tuition; const int LOWCREDITS = 12; const int HIGHCREDITS = 18; const double HOURFEE = 15000; const double DISCOUNT = 0.15; const double FLAT = 1900.00; const double RATE = 100.00; const int SENIORYEAR = 4; WriteLine("How many credits? "); inputString = ReadLine(); credits = Convert.ToInt32(inputString); WriteLine("Year in school? "); inputString = Readline(); year = Convert.ToInt32(inputString); if(credits > LOWCREDITS) tuition = HOURFEE * credits; else if(credits == HIGHCREDITS) tuition = FLAT; else tuition = FLAT + (credits - HIGHCREDITS) * RATE; if(year < SENIORYEAR) tuition = tuition - (tuition * DISCOUNT); WriteLine("For year {0}, with {1} credits", year, credits); WriteLine("Tuition is {0}", tuition.ToString("C")); } }

Engineering
1 answer:
Pavlova-9 [17]4 years ago
5 0

Answer:

using System.IO;

using System;

class Program

{

static void Main()

{

int credits, year;

string inputString;

double tuition;

const int LOWCREDITS = 12;

const int HIGHCREDITS = 18;

const double HOURFEE = 15000;

const double DISCOUNT = 0.15;

const double FLAT = 1900.00;

const double RATE = 100.00;

const int SENIORYEAR = 4;

Console.WriteLine("How many credits? ");

inputString = Console.ReadLine();

credits = Convert.ToInt32(inputString);

Console.WriteLine("Year in school? ");

inputString = Console.ReadLine();

year = Convert.ToInt32(inputString);

if(credits > LOWCREDITS)

tuition = HOURFEE * credits;

else if(credits == HIGHCREDITS)

tuition = FLAT;

else

tuition = FLAT + (credits - HIGHCREDITS) * RATE;

if(year < SENIORYEAR)

tuition = tuition - (tuition * DISCOUNT);

Console.WriteLine("For year {0}, with {1} credits",year, credits);

Console.WriteLine("Tuition is {0}", tuition.ToString("C"));

}

You might be interested in
In your opinion...
ch4aika [34]

Answer:no

TTHANLS FOR FREE POINTS

Explanation:

8 0
3 years ago
Using an "AND" and an "OR", list all information (Equipment Number, Equipment Type, Seat Capacity, Fuel Capacity, and Miles per
Tomtit [17]

Answer:

Explanation :

The given  information to be listed can are Equipment Number, Equipment Type, Seat Capacity, Fuel Capacity, and Miles per Gallon.

Check the attached document for the solution.

5 0
3 years ago
Technician A ay that acid rain doe the mot harm when it firt fall on a finih. Technician B ay that hard water potting i uually j
Tamiku [17]

Technician B is right say that hard water potting i usually jut a Surface problem that can be wahed off.

What do you mean by Hard water?

The amount of dissolved calcium and magnesium in the water determines its hardness. Calcium and magnesium are the main dissolved minerals in hard water. The last time you washed your hands, you might have actually felt the effects of hard water.

What do you mean by acid rain?

Any type of precipitation that contains acidic elements, such as sulfuric or nitric acid, that falls to the ground from the atmosphere in wet or dry forms is referred to as acid rain, also known as acid deposition. Rain, snow, fog, hail, and even acidic dust can fall under this category.

Some plants are sensitive to excessive moisture around their root zone, so it may be necessary to increase drainage when growing plants in pots. Additionally, standing water at the bottom of the pot can cause root rot.

Many university agriculture extension agencies have thoroughly debunked the old garden myth that adding rocks to the bottom of a pot will increase drainage.

Learn more about hard water click here:

brainly.com/question/28178305

#SPJ4

6 0
2 years ago
Given the following access-control list: access-list 90 deny 10.168.7.0 0.0.0.255 access-list 90 permit host 10.168.7.10 access-
Yuri [45]

Answer:

D. Both hosts 10.168.7.10 and 10.168.7.11 will be permitted

Explanation:

access-list 90

deny 10.168.7.0 0.0.0.255

permit 10.168.7.10

permit 10.168.7.11

permit 10.168.7.12

deny any

7 0
3 years ago
The oil system is:
kirill [66]

Answer:

From the main bearings, the oil passes through feed-holes into drilled passages in the crankshaft and on to the big-end bearings of the connecting rod.

3 0
2 years ago
Other questions:
  • Select the material used to clean a prototype board before soldering.
    5·1 answer
  • In engineering, economic cost is a decision-making tangible factor. Group of answer choices True False
    12·2 answers
  • Classify the terms as related to a thermal system or mechanical system.
    8·1 answer
  • What are the three elementary parts of a vibrating system?
    14·1 answer
  • What considerations are included in the Preliminary Floodproofing/Retrofitting Preference Matrix?
    7·1 answer
  • Rosbel or Janette lol baakkaaa
    11·2 answers
  • What do you think the top TWO game elements are that directly contribute to player immersion?
    15·1 answer
  • Why the power factor is Low in no load test in induction motor ?​
    13·1 answer
  • In surveying , supposing we can not pull the tape because it is passing through a shallow river. What will i do to obtain an acc
    11·1 answer
  • What is the difference between absorbed wavelengths and reflected wavelengths?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!