Not sure what quizScore1-5 is, but here it is. Also, I'm not entirely sure what language you're working with here, but null can't be returned as an integer. If it were a string, for example, it'd be possible as string is an object reference type.
public int getData(int dataNumber)
{
if (dataNumber == 1)
return quizScore1;
else if (dataNumber == 2)
return quizScore2;
else if (dataNumber == 3)
return quizScore3;
else if (dataNumber == 4)
return quizScore4;
else if (dataNumber == 5)
return quizScore5;
else
return 0;
}
Answer: genis view headset view
Explanation:
Maybe 7411 or someones birthday in the family
Let's say for example that the business is taking in $2000 of revenue. That is the amount that the business collected for it's services - like for fixing the computer. What if though it costs $500 for the equipment (that's an expense). Now they only made $1500. Now the customer complains and says that the computer isn't fixed properly so the company sends out a techie for 2 additional hours. They need to pay their employee (another expense). Now the $1500 is down to $1400. They would have utilities to keep their lights on and insurance and many other expenses.
Your profit looks like this:
Profit = Revenue - Expenses