The code below is repetitious. What is the output of this program?
num = 3
num = num + 1
num = num + 1
num = num + 1
print(num)

Answers

Answer 1

Answer:

6

Explanation:

Answer 2

Answer:

6

Explanation:

Edge 2021


Related Questions

Which of the following is something that an Information Technology (IT) professional would do?


Collect and utilize data


Create and improve software


Manage grades and enrollments


Build and repair computers

Answers

Answer:

Probably the last one, build and repair computers.

Is a MODEM required for Internet Connectivity ?
Yes
No

Answers

Answer:

you can connect to the wifi on your device it will say you are connected but the wifi will not be connected to the internet so you will be able to do nothing on it without the modem

Explanation:

Answer:

NEED modem between the cable and your computer. No modem, no Internet.

The Answer is NO

explain logic circuit​

Answers

Computers often chain logic gates together, by taking the output from one gate and using it as the input to another gate. We call that a logic circuit. Circuits enables computers to do more complex operations than they could accomplish with just a single gate. The smallest circuit is a chain of 2 logic gates.

Logic circuits include such devices as multiplexers, registers, arithmetic logic units (ALUs), and computer memory, all the way up through complete microprocessors, which may contain more than 100 million gates. In modern practice, most gates are made from MOSFETs (metal–oxide–semiconductor field-effect transistors).

PLS HURRY!!! Look at the image below!
The choices for the second part are number +1, number, number -1

Answers

1. <1

2. -1

Explanation:

What are the key components to planning a presentation?
Check all that apply:
audience
conclusion
methods
purpose
thesis
title
topic

Answers

1,3,4,7 just took on edge

Answer:

1 3 4 7

Explanation:

8.7 Code Practice Question 3
Use the following initializer list:
w = [“Algorithm”, “Logic”, “Filter”, “Software”, “Network”, “Parameters”, “Analyze”, “Algorithm”, “Functionality”, “Viruses”]

Create a second array named s. Then, using a loop, store the lengths of each word in the array above. In a separate for loop, print on separate lines the length of the word followed by the word

Answers

I included my code in the picture below.

The for loop that can be used to loop through the array s and get the length and the word is a follows:

s = ["Algorithm", "Logic", "Filter", "Software", "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "Viruses"]

for i in s:

   print(len(i), ":", i)

The variable s is used to store the array of strings

The for loop is used to loop through the array .

The length of each string and the string is printed out.  

When the code is run, you will get exactly like the sample Run.  

learn more: https://brainly.com/question/23800781?referrer=searchResults

Which are some examples of transitional words?

look, prepare, send
next, then, finally
can't, won't, wouldn't
if, even, all

Answers

Answer:

then,next,finally

.............

Next,then,finally :).

Nina is learning about clouds in her science class so she puts the phrase "types of clouds" in a search engine. In which step of a crawler-based search engine is this phrase most important?

A) indexing

B) crawling

C) ranking

D) retrieving

Answers

Answer: d. Retrieving

Explanation:

A crawler-based search engine is a type of search engines whereby a "crawler" or "spider' is used in searching the Internet. The function of the spider or the crawler is to help dig through the web pages, and then pull out the keywords relating to what the person typed in the search engine. Examples include Yahoo and Google.

Based on the information given in the question, the step of a crawler-based search engine that this phrase is most important is the retrieving stage. At that stage, the person is trying to get some information relating to what was typed in the search engine.

The introduction of an academic paper must include a:

A) thesis statement

B)transition sentence

C) quotation

D) restatement

Answers

Answer:

A

Explanation:

The introduction of an academic paper must include a: Thesis Statement

Answer:

A.) Thesis Statement

Explanation:

You should start with a thesis statement that way your audience knows what your paper will be about. It makes a claim, directly answering a question.

Hope this helped♥

(JAVA PLS)

Your job in this assignment is to write a program that takes a message as a string and reduces the number of characters it uses in two different set ways. The first thing your program will do is ask the user to type a message which will be stored as a String. The String entered should be immediately converted to lowercase as this will make processing much easier. You will then apply two different algorithms to shorten the data contained within the String.

Algorithm 1

This algorithm creates a string from the message in which every vowel (a, e, i, o, and u) is removed unless the vowel is at the very start of a word (i.e., it is preceded by a space or is the first letter of the message). Every repeated non-vowel character is also removed from the new string (i.e., if a character appears several times in a row it should only appear once at that location). So for example the string "I will arrive in Mississippi really soon" becomes "i wl arv in mssp rly sn".

After applying this algorithm, your program should output the shortened message, the number of vowels removed, the number of repeated non-vowel characters removed, and how much shorter the shortened message is than the original message. The exact format in which the program should print this information is shown in the sample runs.

Algorithm 2

This algorithm creates a string by taking each unique character in the message in the order they first appear and putting that letter and the number of times it appears in the original message into the shortened string. Your algorithm should ignore any spaces in the message, and any characters which it has already put into the shortened string. For example, the string "I will arrive in Mississippi really soon" becomes "8i1w4l2a3r1v2e2n1m5s2p1y2o".

After applying this algorithm, your program should output the shortened message, the number of different characters appearing, and how much shorter the shortened message is than the original message. The exact format in which the program should print this information is shown in the sample runs.

Sample Run 1
Type the message to be shortened
This message could be a little shorter

Algorithm 1
Vowels removed: 11
Repeats removed: 2
Algorithm 1 message: ths msg cld b a ltl shrtr
Algorithm 1 characters saved: 13

Algorithm 2
Unique characters found: 15
Algorithm 2 message: 4t2h2i4s1m5e2a1g1c2o1u3l1d1b2r
Algorithm 2 characters saved: 8
Sample Run 2
Type the message to be shortened
I will arrive in Mississippi really soon

Algorithm 1
Vowels removed: 11
Repeats removed: 6
Algorithm 1 message: i wl arv in mssp rly sn
Algorithm 1 characters saved: 17

Algorithm 2
Unique characters found: 13
Algorithm 2 message: 8i1w4l2a3r1v2e2n1m5s2p1y2o
Algorithm 2 characters saved: 14

Answers

import java.util.Scanner;

public class JavaApplication54 {

   public static int appearance(String word, char letter){

       int count = 0;

       for (int i = 0; i < word.length(); i++){

           if (word.charAt(i) == letter){

               count++;

           }

       }

       return count;

   }

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Type the message to be shortened");

       String message = scan.nextLine();

       message = message.toLowerCase();

       int volCount = 0, repCount = 0, num = 0;

       char prevC = ' ';

       String vowels = "aeiou";

       String newMessage = "";

       for (int i = 0; i < message.length(); i++){

           char c = message.charAt(i);

           

           if (vowels.indexOf(c) != -1 && prevC == ' '){

               newMessage += c;

           }

           else if (vowels.indexOf(c) == -1 && prevC != c){

               newMessage += c;

           }

           else if (vowels.indexOf(c) != -1){

               volCount ++;

           }

           else{

               repCount++;

           }

            prevC = c;

       }

       System.out.println("Algorithm 1");

       System.out.println("Vowels removed: "+volCount);

       System.out.println("Repeats removed: "+repCount);

       System.out.println("Algorithm 1 message: "+newMessage);

       System.out.println("Algorithm 1 characters saved: "+(message.length() - newMessage.length()));

       

       String uniqueMessage = "";

       

       for (int i = 0; i<message.length(); i++){

           char w = message.charAt(i);

           if (uniqueMessage.indexOf(w)== -1 && w!=' '){

               uniqueMessage += appearance(message,w)+""+w;

               num++;

           }

       }

       System.out.println("Algorithm 2");

       System.out.println("Unique characters found: "+num);

       System.out.println("Algorithm 2 message: "+uniqueMessage);

       System.out.println("Algorithm 2 characters saved: "+(message.length() - uniqueMessage.length()));

   }

   

}

I hope this helps!

Next, let's examine what happens when you apply a style to an element that contains other elements. The body element in the HTML file contains all the elements that are displayed. Clear the existing code from the style sheet, and set the color of the body element to green. Write the code for the style change and record what you observe.

Answers

Answer:

When the body element CSS color style was changed, The color of all the text in the HTML file changed to the specified color, the same goes for font-size, font-weight, etc.

Explanation:

HTML or hypertext markup language is a markup language used in web development to implement the position and structure of the web page. It has no style, so, CSS or cascading style sheet is used to style the HTML elements in the web page.

A secure website has https instead of http in web address true or false

Answers

Answer:

True

Explanation:

https has SSL which http doesn't. SSL encrypts your information so your connections are secured. Therefore websites with https are more secure.

Consider the following instructions for a game element: Move Forward If not at end, move forward Else stop This is an example of which type of programming structure? A Iteration B Looping с Selection D Object OPEN​

Answers

Answer:

C.

Explanation:

Dr. Thomas likes to follow up with her patients to make sure they were happy with their care. She sends all patients an email encouraging them to call her office with any questions or to schedule future appointments. Dr. Thomas chooses email as the for this communication.

Answers

Answer:

lean media

Explanation:

Dr. Thomas uses email as a medium of lean media to convey messages.

Lean media may be defined as the source of conveying messages that are short or of lean capacity. It is meant for instant messages and message and information that is not considered to be of out most importance. Whereas a rich media is a video chat or face to face communication.

Dr. Thomas send emails to her patients to follow up with them and also encourages her patients to call her for appointments or any questions. She uses email as a source of lean media for this communication.

Answer:

lean media

Explanation:

How can goal setting help with academic performance?
a) it helps you focus on what needs to be done.
b) it is an effective study skill.
c) writing goals down makes them happen
d) they help you understand content better

Answers

Im pretty sure the answer is b.

What is the next line?
>>> aDeque = deque('happy')
>>> aDeque.append('me')
>>> aDeque

deque(['happy', 'me'])
deque(['h', 'a', 'p', 'p', 'y', 'me'])
an error statement
deque(['happyme'])

Answers

Answer:

deque(['h', 'a', 'p', 'p', 'y', 'me'])

Explanation:

Answer:  B)deque(['h', 'a', 'p', 'p', 'y', 'me'])

Explanation:

Edge2021

Using the drop-down menu, identify the common IDE components.
A
tests a program one step at a time to find and fix errors.
А
translates the program from high-level programming language into machine
language so it is ready to run whenever it is called.
The
v is the main programming tool used to create, modify, and save code.
The
tool helps programmers write directions for repetitive tasks as they construct a
program
An
v translates each line of code from high-level programming language to machine
language and executes it when it is called to run.

Answers

Answer:

test a program one step at to find and fix errors

Answer:

debuger

compiler

source code editor

build automation

interpreter

Explanation:

Complete the sentence.

A security program must be user-friendly and ensure employers and customers are ______
to use the security measures

1.) afraid
2.) encouraged
3.) discouraged

Answers

Answer 2.) encouraged

How are computer networks connected?

Answers

Answer:Computer networks connect nodes like computers, routers, and switches using cables, fiber optics, or wireless signals. These connections allow devices in a network to communicate and share information and resources. Networks follow protocols, which define how communications are sent and received.

Explanation.

hope this helped you find what your looking for

Computer networks connect nodes like computers, routers, and switches using cables, fiber optics ,or wireless signals. These connections allow devices in a network to communicate and share info and resources

Choose the correct item. Check your answers in the text.
3​

Answers

Answer:

You should do that

Explanation:

You didnt say anything

Because all residential electrical outlets are never used at the same​ time, the NEC​® allows a diversity or____ nothing to be used when sizing the general lighting load for electric services.

Answers

Answer:

Conincident factor        

Explanation:

Coincident factor is derived as the Maximum Demand of System divided by the Sum of Individual maximum Demands.

Diversity factor is the proportion or percentage of the total of the peak demands of each unit within the various subdivisions of a system in relation to  the total demand of the  whole system, or any section of the system.

After calculating the diversity factor the result must be greater than 1.

Cheers

The coincident factor is calculated by dividing the system's maximum demand by the sum of constituent maximum demands.

This diversity factor is the percentage or proportion of peak demand of each unit within the various divisions of a system in proportion to the overall demand of the overall network or any segment of the network.This result of computing the diversification factor has to be higher than 1.Since all household plug sockets are seldom operated at the same time, the NEC enables a diversity or coincidental factor to be used when measuring the general illumination load for electric services.

Therefore, the final answer is "coincident factor".

Learn more:

brainly.com/question/12579961

Write at leaat 20 shortcuts on the Microsoft word.​

Answers

Answer:

Open a document: Ctrl + O.

Create a new document: Ctrl + N.

Save the current document: Ctrl + S.

Open the Save As window: F12.

Close the current document: Ctrl + W.

Split the window: Alt + Ctrl + S.

Copy: Ctrl+C

Paste: Ctrl+V

Cut the current selection: Ctrl + X

Copy the current selection: Ctrl + C

Paste the contents of the clipboard: Ctrl + V

Bold: Ctrl + B

Italics: Ctrl + I

Underline: Ctrl + U

Underline words only: Ctrl + Shift + W

Center: Ctrl + E

Make the font smaller: Ctrl + [

Make the font bigger: Ctrl + ]

Change text to uppercase: Ctrl + Shift + A

Change text to lowercase: Ctrl + Shift K

Insert a page break: Ctrl + Enter

Add a hyperlink: Ctrl + K

Explanation:

Which of the following would most likely be the target audience for a product
advertised on TV during Saturday morning cartoons?
A. Young adults between the ages of 17 and 25
B. Children between the ages of 5 and 12
C. Men over the age of 65
D. Women over the age of 50

Answers

Answer:

B

Explanation:

They are saturday morning cartoons. Saturday morning cartoons are meant towards an audience of young children.

I think its b if i get wrong i sorry

Which rules should be remembered when creating formulas using nested functions? Check all that apply.
Use an equal sign at the beginning of the formula.
Use open and close parenthesis for each set of nested functions.
Use an equal sign before each function.
All arguments should be in CAPS.
Functions should be in CAPS.
Separate functions with commas.

Answers

Answer:

Use an equal sign at the beginning of the formula (A)

Use open and close parenthesis for each set of nested functions (B)

Functions should be in CAPS

Separate functions with commas

Explanation:

Answer:

A

B

E

F

Explanation:

what is the purpose of the domain name system

Answers

Answer:

The Domain Name System (DNS) is a central part of the internet, providing a way to match names (a website you're seeking) to numbers (the address for the website). Anything connected to the internet - laptops, tablets, mobile phones, websites - has an Internet Protocol (IP) address made up of numbers.

Explanation:

The Domain Name System (DNS) is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently, it translates more readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices with the underlying network protocols. By providing a worldwide, distributed directory service, the Domain Name System has been an essential component of the functionality of the Internet since 1985.

The Domain Name System delegates the responsibility of assigning domain names and mapping those names to Internet resources by designating authoritative name servers for each domain. Network administrators may delegate authority over sub-domains of their allocated name space to other name servers. This mechanism provides distributed and fault-tolerant service and was designed to avoid a single large central database.

Which are examples of basic text structures? Check all that apply.

chronological order
random order
order of importance
comparison and contrast
cause and solution

Answers

Chronological order
Comparison

Answer:

B, D, E.

Explanation:

4.8 code practice question 2

Answers

Answer:

Written in Python

for count in range(88, 42,-2):

    print(count,end=' ')

Explanation:

The programming language is not stated.

However, I used python to answer the question.

First, we need to loop from 88 to 44 with a difference of -2 in each term.

This is implemented as

for count in range(88, 42,-2):

Which means to start at 88 and ends at 42 - (-2) which is 44 with an increment of -2

Next, is to print the current iterating value;

This is implemented using print(count)

However, since all values are to be printed on a line, there's a need t modify the statement as: print(count,end=' ')

How does Python recognize a tuple?

You use brackets around the data values.
You use parentheses around the data values.
You declare myTuple to be a tuple, as in "myTuple = new tuple".
You use tuple when you create it, as in "myTuple = tuple(3, 5)".

Answers

Answer:

B) You use parentheses around the data values

Explanation:

It was C) on my end, but the answer is still the same :)

Python recognizes a tuple if you declare myTuple to be a tuple, as in "myTuple = new tuple". The correct option is C.

What is python?

Python is a popular computer programming language used to create software and websites, automate processes, and analyze data. Python is a general-purpose language, which means it may be used to make many various types of applications and isn't tailored for any particular issues.

Python is frequently considered as one of the simplest programming languages to learn for novices. Python is a wonderful place to start if you're interested in learning a programming language. In addition, it is one of the most popular.

Therefore, the correct option is C, You declare myTuple to be a tuple, as in "myTuple = new tuple".

To learn more about python, refer to the link:

https://brainly.com/question/18502436

#SPJ2

Look at the slide.

An example of a slide. There is a title. There is one main bullet entry with 3 subentries below it. There is a lot of text on the slide. There is no image. The background is dark red and the text is black.

How could the slide best be improved?

by choosing a better font
by providing more information
by using a lighter background
by enlarging the heading

Answers

Answer:

c

Explanation:

Answer:

the answer is c

Explanation:

100%

Write a program in QBASIC to display the first 10 numbers of the fibonacci series:
0,1,1,2,3,5,... up to 10 terms.

(Hint- Take the first two numbers 0 and 1. Now obtain the next number by adding them. For example:0+1=1)

Answers

Answer:

#include<iostream>

using namespace std;

int main()

{

int a=0,b=1;

int i,c;

cout<<a<<" "<<b<<" ";

for(i=3;i<=10;i++)

{

 c=a+b;

 cout<<c<<" ";

 a=b;

 b=c;

}

return 0;

}

Explanation:

Other Questions
What is the inverse function of f? F(x)=10/9x+11 Which sentence uses a contraction incorrectly? A. I told my mom I'll be done with my essay today. B. This novel is so interesting that it'll amaze its readers. C. The mystery she's been unraveling finally has a solution. D. Helping students was the most interesting part of they're jobs. Suppose x, y, and z are different positive integers such that xy, yz, and zx are all perfectsquares. Must x, y, and z be perfect squares? Why or why not? What is the mapping notation that will transform triangle ABC to triangle A'B'C'? Our topic is about gun violence but I'm not sure what to write here. Please help! Please give me a full and good answer. :(I will give brainliest to best one! :D what is the climax of nicholas was... by neil gaiman An investment that costs $5,000 will produce annual cash flows of $3,000 for 3 years. Using a required return of 8%, the investment will generate a NPV of $ Read the excerpt below and answer the question that follows.At a place where there were no signs, where the soft, unbroken snow seemed to advertise solidity beneath, the man broke through. It was not deep. He wet himself halfway to the knees before he floundered out to the firm crust.What does floundered mean? When a popsicle melts, the particlesA. there are no particles in popsiclesB. stay the sameC. lose thermal energy and slow downD. gain thermal energy and speed up The Aztec class system:A.) kept everyone to their stationB.) changed based on your contribution to society C.) determined who could be a priest and who couldnt D.) gave landowners privilege over non-landowners E.) did not allow slaves to regain their freedomCan have multiple answers Eric threw a baseball 20 meters in 0.5 seconds. What was the average speed of the baseball to the nearest hundredths of a m/sec. What is -8(2-3w)-5Please explain! 3. Let sin 21 = 0.358. What is the value of x for cos x=0.358? If your heart is not strong enough or efficient enough, it is difficult to (3 points) a stretch b lift weights c breathe d perspire help math pls geometry Please help, will mark you as the brainiest! Please do NOT answer if you dont know it! A company provides services to clients during the period that are neither paid for, nor billed to the clients. What must the company do?a. Bill the client prior to year end in order to recognize the revenueb. Record the revenues as a liability at the end of the yearc. Accrue revenue by making an adjusting entry at the end of the periodd. All of the above are true Working alone, Dan can do a certain job in three hours and Stan can do the same job in two hours. At these rates, how long would it take Dan and Stan to do this job working together? What role did monsoons play in the farming of the river valleys of East Asia?Monsoons changed the paths of rivers, which changed Chinas borders.Monsoons flooded the soil with nutrients from rivers and kept the soil fertile.Monsoons discouraged people from invading the land because it flooded so often.Monsoons caused people to move away from the river valleys in search of drier land. It requires two sticks of butter to make a batch of 20 cookies. How much butter will it take to make 150 cookies?