To start of on the right foot with your boss by showing him/her that you can be professional, but not be intimidating. Hope this helped.
Answer:
if(revenue.cents - expenses.cents < 0){
profit.dollars = revenue.dollars - expenses.dollars - 1;
profit.cents = 1 - revenue.cents - expenses.cents;
}
else{
profit.dollars = revenue.dollars - expenses.dollars;
profit.cents = revenue.cents - expenses.cents;
}
Explanation:
We know that profit is given as: revenue - expenses from the question.
From the given expression above;
if(revenue.cents - expenses.cents < 0)
then profit.dollar will be revenue.dollars - expenses.dollars - 1; the 1 is to be carry over to the cent part. And the profit.cent will be 1 - revenue.cents - expenses.cents;
else the profit.dollars and the profit.cent is computed directly without needing to carry over:
profit.dollars = revenue.dollars - expenses.dollars;
profit.cents = revenue.cents - expenses.cents;
Answer:
people are so confusing nowadays... Mr. Kopin told me to get him a coffee. I'm not his servant!
Explanation: QWERTY Q=P A=L Z=M and the others are what is to the left of them.
Answer:
The answer would be A: Random
Explanation:
The random() function returns a generated random number (a pseudorandom number)