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
Triss [41]
4 years ago
6

Tiffany is writing a program to help manage a bake sale. She writes the following code which prompts the user to enter the total

number of items a person is buying and then a loop repeatedly prompts for the cost of each item. She wrote the code but there is a problem: it runs in an infinite loop. How can Tiffany change her code so it doesn't loop forever? 0 var numItems = promptNum("How many items?"); 1 var total = 0;
Computers and Technology
1 answer:
AlekseyPX4 years ago
5 0

Answer:

Add after line 3:

numItems = numItems - 1;

Explanation:

The complete code of Tiffany should be provided in question is:

line 0 -- var numItems = promptNum("How many items?");

line 1-- var total = 0;

line 2-- while (numItems > 0){

line 3-- total = total + promptNum("Enter next item price");

line4-- }

line 5-- console.log("The total is" + total);

You might be interested in
Saas provides services to an organization that requires the standard business process infrastructure such a CRM
Rzqust [24]

Answer: True

Explanation:

 Yes, the given statement is true that the SaaS (Software as a service) provide the different types of services to the organization which basically require the infrastructure like CRM (Customer relationship management) and it is the standard business processing in the organization.

The software as a service is the fundamental technology of the business which basically include the CRM, e-mails and the various types of sale and financial management.

5 0
3 years ago
What are the two basic steps in communication
Andrei [34K]

The sender forms an idea.The sender encodes the idea in a message.

4 0
4 years ago
Put the steps you would use to insert and label an endnote in order.
Sholpan [36]

Answer:

2nd- step 1, 3rd- step 2, 1st- step 3, 4th- step 4

Explanation:

1. locate the reference tab

2. click the insert endnote option

3. type your endnote label

4. type the text you want the endnote to follow

3 0
3 years ago
Why do wireless networks experience such a great reduction in actual throughput compared with their respective theoretical throu
jasenka [17]

Wireless networks experience such a great reduction in actual throughput compared with their respective theoretical throughputs, because wireless networks experience a high number of collisions and require greater overhead on each transmission. The throughput varies significantly from the theoretical maximum speeds due to:

distance from the access point, physical obstructions, such as walls, signal-blocking or reflecting materials which affect signal propagation and reduce speed , interference - other wireless networks and devices in the same frequency in the same area affect performance and shared bandwidth - available bandwidth is shared between all users on the same wireless network.


5 0
3 years ago
How do advertisers use data to know which products would most likely appeal to you
olga2289 [7]

Answer:

They track ur FB and Instagram posts and "likes." Amazon, Target and other online retailers are able to process orders so quickly

4 0
3 years ago
Other questions:
  • Branching is so called because <br>​
    5·2 answers
  • From the ages of 18 to 24, individuals born from 1980 to 1984 held an average of 6.2 jobs—which is slightly higher than the numb
    10·1 answer
  • How are devices connected to each other via Bluetooth? Choose two answers.
    11·1 answer
  • How long did it take Linkedln to reach 1 million users?
    5·2 answers
  • Develop a Python module that will prompt the user for a target sum that is greater than 0 and less than 1 for the following Geom
    13·1 answer
  • To distribute one or more presentations for use on another computer, which of the following features should you use?
    13·1 answer
  • Select the first ICMP Echo Request message sent by your computer, and expand the Internet Protocol part of the packet in the pac
    10·1 answer
  • Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline
    10·1 answer
  • Please help it’s timed
    5·1 answer
  • write a program that computes an integer's checksum. to compute the checksum, break the integer into its constituent
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!