Answer:
coupons = int(input("Enter the number of coupons you win: "))
candy_bars = int(coupons / 10)
gumballs = coupons % 10
print("Candy bars: " + str(candy_bars) + ", Gumballs: " + str(gumballs))
Explanation:
*The code is in Python.
Ask the user to enter the number of coupons
Calculate the number of candy bars, divide the coupons by 10 and typecst the result to int
Calculate the number of gumballs, use the modulo to find the remainder
Print the values
Answer:
When images or graphics excessively occupy most of the space on the page.
<u>Explanation:</u>
For example, if you observed the attached image you'll see a bad example in which the image excessively occupies most of the space on the page making the written text difficult to read.
Next, a good example of proper editing is found in the next image, which shows the written text properly aligned with the text.
Answer:
This is using c++ syntax, you might need to make slight adjustment for other languages.
First activity:
string firstSnack = "chips";
string secondSnack = "pizza";
string thirdSnack = "apples";
string bestSnack = firstSnack;
bestSnack = secondSnack;
Second activity:
double apple = 0.5;
double banana = 0.75;
double orange = 1.43;
double total = apple + banana + orange;
Explanation:
When first declaring a variable, you want to specify the type (such as int, double, string, bool, etc.) and then the name. You can set the variable value in the declaration, or you can set it to a value later in the program by not having the equals sign and whatever comes next.
Answer:
Try and do number = 7
If that does not work then I dont know what to tell you.
Explanation: