Write an expression for the number of single dollars that


Python

1. Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is paid for with a minimum amount of change and just single dollars, write an expression for the number of single dollars that would have to be paid. (I tried price/100, and it is NOT the answer)

2.Write some code that reads a value representing a name into the variable name then prints the message "Greetings, NAME!!!" on a line by itself where NAME is replaced the value that was read into name.

For example, if your code read in "Hassan" it would print out "Greetings, Hassan!!!" on a line by itself.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Write an expression for the number of single dollars that
Reference No:- TGS02906248

Now Priced at $15 (50% Discount)

Recommended (96%)

Rated (4.8/5)