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
777dan777 [17]
3 years ago
11

What is the value of the variable named counter after the code that follows is executed? var percent = 0.54; var isValid = true;

var counter = 1; if ((percent > 0.50) && (isValid == true)) { counter += 2; if (isValid == true) { counter++; } else if (percent >= 0.50) { counter += 3; } } else { counter++; }
Computers and Technology
1 answer:
kondor19780726 [428]3 years ago
5 0

Answer:

The value of the variable counter after executing the given line of code is: 4

Explanation:

The Code snippet checks different values of the variable percent and isValid.

It checks these values at three stages

if ((percent > 0.50) && (isValid == true)) {

     This first check is true so it enters the inner loop

if (isValid == true)

       This condition is also true so at this point counter is assigned counter++

The third condition else if (percent >= 0.50) Also returns true so counter is assigned a new value counter += 3; (Which evaluates to 4). This is the final value of counter since the else condition is false.

You might be interested in
What game is this??????????????????????
miss Akunina [59]

Answer:

rocket league

Explanation: cars and balls

7 0
3 years ago
Tikenya was responsible for creating the PowerPoint presentation for the group project. When it was complete, she wanted to emai
Anna35 [415]

Answer:

They had to unzip or extract the zipped/ compressed presentation to see it.                          

Explanation:

  • Compressed file or a zip file contains a large file or more than one files that are packed or enclosed that large file or several files into a file or a folder.
  • The compressed file or folder takes less space than the actual large file or set of files.
  • Just as in this scenario the presentation file was larger than the size of what an email file should be. So Tikenya had to compress the file in order to email it to other members.
  • The other members can open the PowerPoint presentation by following any of the below mentioned methods:
  • In Windows to open a compressed file, right click on that file and select Extract All option.
  • File can also be seen by opening that file or folder and dragging that file or folder from the zipped folder to a new location. In Windows this will automatically extract the files.
  • This file can also be opened using a software like WinZip. Download WinZip. Then download the file which is sent in email and double click on that file which will open WinZip wizard dialogue box. Clicking that presentation file from the dialogue box will open another dialogue box confirming the opening of that file. By clicking on OK the presentation file will be opened and can be viewed now.
8 0
3 years ago
Read 2 more answers
What does a code of conduct include?
mariarad [96]
The answer is a set of rules for behavior when using the internet 
For example online bullying defies the code of conduct. 
3 0
3 years ago
Select the correct answer. Which sign or symbol will you use to lock cells for absolute cell reference?
worty [1.4K]

Answer:

A. ampersand

Explanation:

7 0
3 years ago
Read 2 more answers
Explain any one method of creating a presentation.
Anni [7]

Answer:

bullet points

Explanation:

easy to read

short and to the point

contain key information

4 0
3 years ago
Other questions:
  • Jane is a postproduction crewmember for a film. Her responsibilities include arranging all the scenes that have been shot into t
    7·1 answer
  • The trade winds are the dominant surface winds from the subtropics to high latitudes. 1. True 2. False
    7·1 answer
  • A Trojan horse:
    6·1 answer
  • Can someone pls help me my notifications aren’t working, I need help ASAP ty!
    5·1 answer
  • Which of these is not considered by economists to be a want?
    8·1 answer
  • Please I need this answer now.<br>this is the fill in the blanks​
    14·1 answer
  • When was "Rick Astley Never Gonna Give You Up" originally made?
    6·2 answers
  • HELPPP!! Ghost_diary
    6·1 answer
  • Write a function that accepts a cell array StudentScores consisting of the following:
    12·1 answer
  • question 2 what are some types of software that you'd want to have an explicit application policy for? check all that apply.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!