Answer:
The correct loop is as follows:
for year in range(starting_tuitionYear, ending_tuitionYear, increment):
tuition = startingTuition + rate * startingTuition
startingTuition = tuition
print('Tuition for the year of ' + str(year)+ ' is ' + str(tuition));
Explanation:
Required
The correction to the attached program
Some variables are not needed; so, I've removed the redundant variables.
The main error in the program is in the loop;
After the tuition for each year has been calculated, the startTuition of the next year must be set to the current tuition
<em>See attachment for complete program</em>
Answer:
a. Convenience
b. Random
c. Stratified
d. Systematic
Explanation:
Types of sampling:
The selection of sample is arbitrary and each member has an equal chance of selection.
This selection does not take probability of selection into account rather focuses on the convenience and proximity of the member for selection.
An ordered system is decided to choose the members for this sample.
This sampling plan divided the population into groups, called clusters. A cluster is then randomly selected from the selected population.
The members of the population are divided into groups, called strata. A random sample is drawn from each strata.