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:
See Explanation
Explanation:
The question is incomplete as there is no link pointing to the houseType struct of chapter 1.
So, I've answered the question from scratch
See attachment for explanation where I used comments to explain each line.
The program is as follows:
#include <iostream>
using namespace std;
struct houseType{
int firstHouse, secondHouse;
};
int main()
{
houseType hT;
cout << "Enter the price of both house: ";
cin>> hT.firstHouse;
cin>> hT.secondHouse;
if(hT.firstHouse == hT.secondHouse){ cout<<"true"; }
else{ cout<<"false"; }
return 0;
}
Answer: Question 12: Answer is tables
Question 13: Answer is Command + C
Explanation: