Answer:
14
Explanation: The reason why is because adding a negative is pretty much subtracting by 2. 9-2=7. Then multiply 7 by 2 like add 7 to 7 and you get 14.
Answer:
- Print the values days of bottles.
- Display total number of bottles collecting.
- Display the payout for this transaction.
Explanation:
Program:-
DEPOSIT_PER_BOTTLE = 0.10
another = "Y"
while another=="Y":
print("Input Values 7 days of bottles:")
total = 0
for I in range(7):
collected_bottles = int(input())
total += collected_bottles
payout = total*DEPOSIT_PER_BOTTLE
print("Total number of bottles collected: {:,}".format(total))
print("Payout for this transaction $%.2f"%payout)
another = input("Do you want to complete another transaction? ").upper()
Answer:
The program to this question can be given as:
Program:
#include<stdio.h>//include header file
int main() //defining main method
{
printf("Hello..! and please vote the answer."); //print value.
return 0;
}
Output:
Hello..! and please vote the answer.
Explanation:
In the given question some information is missing that is the message to be printed, In this code assume some message to be displayed, and the description to the above code as follows:
- In the above code firstly header file is included for using a basic function like print method, input method, etc.
- In the next line main method is defined, inside the main method a print function is used in this function a message is passed with a double-quote ("'). When the code will execute it will print the message that is given in the output section.
Answer:
Following is given the solution to the question.
I hope it will make the idea clear.
Explanation: