1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
aliina [53]
3 years ago
10

PYTHON1.)Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Write a stateme

nt that prints the value of price in the form "X dollars and Y cents" on a line by itself. So, if the value of price was 4321, your code would print "43 dollars and 21 cents". If the value was 501 it would print "5 dollars and 1 cents". If the value was 99 your code would print "0 dollars and 99 cents".2.)Write a statement that reads a floating point value from standard input into temperature.3.)Write a statement that reads a word from standard input into firstWord.
Computers and Technology
1 answer:
hammer [34]3 years ago
3 0

Answer:

#part 1

#read the amount

amount=int(input("enter the amount:"))

#find the dollars

doll=int(amount/100)

// find the cents

cent=amount%100

#print output

print("{} dollars and {} cents.".format(doll,cent))

#part 2

#read a floating point

temperature=float(input("enter the temperature:"))

#part 3

#read a word

firstWord=input("enter a word:")

Explanation:

In part 1, read amount and the find the dollars with the help of "/" operator. Then find the cents with "%" operator and print both.In part 2, read a point and cast it to float then assign it to variable "temperature".In part 3,Read a word and assign it to variable "firstWord".

Output:

enter the amount:4321

43 dollars and 21 cents.

enter the temperature:12.5

enter a word:hello

You might be interested in
Select the correct answer.
zepelin [54]

Answer:

A.

Explanation:

My best guess is this answer. Tell me if I got it wrong, but it sounds right to me.

6 0
3 years ago
Write a character literal representing the (upper case) letter<br> a.
Vlad1618 [11]
The answer would just be 'A'.  A literal is an element that directly represents a value.  In this case the element that directly represents the value false is simply the character 'A'.  When writing the answer the character should be in single quotes as that defines the value as a single character as opposed to a string or another data type.
5 0
4 years ago
12. ______ is considered to be the first video game mascot.
Tatiana [17]
D pac man im hope im right
7 0
3 years ago
____ devices are high-performance storage systems that are connected individually to a network to provide storage for the comput
k0ka [10]

Answer:

The correct answer to the following question will be Option A "Network Attached Storage (NAS)".

Explanation:

  • Network-connected storage is indeed a document-level data storage server based to a communications network providing information accessibility to a heterogeneous collection of users.
  • The NAS is experienced in supporting files by hardware, code or modification.

The other three option are not able to perform such type of tasks. Therefore, Option A is the right answer.

5 0
4 years ago
A user reports that he can't connect to a specific website. you go to the user's computer and reproduce the problem. what should
Inessa05 [86]
I would check that DNS is working, and then check that the returned address accepts connections properly.
3 0
3 years ago
Other questions:
  • Simon wants to use an invoice template created by Office.com. The first step after selecting the File tab is to select
    14·1 answer
  • Technician A says that as volume decreases, pressure increases. Technician B says that as temperature increases, pressure decrea
    5·1 answer
  • Which signal types are represented by a continuous waveform?
    10·1 answer
  • Which devices are managed through device management?
    5·1 answer
  • While these two approaches have similarities in terms of the topics they address, ________ will cover broad IT management topics
    7·1 answer
  • What is 4x+2x(-3-3) thanku
    11·2 answers
  • Hey does anyone know how to fix a computer that goes on and off. It is a Asus chromebook and putting it into recovery mode didn'
    5·2 answers
  • You can filter the data based on certain specific conditions in Excel 2013 true or false​
    8·1 answer
  • Which describes a set amount of pay received by a worker over the course of a year?
    6·2 answers
  • Which window would show you bindings for local area connection 2?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!