To convert the inputs to dollars and cents, we make use of a combination of multiplication and addition.
The program written in Python where comments are used to explain each line is as follows:
<em />
<em>#This gets input for the number of quarters</em>
quarters = int(input("Quarters: "))
<em>#This gets input for the number of dimes</em>
dimes = int(input("Dimes: "))
<em>#This gets input for the number of nickels</em>
nickels= int(input("Nickels: "))
<em>#This gets input for the number of pennies</em>
pennies= int(input("Pennies: "))
<em>#This converts the amount to dollars and cents</em>
dollars = quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01
<em>#This prints the amount to 2 decimal places</em>
print("Amount ${:.2f}".format(dollars))
Read more about Python programs at:
brainly.com/question/22841107
Your answer would be propaganda. sorry if i’m wrong.
<span>The output voltage of a typical size "D" NiCad cell would be 1.2 volts.</span>
Answer:
USE MyGuitarShop ;
CREATE ROLE OrderEntry ;
GRANT INSERT ON Orders ,OrderItems TO OrderEntry ;
GRANT UPDATE ON Orders ,OrderItems TO OrderEntry ;
GRANT SELECT ON Orders ,OrderItems TO ALL;
Explanation:
USE MyGuitarShop ;
This statement is used to make MyGuitarShop as the current database
CREATE ROLE OrderEntry ;
This statement creates new role called "OrderEntry".Roles are useful in database to grant permissions for users on particular objects of the database.
GRANT INSERT ON Orders ,OrderItems TO OrderEntry ;
GRANT UPDATE ON Orders ,OrderItems TO OrderEntry ;
above two GRANT statements are used to grant Insert,Update permissions to the Role "OrderEntry " for the tables Orders ,OrderItems.All the users of Role "OrderEntry" are able to grant Insert,Update on the tables Orders ,OrderItems.
GRANT SELECT ON Orders ,OrderItems TO ALL;
above GRANT statement is used to give select permission on specified tables to all users.