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
(true or false) One of the difficult things about working in game design is that while there are many different roles, most of t
patriot [66]
Tbh I think it’s False because most of them don’t match
8 0
3 years ago
Read 2 more answers
Using the employment websites, search for part-time jobs that relate to the career fields you are interested in pursuing or to y
arsen [322]

In order to start a part time job first we have to do some research in particular criteria they are Research your degree and occupational information and industry information.

Explanation:

There are many part- time jobs, they are web developer, sales representative, interpreter and translator and content writer.

There are various websites for this kind of jobs. For example in Quicker, Monster and indeed .com are some of the websites.

The we developer job is creating website for the customer based on the requirements. Example school management, library management.

Then comes data entry job it is a simple job that is to enter the captcha and correcting errors in files and copy pasting job.

Content writer is a job in which the different types of questions are answered for the U.S based companies.

7 0
3 years ago
Read 2 more answers
Which functions are available in a Word table? Check all that apply.
dexar [7]
All of them are available
3 0
3 years ago
If you’re torn between more than one option while making a decision, which of the following would most likely be the best strate
Vladimir [108]
<span>If you’re torn between more than one option while making a decision, which of the following would most likely be the best strategy to help you decide you should get rid of the bad ones and you will be left with good ones 

</span>
3 0
3 years ago
Streaming media known as _____ is stored on the provider's server, which allows you to play the media multiple times. Graphics t
Marysya12 [62]

Answer:

On - demand

Transition

Codecs

Media Player

Video compression

Explanation:

The image for the question is attached.

Another name for streaming of media is known as on - demand service. The resources are only available based on request.

Transition tells a viewer when a scene ends and another one begins.

Codecs has a lot of standard and MPEG is one of the popular standard. Some include Dolby Digital (AC3, ATSC A/52, ETSI TS 102 366).

Media Player is the type of software needed to watch a video on a computer.

Video Compression is the technology that is used to compress and depress video files.

7 0
3 years ago
Other questions:
  • Fiber deployment architectures include all of the following except:
    7·2 answers
  • Which of the three is not a popular cloud suite or online office suite?
    9·1 answer
  • An example of a ______ in the United States are computer hackers, whose members engage in actions that subvert authority, disrup
    6·1 answer
  • A (an) block can arise from set ways of thinking.
    15·1 answer
  • Which devices are managed through device management? Device management is the process of managing----(blank)-----devices.
    15·1 answer
  • How do I retrieve the number from an old home phone? Someone called my home phone (it is not a cellular phone) and they did not
    7·1 answer
  • Why was CDR the most developed country in nepal. Highlight any six reasons​
    9·1 answer
  • If anyone want to talk come here actual question who likes anime and what kind do u watch
    7·2 answers
  • dion training just installed a new webserver within a screened subnet. you have been asked to open up the port for secure web br
    12·1 answer
  • Write the necessary preprocessor directive to enable the use of the stream manipulators like setw and setprecision Additional No
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!