What is the answer to 4.9 Code Practice: Question 2

Answers

Answer 1

Answer:

sum = 0

for i in range(20, 100, 10):

sum = sum + i

Print(sum)

Explanation:

Answer 2

The answer to 4.9 Code Practice: Question 2 is 200  of the total output.

What is the output?

An output record that a laptop sends. Computers best paintings with virtual information. Any entry that a laptop gets have to be digitised. Often records must be transformed and returned to an analogue layout whilst it is output, as an instance the sound from a laptop's speakers.

The answer to 4.9 Code Practice: Question 2 is 200 output of all the total outputs this is the answer.

Read more about the Code :

https://brainly.com/question/3653791

#SPJ2


Related Questions

What routing protocol is the most popular distance-vector routing algorithm used to determine the best routes within a network

Answers

Answer:

RIP

Explanation:

RIP is a routing protocol that stands for Routing Information Protocol. It is a distance-vector routing algorithm which uses a hop count for routing its metric. RIP is the most popular and frequently used on internet. RIP uses hop count, which means it goes from low hop count to high hop count.

Therefore, it is the Routing Infomation Protocol which is the most popular distance-vector routing algorithm used to determine the best routes within a network.

What is output? Select all that apply.
C=0.
while (c < 5):
c = c + 1
print(c)

Answers

Answer:

Since we didn't print it at the beginning, we can assume that the program will start printing to the console at the number: 1. After that, it continues right before hitting 5. Proving the output of the program will be the following:

1

2

3

4

What is the function of a web browser, and what are the main components of a web address?

Answers

Answer:

The primary function of a web browser is to render HTML, the code used to design or "mark up" webpages. Each time a browser loads a web page, it processes the HTML, which may include text, links, and references to images and other items, such as cascading style sheets and JavaScript functions.

Function of a web browser: A web browser allows users to access and view websites on the internet, request web pages from servers, and display their contents.

Main components of a web address (URL):

1. Protocol

2. Domain

3. Subdomain

4. Path

5. Query parameters

6. Fragment identifier

The Function of a Web Browser:

1. Requesting Web Pages: The web browser sends requests to web servers to fetch specific web pages or resources (such as images, videos, and stylesheets) associated with those pages.

2. Rendering Web Pages: Once the web browser receives the requested content from the server, it interprets and renders the HTML, CSS, and JavaScript code to display the web page's content and structure.

3. Supporting Multimedia: Web browsers are capable of handling various multimedia elements, such as images, audio, and video, allowing users to experience a rich and interactive web environment.

4. Managing History and Bookmarks: Web browsers keep track of the browsing history, allowing users to revisit previously visited sites. They also provide features to bookmark and save favorite websites for quick access.

Main Components of a Web Address (URL):

A web address, also known as a URL (Uniform Resource Locator), is the unique address used to identify a specific web page or resource on the internet. It consists of several components:

1. Protocol: The protocol is the method used to access the resource.

2. Domain: The domain is the address of the website or server hosting the resource. It is typically the main part of the URL.

3. Subdomain (Optional): Subdomains are prefixes added before the main domain.

4. Path: The path specifies the location of the specific resource on the server. It may include directories and filenames.

5. Query Parameters (Optional): Query parameters are additional data passed to the web server for processing.

6. Fragment Identifier (Optional): The fragment identifier is used to specify a specific section or anchor within a web page.

Learn more about Web here:

https://brainly.com/question/27961981

#SPJ6

Write a java program to read elements in an array from user and count total number of duplicate elements in array.

Answers

Answer:

Explanation:

The following code is written in Java and is a function/method that takes in an int array as a parameter. The type of array can be changed. The function then creates a counter and loops through each element in the array comparing each one, whenever one element is found to be a duplicate it increases the counter by 1 and moves on to the next element in the array. Finally, it prints out the number of duplicates.

public static int countDuplicate (int[] arr) {

               int count = 0;

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

                       for(int j = i + 1; j < arr.length; j++) {

                               if(arr[i] == arr[j])

                                       count++;

                       }

               }

               return count;

       }

PLS HELP BEING TIMED!!!
Complete the following sentence.
The basics of managing money such as balancing a checkbook and making a budget are _____
skills

Answers

Answer:

Bank Rate skills

Explanation:

because it is i believe

How do you do that ( the bit that I circled in the picture)

Answers

Answer: You just type answer, return/enter, put your answer and then hit return/enter again

Explanation:

A restaurant recorded the ages of customers on two separate days. You are going to write a program to compare the number of customers in their teens (ages 13 to 19).

What is the missing line of code to count the number of customers in their teens?

customerAges = [13, 3, 11, 24, 35, 25, 15, 18, 1]
countTeens = 0
for item in customerAges:
_____:
countTeens = countTeens + 1

if 13 <= item <= 19

if 13 < item < 19

if 13 <= item[0] <= 19

if 13 < item[0] < 19

Answers

Answer:

if 13 <= item <= 19

Explanation:

Edge 2021

The missing line of code to count the number of customers in their teens is if 13 <= item <= 19. The correct option is b.

What is programming?

A form of computer programming language known as procedural programming describes a number of well-planned actions and processes during the course of its development.

It includes statements, functions, and commands that are organized systematically to finish a computing task or program. Its main focus is on developing procedures.

While object-oriented programming is a type of programming where the emphasis is on generating objects as opposed to actions and data or logic. Inheritance, polymorphism, abstraction, and encapsulation are its four guiding concepts.

Therefore, the correct option is b, if 13 <= item <= 19

To learn more about programming, refer to the link:

https://brainly.com/question/14368396

#SPJ2

In
the first computer ran a program from memory.
0 1942
1950
1948
1968

Answers

The first computer to run a program from memory was 1950.

As a programmer, why do you think that skills and training are needed? Give 5 reasons.

Answers

1. without them you wouldn’t be able to program
2. need for job interviews
3. important to be good and make the money
4. can be adaptable
5. easy to move from a business to another
1) because you don’t want the thing you are programming to not work
2) you can make the robot do exclusive stuff
3) you need to know how to be a programmer
4) The robot can do my evil task
5) you can scare your little sis with a scary robot doll face

how do I take a picture of myself on an apple computers?

Answers

Answer:

with the camera

Explanation:

Answer:

press the camera and take a pic??

Explanation:

What is the difference between an if-statement, an if-else statement, and an if-else-if statement? How are they similar?

This is in computer science principles

Answers

Answer:

Explanation:

If statement is saying one perspective. However, if else if is many different.

What is the purpose of slicing?

a. To combine characters in order to form a single string
b. To combine two or more strings into one big string
c. To pull out a group of characters from a string
d. To pull out one specific character from a string

Answers

Answer:

C

Explanation:

Because a and b are talking about combining and when you slice you don't combine when you slice and when you slice something its into 2 or more parts, unlike what d says

USB 3.1 offers an improvement over its predecessors by enabling a maximum data transfer rate of up to:

Answers

Answer:

10 Gbps

Explanation:

The full form USB is Universal Serial Bus. It is used to connect to electronics as well as computers. The 3.1 USB is a recent and advance version of the USB standard. It was released in the year 2013. It can transfer data speed up to a speed of 10 Gbps.

It USB 3.1 can use the USB-C connector types and other connector types as well.

List five types of system information that can be obtained from the Windows Task Manager. How can you use this information to confirm the presence of malware on a system

Answers

Answer:

Part A;

Five types of system information that can be obtained from the Windows Task Manager includes;

1) The processes taking place

2) The performance of the system components, including the, CPU, Memory, Disk, Wi-Fi, GPU, and a live summary of the metrics of the computer

3) The App  history

4) The list of startup

5) The current users of the computer

Part B;

By going through list of active processes on the Windows Task Manager, a malware can be detected as a rogue or unidentified process that may be running on the background. The name of a process may seem legit, but however, the process is not supposed to be running, such as a program which is not running or installed on the system  but the process is seen running on the Windows Task Manager, that is a sign of a malware on the system

Explanation:

Can we trust in Avast Antivirus ⊕?⊕

Answers

Answer:

yes we can

Explanation:

im also using avast antivirus and it was no fault in avast antivirus

Answer:

Avast is a good antivirus program. It is not a scam or malware. I personely use Avast a while back and they are now basically the same thing, only with a different user interface.

Explanation:

Hope It's answer you plz mark as Brainlist

Which sentence best describes how block-based code works?

Answers

Answer:

Block-based code is a simpler way to code.  

Explanation:

Block-based coding is a form of programming language where the developer issues instructions by dragging and dropping blocks.

100 pints
Question # 1 Match List You have used different ways to store data. Match each definition with its type.

movieCost = 4.95

movieStars = ['Carrie Fisher', 'Harrison Ford']

movie = 'Star Wars'

movieID = 132

movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild') movieRatings = {5:'language', 3:'violence'}


words that needs to be used

string

int

float

list

dictionary

turple

Answers

Answer:

movieCost=4.95

Float

movieStars = ['Carrie Fisher', 'Harrison Ford']

List

movie= 'Star Wars'

String

movieID=132

int

movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild')

Tuple

movieRatings = {5:'language', 3:'violence'}

Dictionary

Explanation:

movieCost = 4.95

movieCost  is of float type because it has a decimal point.

movieStars = ['Carrie Fisher', 'Harrison Ford']

movieStars if of list type because in Python the elements of list is inside square brackets.

List is an ordered collection. List is mutable i-e items can be added and remved from the list

movie = 'Star Wars'

movies is a string type because it is in enclosed in single quotes only.

movieID = 132

movieID is of int type because it is only number, without decimal value.

movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild')

movieAwards is a tuple type because it is enclosed in round brackets or parenthesis.

Tuple is a sequence object. It is ordered collection of item. it is immutable.

movieRatings = {5:'language', 3:'violence'}

MovieRating is a dictionay type because it is in key-value pair. it is an unordered collection.

how do you take a picture on an apple computers

Answers

Answer:

You go to the launcher, then find Photo Booth. Photo Booth allows you to take photos. You can only take photos on the side where the screen is, since there isn't a camera on the back. I recommend taking a picture with a phone instead. For a screenshot, press command-shift-3.

Hope this helps!

WILL GIVE BRAINLIEST!! If a flowchart has a diamond with the words “yes” and “no” to the sides of it, then it is representing a program that is a sequence.
true
false

Answers

Answer:

false

Explanation:

a flowchart with a diamond and with the words “yes” and “no” to the sides of it, then it is representing a program with branches.

it represents branch, like an if , else statement.

It is not in sequence.

Answer:

True

Explanation:

short note on first generation computer​

Answers

Answer:

The period of first generation was from 1946-1959. The computers of first generation used vacuum tubes as the basic components for memory and circuitry for CPU

Categorize each memory card as based on new or old technology. PLEASE HELP.

Answers

Answer:

SD Cards and XDQ Cards are new XD Cards and CF Cards are old.

Explanation:

Hope this helps.

What is the answer for 2.8.10 word games? This is what I have so far, but I can’t seem to be able to figure out the bananaSplit public strings.

Answers

Answer:

 public String bananaSplit(int insertIdx, String insertText) {

     return word.substring(0, insertIdx) + insertText + word.substring(insertIdx);

 }

Explanation:

Do you have the other parts of the WordGames class?

Create a code for playing blackjack
The first part of the code will create two variable.
One for the first card you’re dealt and one for the second.
Add those two variable for the total score you have

Then
Create a while loop that will stop if your score becomes above 21 or if the user says that they wish to stay.
Inside the while loop have ask the user if they want to hit or stay. Inside of the question be sure to print the current total that the user has
If the user inputs “hit” add a random number between 1 and 11 to their score.
If they input “stay” then print their final score
Then
Create a code for the dealer
The dealer should also start with two cards (remember you can always copy and paste and then edit your code)
Create a while loop for the dealer. (there is rule that dealers must always hit if their total is 16 or under
Print the dealers score once they are done.

Finally
Check if your score is higher than the dealer’s.
If it is you win
If not, you lose

Remember.
If either the dealer or you reach over 21 then that person automatically loses

Answers

Answer:

import random

is_stay = 'n'

y_fcard = random.randint(1, 11)

y_scard = random.randint(1, 11)

d_fcard = random.randint(1, 11)

d_scard = random.randint(1, 11)

you_score = y_fcard + y_scard

dealer_s = d_fcard + d_scard

print("Your score", you_score)

print("dealer's score", dealer_s)

while is_stay == 'n':

   if you_score > 21:

       break

   you_score += random.randint(1, 11)

   print("Your score", you_score)

   is_stay = input("Do you want to stay y/n?: ")

   if you_score > 21:

       print("You lost")

       quit()

while dealer_s <= 16:

   dealer_s += random.randint(1, 11)

   if dealer_s > 21:

       print("The dealer lost")

       quit()

if you_score > dealer_s:

   print("You are the winner", "My score: ",you_score, "\nDealer's score: ", dealer_s)

else:

   print("Sorry, you lost the game", "My score: ",you_score, "\nDealer's score: ", dealer_s)

Explanation:

The python program uses the random module's 'randint' to get a random integer number between 1 and 11, and adds the value to the user's score if the user decides to hit but compares the result with the dealer's if the user stays.

One of the functions of an IDE is to check for: flowchart errors. Syntax errors. memory errors X input and output.​

Answers

Answer:

flowchart errors

Explanation:

Answer:

flowchart errors

Explanation:

Can someone please help me out with this?

Answers

What's the question?

heeeeelp
and thank you

Answers

Answer:

2375 calories

Explanation:

125% of 1900=2375 calories

Answer:

2375 calories

Explanation:

it's asking for 125% which is the same as 100% + 25%

100% is 1900

25% of 1900 is 475

1900 + 475 is 2375

I'm working on an assignment for my computer science class (Edhesive) and when I run the code, there are no errors. But when I try to check it, it comes up with a Traceback error.

My code:

b = float(input("Enter Temperature: "))

Traceback (most recent call last):
File "./prog.py", line 7, in
EOFError: EOF when reading a line

Answers

Answer:

The error is because you wrapped the input in float. First record the input and then modify it.

Explanation:

b =  input("enter temp:")

b = float(b)

Write a program to have the computer guess at a number between 1 and 20. This program has you, the user choose a number between 1 and 20. Then I, the computer will try to my best to guess the number. Is it a 18? (y/n) n Higher or Lower (h/l) l Is it a 5?(y/n) n Higher or Lower (h/l) h Is it a 10? (y/n) y I got tour number of 10 in 3 guesses.

Answers

Answer:

This question is answered using C++ programming language.

#include<iostream>

#include <cstdlib>

#include <ctime>

using namespace std;

int main(){

   int num, computerguess;

   char response, hl;

   cout<<"Choose your number: ";

   cin>>num;

   srand((unsigned) time(0));

   int high = 20;    int low = 1;    int guess = 0;

   computerguess = low + rand() % high;

   cout<<"Is it "<<computerguess<<" ?y/n: ";

   cin>>response;

   while(response == 'n'){

       cout<<"Higher or Lower? h/l: ";

       cin>>hl;

       if(hl == 'h'){            low = computerguess+1; }

       else{   high = computerguess-1; }

       guess++;

       computerguess = low + rand() % high;

       cout<<"Is it "<<computerguess<<" ?y/n: ";

   cin>>response;

   }

   cout<<"I got your number of "<<num<<" in "<<guess+1<<" guesses.";

   return 0;

}

Explanation:

This declares num (user input) and computerguess as integer

   int num, computerguess;

This declares response (which could be yes (y) or no (n) and hl (which represents high or low) as char

   char response, hl;

This prompts user for input

   cout<<"Choose your number: ";

This gets user input

   cin>>num;

This allows the computer be able to generate different random numbers at different intervals

   srand((unsigned) time(0));

This declares and initializes the range (high and low) to 20 and 1 respectively. Also, the initial number of guess is declared and initialized to 0

   int high = 20;    int low = 1;    int guess = 0;

Here, the computer take a guess

   computerguess = low + rand() % high;

This asks if the computer guess is right

   cout<<"Is it "<<computerguess<<" ?y/n: ";

This gets user response (y or n)

   cin>>response;

The following iteration is repeated until the computer guess is right

   while(response == 'n'){

This asks if computer guess is high or low

       cout<<"Higher or Lower? h/l: ";

This gets user response (h or l)

       cin>>hl;

If the response is higher, this line gets the lower interval of the range

       if(hl == 'h'){            low = computerguess+1; }

If the response is lower, this line gets the upper interval of the range

       else{   high = computerguess-1; }

This increments the number of guess by 1

       guess++;

Here, the computer take a guess

   computerguess = low + rand() % high;

This asks if the computer guess is right

   cout<<"Is it "<<computerguess<<" ?y/n: ";

This gets user response (y or n)

   cin>>response;    }

This prints the statistics of the guess

   cout<<"I got your number of "<<num<<" in "<<guess+1<<" guesses.";

Question # 3

Dropdown

Finish the code for this bubble sort.

length = len(myList)

for n in range(length - 1):

for test in range(n + 1, length):

if myList[n] _____ myList[test]:

temp = myList[n]

myList[n] = myList [test]

myList[test] = temp

print(myList)

Answers

Answer:

The answer is >

Explanation:

I did the assignment on edge this was the correct answer

The complete code is length = len(myList), for n in range(length - 1):, for test in range(n + 1, length):, if myList[n] > myList[test]:.

What is coding?

Computer code, or a set of instructions or a system of rules defined in a specific programming language, is a term used in computer programming (i.e., the source code).

Although learning to code is not difficult, it might be scary at first. The initial stages of learning something new might be difficult. With practice, persistence, and patience, coding becomes simpler. If you're thinking about learning to code, it's simple to get caught up in the challenge.

Languages written in an imperative, functional, logical, or object-oriented style are common. These coding language paradigms are available for programmers to select from in order to best meet their demands for a given project.

Therefore, the correct term to complete the code bubble sort is >.

To learn more about coding, refer to the link:

https://brainly.com/question/20712703

#SPJ2

) Find and write the o/p :
X=[“F”,66,”QE”,15,”S”,34]
Y=0
Z=” ”
A=0
for c in range(1,6,2)
Y+=c
Z=Z+X[c-1]+'$’
A+=X[c]
Print(x,y,z)

Answers

Answer:

The output of this question is

['F', 66, 'QE', 15, 'S', 34] 9  F$QE$S$

Explanation:

In this question the user want to print the value of X,Y and Z

Let calculate the value of X first.

As the value of X is not altered in the program to its value will be the same that is:

['F', 66, 'QE', 15, 'S', 34]

Now we will calculate the value of Y

It is written as

Y+=c

which can be written as Y=Y+c

The loop here start form 1, the it go to 3 then 5 as explained below

Range(1,6,2) is written

The first value is the start value

The second value is stop value

While the third value is how much to increment.

So first its value will be 1 then increment it by 2. It will become 3

then increment it by 2 again it will become 5. in the next step it will become 7 which is out of range

so

Y=Y+c  =>  Y=0+1       (first loop)

                  Y=1+3       (second loop)

                   Y=4+5    (third loop)

  Some y will be 9

Now let focus on the value of Z

Z= " " +X[1-1]+'$'  (first loop)  value of  c=1

so it will become

Z=F$

Now in 2nd Loop

Z=" " + X[3-1]+'S'  (2nd loop)    value of c=3

it will become

Z=QE $

Now in 3rd Loop

Z=" " + X[5-1]+'S'

it will become

Z=" " S + $

so the overall answer of print will become

['F', 66, 'QE', 15, 'S', 34] 9  F$QE$S$

Other Questions
What is the inverse of the function f(x) = one-quarterx 12? h(x) = 48x 4 h(x) = 48x + 4 h(x) = 4x 48 h(x) = 4x + 48 x - 35 > 15 I cant figure this out pls help me 5 pts The first pharaohs of the New Kingdom expanded Egypt'sarmiesOreligionOuniversitiesfarmland Latin someone please help me with this if you have taken latin or even Latin on Vlacs I really need to help and I would very much appreciate it I WILL GIVE BRAINLIEST IF CORRECT!!!!!!!! Mrs. Kunannan checked her class rosters at the beginning of the year. The ratio of girls to boys in her class is 3 to 7. If she has 50 total students in her class, how many students are boys? Which is historical inquiry based on?A.fact-finding missionB.informal readingC.narrow questioningD.open-ended questioningE.question-driven thinking 400 years on , Mayflower's legacy includes pride , prejudice do you know what the specturm is??? are you on it?? dont look it up if you dont know what it mean i tryna get funny answers A common error by beginning programmers is to forget that array subscripts start with ________. a. 0 b. the number of elements in the array c. spaces d. 1 Which detail from Run, Kate Shelley, Run best supports the idea that people feel Kate should be rewarded for her actions? A)And after her death, the Order of Railway Conductors and Brakemen placed a memorial to their Iowa heroine. B)The same telegraph that had warned Ogden Station to hold the midnight express sent news of Kates bravery from city to city.C)Then the people of Iowa awarded her a gold medal, and the railroad gave her one hundred dollars and a lifetime railroad pass. D)While Kate lay in bed recovering from that terrible night, every train passing the farmhouse blew its whistle in her honor. what type of figurative language is used in this excerpt"he was a shoulder who had given up before the war begun" Solve (2x 1)2 = 9.Question 19 options:A) x = 2, 1B) x = 2, 1C) x = 2, 1D) x = 2, 1 The 1796 presidential election marked the beginning of an important trend under the Constitution: regular and peaceful exchanges of power for even the highest office in the country.a) Trueb) False Please hurryyFind the slope of a line that goes through these two points: (4, -7) and (3,-8) Which of these is the dominant cultural influence in the United States?FrenchAfricanEastern EuropeanWestern European Answer this fraction math question and explain your answer PLEASE ! Which of the following expressions represents "the difference of 8 and n"?0-8 n08-0On-8 Evaluate the step function for the given input values.-4, -35 x < -1-1, -1sx Beginning in the 600 A.D.. the religion of Islam spread in the Middle East and Africa. True Or False Which equation illustrates the multiplicative inverse property?Choose one(1) a1=a(2)a0=0(3)a(1/a)=1(4)(-a)(-a)=a