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!
External computer components connect to the motherboard through a series of ports on the computer case. Many components have their own dedicated port connections, such as those to connect audio equipment or the computer monitor. Others may share a single type of connector, such as the USB, that connects everything from keyboards and mice to game pads and external hard drives. there
Answer:
Total amount of calories = 325
Explanation:
Given:
Amount of carbohydrate = 58 gram
Amount of protein = 12 gram
Amount of fat = 5 gram
Find:
Total amount of calories
Computation:
1 gram protein = 4 calories
1 gram carbohydrate = 4 calories
1 gram fat = 9 calories
Total amount of calories = (58)(4) + (12)(4) + (5)(9)
Total amount of calories = 232 +48 + 45
Total amount of calories = 325