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:
Internet
Explanation:
The "Cloud" is an Online service this means it works on the Internet and without the Internet you can't have access to it.
The answer should be: True
Answer:
Router
Explanation:
Router -
It is a networking device which helps to forward the data packets between the networks of the computer .
It acts as a traffic director in the internet .
The data which is sent via internet is made into data packets . And then the packet is forwarded from one router to another , until the packed reaches its destination .
The function given in the question is about router .
did you have a stroke bestie?