Answer:
Explanation: If and else statements are one of the most important parts of programming.
1. You add an if you do something if a condition is met. For example, if number of chocolates equals zero( a condition), and inside you can do something like buy more chocolates. And else statement happens if the if condition isn't met and you want to the code to do something else. You don't need this if you don't want anything to happen if the if condition isn't true.
2. This might be used in a number guessing game. Let's say you have to guess a number, if its correct the computer should correct but if you get it wrong it should display wrong. You can write if the number the user writes in equal to the number you are supposed to guess say correct. Else say wrong
Hope this helps. Please mark as brainliest! Thanks!
The Microsoft project software is designed in assisting the project manager in formulating plans, distributing resources to certain tasks, progress monitoring, budget management and analysis of workloads.
I hope I was able to help you. Thank you for posting your question here at Brainly.
Just try to answer some questions as well, then you can keep a nice balance.
ps. Only answer the questions you know.
Answer:
i). Signed magnitude
Five bit representation = 11111
For positive 5 bit representation = 01111 = +15
For negative 5 bit representation = 11111 = -15
ii). One's complement
For positive 5 bit representation = 01111 =+15
For negative 5 bit representation = 10000 = -15
iii). Two's compliment
For positive 5 bit representation = 01111 = -15
For negative 5 bit representation = 10001 = +15
9 is the correct answer. 4*2=8 loops are executed, moving the count from 1 to 9.