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
Snezhnost [94]
3 years ago
12

A local pizza shop is selling a large pizza for $9.99. Given the number of pizzas to order as input, output the subtotal for the

pizzas, and then output the total after applying a sales tax of 6%. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('Subtotal: ${:.2f}'.format(yourValue))
Computers and Technology
1 answer:
storchak [24]3 years ago
8 0

The program requires a sequence control structure

The sequence control structure implies that, the program does not include any conditional statement, and it does not include iterative or repetitive operations.

The complete code in Python, where comments are used to explain each line is as follows:

#This gets input for the number of pizza from the user

count = int(input("Number of Pizza: "))

#This calculates the subtotal (<em>without tax</em>)

Subtotal = count * 9.99

#This calculates the total (<em>with tax</em>)

Total = Subtotal * 1.06

#This prints the subtotal

print('Subtotal: ${:.2f}'.format(Subtotal))

#This prints the total

print('Total: ${:.2f}'.format(Total))

At the end of the program, the total and the subtotal are calculated and printed.

See attachment for sample run

Read more about similar programs at:

brainly.com/question/14839980

You might be interested in
What function does a mobile device’s accelerometer serve?
Masteriza [31]

Answer:

The correct answer is: <u>A.  it determines the orientation of the device</u>

Explanation:

An accelerometer is a sensor in mobile phone devices that is used to detect the orientation of the phone and then change the orientation of the content displayed on the mobile screen to adjust accordingly.

So the correct answer is:

<u>A.  it determines the orientation of the device</u>

4 0
3 years ago
Read 2 more answers
What is a algorithm
Blababa [14]
A process to be followed in calculations or other problem-solving operations.
8 0
3 years ago
match the parts of a project plan listed in Column A to the specific examples given in Column B.Write the letter of your answer
prisoha [69]

Answer:

  1. The name of the project is    C: Reversible Playmat
  2. The objectives are given in B
  3. The Sketch is given as D
  4. The Materials needed is listed in A
  5. The procedure is F
  6. Evaluation is E

Explanation:

You would find that the other matches are relatively easy save for B and F. The difference between the procedure is that the procedure is more detailed about what needs to be done.

Notice that F states exactly, the dimensions that need to be cut while B albeit wordier, gives a description of the end result only.

Cheers.

7 0
3 years ago
our client, Rhonda, has come to you for advice. Rhonda has recently graduated from college and has a good job with a large compa
Radda [10]

Answer:

See explaination for how to manage her personal risk

Explanation:

Personal risks can be described as anything that exposes you to lose of money. It is often connection to financial investments and insurance.

The basic things She can do to manage her personal risks are:

1. Saving:

Savings in much ways drastically reduces the percentage of risks and help you build confidence. Savings can help Rhonda manage her personal risks as savings helps one become financially secure and provide safety in case of emergency.

2. Investing:

After savings comes the major process, which is investment. It is rightly said, savings without invested proper is vain. Investment not only gives you returns or generates more profits but also ensures present and future long term financial security.

3. Reduce expenses:

A common man's expenses can never finish except it is controlled. Reduction in daily expenses can give a hike in savings and increase return on investment. Prompt planning can help cut in expenses.

5 0
3 years ago
Select all True statements! Question 1 options: a) Host A is sending Host B a large file over a TCP connection. Assume Host B ha
VikaD [51]

<u>Solution:</u>

a)   False. Piggyback is used only for efficiency. If there's no data packet to be piggybacked to, then B will just send the acknowledgement packet.

b)  False. It is the size of the receiver's buffer that's never changed. RcvWindow is the part of the receiver's buffer that's changing all the time depending on the processing capability at the receiver's side and the network traffic.

c)  The given statement is True.

 d) False. The sequence number of the subsequent segment depends on the number of 8-byte characters in the current segment.

e)  True. Every TCP segment has a current value of rwnd in the receive window.

f)  False. Next_RTT = alpha * last_estimated_RTT + (1-alpha)*newly_collected_RTT_sample. In this case even though the last sampleRTT which is the newly_collected_RTT_sample is 1sec, the next_RTT still depends on alpha and last_estimated_RTT. Therefore, the next_RTT is not necessarily greater than 1sec.

g) False. The acknowledgement number has nothing to do with the sequence number. The ack. number indicates the next sequence number A is expecting from B.

5 0
4 years ago
Other questions:
  • Is a way of grading web pages by the number of other web pages that link to them?
    10·1 answer
  • In order for an IT security framework to meet information assurance needs, the framework needs to include policies for several a
    13·1 answer
  • Assume that you want to create an array containing ten Die objects. Which of the following code segment accomplishes this correc
    11·1 answer
  • A program is run line by line to determine the source of a logic error. Which best describes the specific tool being used? (A.)c
    5·1 answer
  • अस्स्मन्चचरे ------------------- दृश्यते |
    8·1 answer
  • What does the doppler effect do?
    9·1 answer
  • __________ are hosted on dedicated computers known as 'web servers'.​
    8·2 answers
  • What is the term for a media piece that is ineligible for protection by copyright laws,
    15·1 answer
  • Enumera 3 exemple de operatii de lucru cu elementele grafice 3D. Repede va rog dau coroana
    15·1 answer
  • What is 3x10? PLZZZZZ
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!