4.8 Code Practice: Question 3

4.8 Code Practice: Question 3

Answers

Answer 1

for x in range(200, 301, 2):

   print(x)

I hope this helps!

Answer 2

The code practice is an illustration of loops;

Loops are statements that are used to perform repeated actions

The complete program in Python

The program in Python, where comments are used to explain each action is as follows:

#This iterates from 200 to 300

for i in range(200,301,2):

#This prints the even numbers

   print(i)

Read more about loops at:

https://brainly.com/question/24833629

#SPJ2


Related Questions

Simple Arithmetic Program
Using the instructions from Week 1 Lab, create a new folder named Project01. In this folder create a new class named Project01. This class must be in the default package. Make sure that in the comments at the top of the Java program you put your name and today's date using the format for Java comments given in the Week 1 Lab.
For this lab, you will write a Java program to prompt the user to enter two integers. Your program will display a series of arithmetic operations using those two integers. Create a new Java program named Project01.java for this problem.
Sample Output: This is a sample transcript of what your program should do. Items in bold are user input and should not be put on the screen by your program. Make sure your output looks EXACTLY like the output below, including spacing. Items in bold are elements input by the user, not hard-coded into the program.
Enter the first number: 12
Enter the second number: 3
12 + 3 = 15
12 - 3 = 9
12 * 3 = 36
12 / 3 = 4
12 % 3 = 0
The average of your two numbers is: 7
A second run of your program with different inputs might look like this:
Enter the first number: -4
Enter the second number: 3
-4 + 3 = -1
-4 - 3 = -7
-4 * 3 = -12
-4 / 3 = -1
-4 % 3 = -1
The average of your two numbers is: 0
HINT: You can start by retyping the code that was given to you in Exercise 3 of ClosedLab01. That code takes in a single number and performs a few arithmetic operations on it. How can you modify that code to take in two numbers? How can you modify it to display "number * number =" instead of "Your number squared is: "? Take it step by step and change one thing at a time.
You can use the following as a template to get you started. Note that you must create your class in the default package and your project must be named Project01.java for the autograder to be able to test it when you submit it.

Answers

Answer:

Written in Java

import java.util.*;

public class Project01{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int num1,num2;

 System.out.print("Enter first number: ");

 num1 = input.nextInt();

 System.out.print("Enter second number: ");

 num2 = input.nextInt();

 System.out.println(num1+" + "+num2+" = "+(num1 + num2));

 System.out.println(num1+" - "+num2+" = "+(num1 - num2));

 System.out.println(num1+" * "+num2+" = "+(num1 * num2));

 System.out.println(num1+" / "+num2+" = "+(num1 / num2));  

 System.out.print("The average of your two numbers is: "+(num1 + num2)/2);

}

}

Explanation:

import java.util.*;

public class Project01 {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

This line declares myfirstnum and mysecnum as integer

 int myfirstnum,mysecnum;

This line prompts user for first number

 System.out.print("Enter first number: ");

This line gets user input

myfirstnum= input.nextInt();

This line prompts user for second number

 System.out.print("Enter second number: ");

This line gets user input

 mysecnum = input.nextInt();

This line calculates and prints addition operation

 System.out.println(myfirstnum+" + "+mysecnum+" = "+(myfirstnum + mysecnum));

This line calculates and prints subtraction operation

 System.out.println(myfirstnum+" - "+mysecnum+" = "+(myfirstnum - mysecnum));

This line calculates and prints multiplication operation

 System.out.println(myfirstnum+" * "+mysecnum+" = "+(myfirstnum * mysecnum));

This line calculates and prints division operation

 System.out.println(myfirstnum+" / "+mysecnum+" = "+(myfirstnum / mysecnum));  

This line calculates and prints the average of the two numbers

 System.out.print("The average of your two numbers is: "+(myfirstnum + mysecnum)/2);

}

}

You have to match the letter nexts to the numbers

Answers

Answer:

Word is for business letter 4+a

2+c Monthly budget expenses

3+b is for presentation

1+d department store inventory

HELP ME ASAP
Fred is using an enterprise system to create a database solution for his office. What would be the advantage of using an enterprise system?

Enterprise systems are single processor systems that do not take up many resources. However, they can be pipelined over multiple processors to lesson the computation time. Enterprise solutions provide a single database to simplify operation. These systems are faster and provide data redundancy.

Answers

Answer:

Enterprise solutions provide a single database to simplify operation

Explanation:

This is used to track a user’s browser and download history with the intent to display popup banner ads that will lure a user into making a purchase.

Select one:
Adware
Worm
Phishing
Malware

Answers

Answer:

Adware

Explanation:

Adware is software designed to display advertisements on your screen, most often within a web browser.

Hope that helps.

A software that used to track a user’s web browser and download history with the intent to display popup banner adverts (ads) that will lure an end user into making a purchase is: A. Adware.

An adware is also referred to as an advertisement-supported software and it can be defined as a software application (program) that is designed and developed to automatically display advertising materials such as banners or pop-up adverts (ads) on the graphical user-interface (GUI) of a user's computer system or mobile device.

The main purpose for the development of an adware is to automatically display popup banner adverts (ads), in order to lure or convince an end user into making purchase of the advertised product or service.

In conclusion, an adware is a software that is typically used to track and gather information about a user’s web browser and download history with the intent to display popup banner adverts (ads) that will lure an end user into making a purchase.

Read more on adware here: https://brainly.com/question/9692296

Who here would like to play among us with me?
Time: Friday, November 13

Answers

Answer:

sure

Explanation:

What must you consider when determining the efficiency of an algorithm? Select two choices.

Answers

Answer:

C. The number of characters used to write the program

And

D. The length of time required to run the program

Explanation:

Hope this helped


1. As part of your community, your school, and your neighbourhood, how else does ICT have an impact on social
awareness? What are these changes that are neglected in the bigger perspective?

Answers

Answer:

helthcare systems, aviation, entertainment, retail, etc

Explanation:

ICT has made life easy, it has made an interconection accross the world. in the helthcare system, ICT has created a positive impact because now a days body check up is been made through computers.

in the aviation, we use computers to control the the traffic of airplanes.

Choose the parts of the browser window. PLEASE ANSWER QUICKLY TEST

Answers

it would be display window

Answer:

display window

Explanation:

as it is where the browsed data is to be displayed

Why do digital media professionals create portfolios of their work?

Answers

Answer:

Then you're going to have to create a digital media portfolio in order to showcase your technical skills and knowledge. It can act as your online resume. You can use it to showcase your related work and projects to potential employers and clients online.

Explanation:

<BUTTON TYPE="BUTTON" VALUE="SUBMIT">SUBMIT YOUR FORM</BUTTON>
</FORM>
</BODY>
</HTML>
Write the question of this programming .​

Answers

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

This is an inference question. I mean that in this question, an answer is given, you have to generate the question.

The given code is :

BUTTON TYPE="BUTTON" VALUE="SUBMIT">SUBMIT YOUR FORM</BUTTON>

</FORM>

</BODY>

</HTML>

So, the answer (i.e. to write a question) is

Write a HTML code that displays a button in its body with the text "Submit Your Form ".

Advantages of Linux include_____.
(Multiple choice)(photo attached)

-cost
-the ability to tweak the application
-ease of use
-security
-a time table for customer support

Answers

Answer:

The ability to tweak an application, and i think security. I've barely scratched the surface of linux so my answer may not be 100% accurate

Explanation:

WHAT DOES INFORMATION TECHNOLOGY DO??
Do they offer services or products

Answers

Yes

Explanation: Information technology, or IT, describes any technology that powers or enables the storage, processing and information flow within an organization. Anything involved with computers, software, networks, intranets, Web sites, servers, databases and telecommunications falls under the IT umbrella.

i emailed someone and im sure that they emailed back however it says nothing has arrived in my inbox what do I do

Answers

Answer:

report it or check ur spam mail or refresh the page

Explanation:

good luck figuring it out :)

Learning Task 5. Identify the terms being described below. Write your answer in your answer
sheet.
1. This refers to the collection, transportation, processing or disposal, managing and
monitoring of waste materials.
2. This refers to the hazard control which involves the measure of replacing one hazardous
agent or work process with less dangerous one.
3. A very important method of controlling hazards which involves proper washing of your hair,
skin, body and even your clothes.
4. This refers to the preparedness for the first and immediate response in case of any type of
emergency.
5. This hazard control refers to the removal of a specific hazard or hazardous work process.
6. What is the term used to call the range of concentration over which a flammable vapor
mixed with air will flash or explode if an ignition is present?
7. A cross-disciplinary area concerned with protecting the safety, health and welfare of people
engaged in work or employment.
8. The term used in hazard control which involves changing a piece of machinery or work
process.
9. The term used to call any piece of equipment which is used to protect the different parts of
the body such as ears and eyes such as respirators, face mask, face shield, gloves, boots,
etcetera.
10. This is a form of hazard control which involves manipulation of worker/employee’s schedule
and job rotation.

Answers

Answer:

1. Waste management.

2. Substitution.

3. Personal hygiene practices.

4. Emergency preparedness.

5. Elimination.

6. Flammability limit.

7. Occupational safety and health (OSH).

8. Engineering controls.

9. Personal protective equipment (PPE).

10. Administrative controls.

Explanation:

1. Waste management: this refers to the collection, transportation, processing or disposal, managing and monitoring of waste materials.

2. Substitution: this refers to the hazard control which involves the measure of replacing one hazardous agent or work process with less dangerous one.

3. Personal hygiene practices: a very important method of controlling hazards which involves proper washing of your hair, skin, body and even your clothes.

4. Emergency preparedness: this refers to the preparedness for the first and immediate response in case of any type of emergency.

5. Elimination: this hazard control refers to the removal of a specific hazard or hazardous work process.

6. Flammability limit: is the term used to call the range of concentration over which a flammable vapor mixed with air will flash or explode if an ignition is present.

7. Occupational safety and health (OSH): a cross-disciplinary area concerned with protecting the safety, health and welfare of people engaged in work or employment.

8. Engineering controls: the term used in hazard control which involves changing a piece of machinery or work process.

9. Personal protective equipment (PPE): the term used to call any piece of equipment which is used to protect the different parts of the body such as ears and eyes such as respirators, face mask, face shield, gloves, boots, etcetera.

10. Administrative controls: this is a form of hazard control which involves manipulation of worker/employee’s schedule and job rotation.

The interprets the data while it is in RAM​

Answers

Answer:

The input interprets the data while it is in RAM.

Explanation:

Direction: Put a check (/)mark if the statement is
correct and Irofessional. Letter W if it is incorrect.

Answers

Explanation:

Xghhdghxhdhzhhzshh, hdhshxxx

When numbers are changed in cells that are involved in formulas, the formulas are automatically
changed
highlighted
O removed
recalculated

Answers

When numbers are changed in cells that are involved in formulas, the formulas are automatically
changed
highlighted
O removed
recalculated
removed

I think it is O removed

PLEASE HELP Due Today

Match the term with one of its characteristics.

1. Automation software that enables servers to be provisioned automatically or with a few clicks of a mouse.

2. Log managers read your system logs and look for patterns and make reports.

3. Created an elastic infrastructure that expanded and contracted as demand changed.

cloud

maintain security

data center​

Answers

The matchup are:

1. Created an elastic infrastructure that expanded and contracted as demand changed -cloud2. Log managers read your system logs and look for patterns and make reports.- Maintain security 3. Automation software that enables servers to be provisioned automatically or with a few clicks of a mouse-data center​

What is the software  about?

The  Cloud computing is one that gives a form of elastic infrastructure that gives room for on-demand allocation as well as deallocation of resources.

Lastly  Log managers are known to be computer tools that tends to read system logs as well as look for patterns in the data to see security threats.

Learn more about software   from

https://brainly.com/question/28224061

#SPJ1

Who you think is better? Ninja or TFue ,btw do you know who icebear is?

Answers

Answer:

no, no i dont think i will.

Explanation:

Complete the sentence

-------- are technologies support virtual communities and the sharing of content with friends and family.

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct answer to this question is: Online community technologies.

So, we can fill this question with the correct option as below:

Online community technologies are technologies that support virtual communities and the sharing of content with friends and family.

As we know that online community technologies are those technologies where people of the same group or interest make community virtually online. Where they can share their contents such as pictures, videos, thaught, ideas, etc with the group or family members.

There are different technologies that support virtual communities to share content with friends and family.

Such as Zoom meetings, Sk ype, Face book, Insta gram etc.

Answer:

Taking the quiz rn and I put social media

Explanation:

Social media is the closest description to this however it may be collaborative tools if it’s not social media.

PLEASE HELP asap 60 POINTS
needs to be in Java

A programmer has written a method called replaceLetter that counts the amount of times a letter is present in a word. Your job is to modify this existing method to fulfill a new purpose.

Rather than count the instances of a letter in a String, write a program that replaces all instance of one letter with another. You should directly modify replaceLetter to get this program to work. In the starter code, replaceLetter only has two parameter values. Your new version should have a third parameter to indicate which String value is replacing the existing letter.

For example,

replaceLetter("hello", "l", "y")
returns

"heyyo"
Sample output:

Enter your word:
hello

Enter the letter you want to replace:
l

Enter the replacing letter:
x
hexxo
Hint: The letters will be assigned from the user as String values. Make sure to use String methods to compare them!

Answers

import java.util.Scanner;

public class JavaApplication45 {

   public static String replaceLetter(String txt, String txt1, String txt2 ){

       char one = txt1.charAt(0);

       char two = txt2.charAt(0);

       String newTxt = "";

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

           char c = txt.charAt(i);

           if (c == one){

               newTxt += two;

           }

           else{

               newTxt += c;

           }

       }

       return newTxt;

   }

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter your word:");

       String word = scan.nextLine();

       System.out.println("Enter the letter you want to replace:");

       String txt1 = scan.next();

       System.out.println("Enter the replacing letter:");

       String txt2 = scan.next();

       System.out.println(replaceLetter(word,txt1,txt2));

   }

   

}

I hope this helps!

Linux is a powerful and free OS®️
-True
-False

Answers

Answer:

TRUEE

Explanation:

It’s is true that Linux is powerful and free

Select the correct answer from the drop-down menu.
Chrissie shirks the additional work given to her.
She lacks the trait of

Answers

Answer:

Responsibility

Explanation:

Hi! Is anyone really good at making pretty schedules and designs? I don't have any money, but I could give points. I'll give a small number of points on this answer, but if you make the schedule I'll give you lots of points! (I'll send you the actual parts of the schedule I just need someone to make it look pretty) Thank you so much!

Answers

Could I see what you would like it to look like?

how to take a pic with a cumputer

Answers

Answer:

Ctrl+Shift+4

Explanation:

Answer:

Use Snip+Sketch on your taskbar

It looks like this~

Which of the following would be used to communicate an idea or concept visually? podcast transcript building design speech
A.Podcast
B.Transcript
C.Building design
D.Speech

Answers

C, building design. Its the only visual one, the rest have to do with speaking/listening.

Answer:

C. building design

Explanation:

I did the test

4.5 code practice edhesive

Answers

Answer:

n= input("Please enter the next word: ")

x=1

while(n != "STOP"):

 print("#" + str(x) + ": You entered " + n)

  x=x+1

  n= input("Please enter the next word: ")

print("All done. " + str(x-1) + " words entered.")

Explanation:

PLEASE HELP!!
Computer networks allow computers to send information to each other. What is the term used to describe the basic unit of data passed from one computer to another?


message


package


packet


transmission

Answers

Answer:

Paquete de red o paquete de datos es cada uno de los bloques en que se divide la información para enviar, en el nivel de red. Por debajo del nivel de red se habla de trama de red, aunque el concepto es análogo. En todo sistema de comunicaciones resulta interesante dividir, la información a enviar, en bloques de un tamaño máximo conocido. Esto simplifica el control de la comunicación, las comprobaciones de errores, la gestión de los equipos de encaminamiento (routers), etcétera.

Al igual que las tramas, los paquetes pueden estar formados por una cabecera, una parte de datos y una cola. En la cabecera estarán los campos que pueda necesitar el protocolo de nivel de red; en la cola, si la hubiere, se ubica normalmente algún mecanismo de comprobación de errores.

Explanation:spero  teyaudee

Answer:

Packet

Explanation:

A data packet is the precisely formatted unit of data that travels from one computer to another.

(Confirmed on EDGE)

I hope this helped!

Good luck <3

The Monroe Doctrine promised that the United States would:
A. not accept new colonies in the Americas.
B. cut itself off from nearly all foreign trade.
C. send its military to defend all new democracies.
D. take a more active role in European affairs.​

Answers

Answer:A

Explanation:

The Monroe Doctrine promised that the United States would not accept new colonies in the Americas. The correct option is A.

What is Monroe Doctrine?

The Monroe Doctrine is the most well-known example of US policy toward the Western Hemisphere.

The doctrine, buried in President James Monroe's routine annual message to Congress in December 1823, warns European nations that the United States will not tolerate further colonization or puppet monarchs.

Although initially ignored by Europe's great powers, the Monroe Doctrine eventually became a cornerstone of US foreign policy.

President James Monroe of the United States declared the United States to be the protector of the Western Hemisphere in 1823, prohibiting European powers from colonizing additional territories in the Americas.

The doctrine's three main concepts separate spheres of influence for the Americas and Europe, non-colonization, and non-intervention were intended to mark a clear break between the New World and Europe's autocratic realm.

Thus, the correct option is A.

For more details regarding Monroe Doctrine, visit:

https://brainly.com/question/290388

#SPJ5

define reading and writing that regards storage​

Answers

Answer:

Reading and writing on computers and other gadgets require storage.

HOPE THIS HELPS

HAPPY THANKSGIVING

Other Questions
please answer it brainlest DUE TODAYAfter reading the "Storytelling and Cultural Traditions" article, tell me the author's purpose AND the central idea. Please explain your answers.*Article can be read from the attached class slides (All are included in the full article, not individual articles). what has a higher melting point KBr or CH3CH2CH2CH3 Choose the mathematical sentence that most accurately expresses theinformation in the problem, and would be most helpful in solving it.After taking 4 pieces of fruit out of a bag, 12 pieces of fruit remained. Howmany pieces of fruit were in the bag to start?A. f: 4 = 12B. 12 - 4 = fC. 12 : f= 4D. f-4 = 12E. 4 + f = 12F. 12 + f = 4 In a three-tier architecture, the component that runs the program code and enforces the business processes is the:_______. iron chloride + sodium hydroxide If a pair of shoes was 25% off and the original price was $80 how much is the amount of the discount? Your study space does not need to be quiet as long as you can ignore any noise coming from the space true or false? Use the following image to answer the question.Flowchart with 3 boxes. The first one is empty, the second one has Circuit Court of Appeals and the third one has U.S. Supreme Court.Which of the following labels completes the chart? County court U.S. District Court Florida Circuit Court General Court of Appeal Tommy bought a total of 30 apples and oranges for a classic picnic. Apple's cost $3 per pound and oranges cost $4 per pound. Tommy spent $100 total. How many apples and oranges did Tommy buy? Can someone pls tell me if Im right I will mark brainliest The polygons are similar. Find the value of X and Y Can someone please tell me how to get women? Solve for x. Round your answer to two decimal places. Show your work for full credit. Graph the line that passes through the point (4,1) and is parallel to the line y= 1/2x + 6please :) translate the following sentences to Spanish using idioms with tener. You (informal) are hungry. _____________________He is sleepy. _____________________They (male) are lucky. _____________________I feel like swimming. _____________________She is thirsty. _____________________I am 16 years old. _____________________We are successful. _____________________He is hot. _____________________You(formal) have to run. _____________________The children are incorrect. _____________________I am afraid. _____________________We are cold. _____________________Thats you! (50 points) Suppose the light pattern from a fog light can be modeled by the equation x^2/25 - y^2/9=1. One of the points on the graph of this equation is at (6, 3 sqrt 11/5), and one of the x-intercepts is -5. Which coordinate is not a point on the graph? Based on the data shown in the graph, how many hours will it take the shipping company to pack 180 boxes "The Balek Scales" can be viewed as an allegory forA) the elusiveness of justice in the modern world.B) the winning power of truth even in the most corrupt society.C) the resourcefulness and honesty of children.D) the power that a single person can have to change the world. What is 13/19 as a decimal rounded to the nearest hundredth An article reported on a school district's magnet school programs. Of the qualified applicants, were accepted, were waitlisted, and were turned away for lack of space. Find the relative frequency for each decision made and write a sentence summarizing the results.