Answer:
- They write step by step instructions for a computer to follow.
- They create a logic problem that the computer program can solve.
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:
___I__22. paper
___I__23. glass
___C__24. iron
___I__25. plastic
___C__26. gold
__C___27. copper
___I__28. wood
___I__29. Rubber
___C__30. Aluminum
Materials which do not allow current to flow easily are called insulators.
Materials which allows current to flow easily are called Conductors.
Answer:.......
void clear(int *array, int length){
if (length == 0)return;
array[0] = 0;
clear(array + 1, length-1);
}
Explanation:
The void function accepts an integer array.
Answer:
machine language uses binary code and assembly language uses mnemonic codes to write a program.
Explanation:
In a nutshell, machine language uses binary code, which is almost impossible for humans to decipher, whereas assembly language uses mnemonic codes to write a program. Mnemonic codes make it simpler for humans to understand or remember something, and so make the language a bit easier for humans to use than machine code.