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
AVprozaik [17]
3 years ago
10

Which line of code will only allow a non-decimal point to be stored in a variable? candyCost = float(input("How much is the cand

y?")) candyCost = input("How much is the candy?") candyCost = int(input("How much is the candy?")) candyCost = str(input("How much is the candy?"))
Computers and Technology
2 answers:
Pavel [41]3 years ago
5 0

Answer:

what the first guy said give him brainly

Explanation:

ad-work [718]3 years ago
4 0

Answer:

candyCost = int(input("How much is the candy?"))

Explanation:

candyCost = input("How much is the candy?") → By default, this how you get input and store the value. And it is stored as a string

candyCost = str(input("How much is the candy?")) → This also gives you a string to store

candyCost = float(input("How much is the candy?")) → This gives you a float number, decimal number, to store

candyCost = int(input("How much is the candy?")) → This gives you an integer number, a non-decimal

You might be interested in
When should a writer establish common ground before the bottom-line statement? A. When the details are arranged in order of impo
BabaBlast [244]
In the bottom line statement,the writer can establish a common ground when b. the reader may disagree with the bottom line statement. Hope this is the best answer and would be of big help in this assignment of yours then.
3 0
3 years ago
Read 2 more answers
Two of the major sources used today for obtaining information to create computer maps are satellites and _____________.
nikdorinn [45]
The Global Positioning System or GPS.
7 0
3 years ago
Read 2 more answers
Who is the intended audience of a pseudocode document?
cluponka [151]

Answer and Example:

Pseudocode is an artificial and informal language that helps programmers develop algorithms.

Pseudocode is a "text-based" detail (algorithmic) design tool. The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented.

Pseudocode is understood by the programmers of all types. it enables the programmer to concentrate only on the algorithm part of the code development.

Java would use this.

3 0
3 years ago
A device is sending out data at the rate of 1000 bps. How long does it take to send
vredina [299]

Answer:

0.01 second ; 0.008 seconds; 800 seconds

Explanation:

Given that:

Sending rate = 1000 bps

Rate of 1000 bps means that data is sent at a rate of 1000 bits per second

Hence, to send out 10 bits

1000 bits = 1 second

10 bits = x

1000x = 10

x = 10 / 1000

x = 0.01 second

2.)

A single character 8 - bits

1000 bits = 1 second

8 bits = (8 / 1000) seconds

= 0.008 seconds

3.)

100,000 characters = (8 * 100,000) = 800,000

1000 bits = 1 second

800,000 bits = (800,000 / 1000)

= 800 seconds

4 0
3 years ago
Query " frosty the snowman
julsineya [31]
I don't think that is a query...
5 0
3 years ago
Other questions:
  • Carly wants to be able to look at a document without having to use the horizontal scroll bar located on the bottom of the screen
    7·1 answer
  • Who usually signs a collection letter?
    15·2 answers
  • Netbooks, also called mini notebooks or subnotebooks, are a subgroup of desktops.<br> True<br> False
    12·1 answer
  • To illustrate a point in a Word document with a simple chart, what commands should you select? A. Chart &gt; Chart Type B. Chart
    12·1 answer
  • Which of the following correctly defines a procedure in computer programming? Choose all the apply.
    7·2 answers
  • The Go To feature can be accessed from which of the following dialog boxes?
    10·1 answer
  • True of False - use T or F The Math class can be instantiated.
    15·1 answer
  • What precautions should be taken to make a computer more secure ​
    8·1 answer
  • In this project you will write a set of instructions (algorithm). The two grids below have colored boxes in different
    9·2 answers
  • Question # 9
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!