if (condition)
{
statement(s)
}
else if (condition)
{
statement(s)
}
else if (condition)
{
statement(s)
}
...
else
{
statement(s)
}
There are an infinite number of possibilities. Here is one.
if (condition)
{
if (condition)
{
statement(s)
}
else (condition)
{
statement(s)
}
}
else
{
statement(s)
}
Design a program to calculate a Montana State student's tuition fee. The student can be an undergraduate or a graduate, can be taking 1-3 credits, and can be either resident or non-resident. Here is the relevant tuition table.