The distance a vehicle travels can be calculated as follows: distance = speed * time For example: If a train travels 40 miles per hour for 3 hours, the distance traveled is 120 miles.Write a program that asks the user for the speed of a vehicle (in miles per hour) and how many hours it has traveled. The program should use a loop to display the distance the vehicle has traveled for each hour of the time period.

Answers

Answer 1

Answer:

In Python:

speed = float(input("Speed: (mile/hr): "))

time = int(input("Time: (hr): "))

for hour in range(1,time+1):

    distance = speed * hour

    print("Distance: "+str(speed)+"*"+str(hour)+" = "+str(distance))

Explanation:

This prompts the user for speed in mile/hr

speed = float(input("Speed: (mile/hr): "))

This prompts the user for time in hr

time = int(input("Time: (hr): "))

This iterates through the input time

for hour in range(1,time+1):

This calculates the distance covered in each hour

    distance = speed * hour

This prints the distance covered in each hour

    print("Distance: "+str(speed)+"*"+str(hour)+" = "+str(distance))


Related Questions

True or false: In relational databases, each individual space within a row or column contains exactly one value.

Answers

Answer:

True.

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores. This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.

Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.

A relational database can be defined as a type of database that is structured in a manner that there exists a relationship between its elements.

Hence, in relational databases, each individual space within a row or column contains exactly one value.

please help me please help me.​

Answers

Answer:

dont know man thanks for points tho

but it is 209

Explanation:

What is the difference between a programming language and natural (every-day) language?

Answers

Natural languages are used for communication between people

If an insurance policy covers individual losses up to $10,000 and has a deductible of
$500, the insured will be paid how much in the event of a covered loss of $5,000?

Answers

Answer: $4500

Explanation:

The deductible is the amount that the insured that is, the policy holder will have to pay. In this case, there is a covered loss of $5000 and the insured has a deductible of $500.

Therefore, the amount that the insured will be paid will be the difference between $5000 and the deductible of $500. This will be:

= $5000 - $500

= $4500

Which are the steps in the process of creating a database

Answers

Answer:

Determine the purpose of your database. ...

Find and organize the information required. ...

Divide the information into tables. ...

Turn information items into columns. ...

Specify primary keys. ...

Set up the table relationships. ...

Refine your design. ...

Apply the normalization rules.

Answer:

identifying fieldnames in tables

defining data types for field names

Explanation:

sorry I'm late. future Plato users this is for you

discuss how sentiment analysis works using big data?

Answers

Answer:

sentiment analysis is the process of using text analytics to mine various of data for opinions. often sentiment analysis is done on the data that is collected from the internet & from various social media platforms.

java Elements in a range Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Assume that the list will always contain fewer than 20 integers. That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all integers from the list that are within that range (inclusive of the bounds). For coding simplicity, follow each output integer by a comma, even the last one. The output ends with a newline. Ex: If the input is: 5 25 51 0 200 33 0 50 then the output is: 25,0,33, (the bounds are 0-50, so 51 and 200 are out of range and thus not output). To achieve the above, first read the list of integers into an array.

Answers

Answer:

The program in Java is:

import java.util.Scanner;

public class MyClass {

   public static void main(String args[]) {

     Scanner input = new Scanner(System.in);

     int n;

     n = input.nextInt();

     int [] mylist = new int[n+1];

     mylist[0] = n;

     System.out.print("List elements: ");

     for(int i = 1;i<n+1;i++){

         mylist[i] = input.nextInt();

     }

     int min,max;

     System.out.print("Min & Max: ");

     min = input.nextInt();

     max = input.nextInt();

     

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

         if(mylist[i]>=min && mylist[i]<=max){

             System.out.print(mylist[i]+" ");

 }

}

   }

}

Explanation:

This line declares length of list

     int n;

This line gets length of list

     n = input.nextInt();

This line declares the list/array

     int [] mylist = new int[n+1];

This line initializes the element at index 0 to the length of the list

     mylist[0] = n;

This prompts user for elements of the list/array

     System.out.print("List elements: ");

The following iteration gets list elements

     for(int i = 1;i<n+1;i++){

         mylist[i] = input.nextInt();

     }

This declares the lower and upper bound (min, max)

     int min,max;

This line prompts user for elements of the list/array

     System.out.print("Min & Max: ");

This next two lines get the bound of the list/array

     min = input.nextInt();

     max = input.nextInt();

The following iteration prints the elements in the range

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

         if(mylist[i]>=min && mylist[i]<=max){

             System.out.print(mylist[i]+" ");

 }

}

what security issues could result if a computer virus or malware modifies your host file in order to map a hostname to another IP address

Answers

Answer:

Man-in-the-middle attack

Explanation:

In this type of attack, the hacker uses the virus or malware to get and change his IP address and hostname to match the address and hostname of the target host computer. The allows the hacker to gain access to information sent to the target IP address first.

NEED HELP 100 POINTS FOR ANSWER AND BRAINIEST!!! Which comparison operator is used to signify that a value is not equal to another value?
<>
<<
>=
=

Answers

Answer:

We use SQL Not Equal comparison operator (<>) to compare two expressions. For example, 10<>11 comparison operation uses SQL Not Equal operator (<>) between two expressions 10 and 11

Explanation:

<> operator is used to signify that a value is not equal to another value , Option A is the correct answer.

What are Comparison Operators ?

An operator used to compare or relate the value of two number or string is called a Comparison operator.

The value of 0 or 1 is returned on using Comparison Operators.

<> , Not equal to operator signifies that the value are either greater than or less than the other value but not equal in any case.

Therefore <> operator is used to signify that a value is not equal to another value.

To know more about Comparison Operators

https://brainly.com/question/15260168

#SPJ2

Write a function called quadruple that quadruples a number and returns the result. Then make several calls to the quadruple function to test it out.

For example, if you made a call like

x = quadruple(3)
then x should hold the value 12.

Print the value of x to verify your function works correctly.

(CODEHS, PYTHON)

Answers

def quadruple(n):

   return n*4

print(quadruple(3))

print(quadruple(1))

print(quadruple(2))

I wrote my code in python 3.8. I hope this helps.

/kwɒdˈruː.pəl/ to increase by four times, or to multiply anything by four: In the past ten years, the college's enrolment has increased by a factor of four.

What is the role of quadruple that quadruples a number?

Finding the array's four maximum and four minimum components is another method for locating the quadruple with the highest product. And then supply the maximum of these three product values, which will result in a quadrupled maximum product.

When ordering a quadruple-shot latte, which contains four shots of espresso, you can also use the word quadruple to signify “four times as many.” The suffix quadric-, which means “four,” is the source of the Latin root quadruple, which means “create fourfold.”

Three address codes are also referred to as quadruples. Using pointers to entries in a symbol table as the operands and an enumerated type to represent the operations, quadruples can be accomplished.

Therefore, One operation and up to three operands are divided into four fields in a quadruple.

Learn more about quadruples here:

https://brainly.com/question/7966538

#SPJ2

list the difference between sdram and dram​

Answers

Answer:

i need this for a challenge

Explanation:

Statistics are often calculated with varying amounts of input data. Write a program that takes any number of non-negative integers as input, and outpu

Answers

Answer:

Explanation:

The following program is written in Java and is a function that asks the user for an input and keeps doing so until a negative value is entered, in which case it calculates the average and max values and prints it to the screen.

public static void average () {

                       int num;

                       int sum = 0;

                       Scanner in = new Scanner(System.in);

                       System.out.println("Enter Number");

                       num = in.nextInt();

                       int count = 0;

                       int max = 0;

                       while(num >= 0)

                       {

                               sum+=num;

                               System.out.println("Enter Number");

                               num = in.nextInt();

                               count++;

                               if(num>=max){

                                       max = num;

                               }

                       }

               System.out.println(sum/count);

               System.out.println(max);

               }

Answer:hi

Explanation:

please help me



Match the technology with the appropriate task.



1. graphics software

2. word processor

3. CAD

4. laptop

5. GPS​

Answers

Complete Question:

Match the technology with the appropriate task.

Column A

1. Graphics software

2. Word processor

3. CAD

4. Laptop

5. GPS

Column B

A. Create a company logo.

B. Get directions to a customer’s office.

C. Type a report.

D. Complete many types of tasks on a computer away from the office.

E. Design a building.

Answer:

1. A

2. C

3. E

4. D

5. B

Explanation:

1. Graphics software: it can be used to create a company logo. Some examples of software applications or programs are Adobe photoshop, Core-draw, illustrator etc.

2. Word processor: it is typically used for typing a text-based document. For instance, type a report. Some examples are notepad, Microsoft Word, etc.

3. CAD: design a building. CAD is an acronym for computer aided design used for designing the graphical representation of a building plan. An example is Auto-CAD.

4. Laptop: complete many types of tasks on a computer away from the office. A laptop is compact and movable, so it can be easily used in any location.

5. GPS: directions to a customer’s office. GPS is an acronym for global positioning system and it is typically used for locating points and directions of a place.

Answer:

1. A

2. C

3. E

4. D

5. B

Which 2 problems does the Pay down credit card workflow solve for clients? (Select all that apply) It helps clients stay on top of making payments on time It ensures that payments to credit card accounts are categorized correctly It provides a lower rate than most credit cards to qualified small businesses It uses language that non-accountants can understand

Answers

Answer:

B. It ensures that payments to credit card accounts are categorized correctly

D. It uses language that non-accountants can understand

Explanation:

Pay down credit card workflow is a new feature that makes entering records in QuickBooks easier for users. The two prime benefits of this workflow are;

1. It ensures that payments to credit card accounts are well categorized well. Without this feature, users most times find it difficult to enter records correctly or they tend to duplicate entries. This new feature obtains vital information that helps the software to correctly credit the accounts.

2. It uses language that non-accountants can understand. This simplifies the process and makes it easier for the user to enter the right data that would help the software to correctly credit the accounts.

Identify and give the application of the following operators.

(a) / (b) //​

Answers

Answer:

This answer depends on what language you're using, but in most languages, "//" is used to precede a one-line remark. "/" is used to divide a number by the other.  For example:

// this is a remark

var foo = x / y;

There are exceptions to both, although the / is almost universally used for division.  One exception would be assembly of course, I don't know if there are any higher level languages that don't use the slash.

What is the BCC feature used for?

to format email message text in a custom font
to format email message text in a blind font
to send a courtesy copy of an email to someone who does not need to take action
to send an email to someone without revealing that person’s email address to others on the distribution list

Answers

Answer:

to send an email to someone without revealing that person’s email address to others on the distribution list

Explanation:

BAM

To send an email to someone without revealing that person’s email address to others on the distribution list.

What is BCC?

"Blind carbon copy" is referred to as BCC. BCC is a similar method to CC for forwarding copies of an email to additional recipients. When CC is used, a list of recipients is shown; when BCC is used, a list of recipients is not visible.

Because the other receivers won't be able to see that the email has been forwarded to another person, it is known as a blind carbon copy.

Carbon copy is referred to as a "CC" in email communication. When there was no internet or email, you had to sandwich a piece of carbon paper between the paper you were writing on and the paper you wanted to use as your copy in order to make a copy of the letter you were writing.

Therefore, To send an email to someone without revealing that person’s email address to others on the distribution list.

To learn more about BCC, refer to the link:

https://brainly.com/question/29398332

#SPJ6

What are the top ten famous games in the U.S.

Why? cause I wanna know :D

Answers

Minecraft

Fortnite

Rob.lox

GTA V

Rocket league

League of legends

Mario bros

GTA

Among us

Call Of Duty

Fix the infinite loop so that it counts from 3 down to 1.public class Loop1{public static void main(String[] args){int x = 3;while (x > 0){System.out.println(x);}}}

Answers

Answer:

Include x-- right after the print statement

Explanation:

Given:

The above lines of code

Required

Edit to countdown from 3 to 1

The above code (as it is) prints 3 in infinite times. To make it countdown to 1, we simply include a decrement operation.

Initially, the value of x is 3: int x = 3;

And the condition is that the loop is to be repeated as long as x > 0

All we need to do is to include x-- right after the print statement.

This  operation will reduce the value of x on every iteration as long as the condition is true.

Hence, the complete code is:

public class Loop1{

   public static void main(String[] args){

       int x = 3;

       while (x > 0){

           System.out.println(x);

          x--;

       }}}

The illegal copying of program​

Answers

Answer:Software piracy

Explanation:

A counter is ?

A. used only outside of the loop

B. none of the above

C. a variable used in a loop to count the number of times an action is performed

D. A person with a pen and paper

Answers

Answer: In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship to a clock. The most common type is a sequential digital logic circuit with an input line called the clock and multiple output lines.

The ______ clause allows us to select only those rows in the result relation of the ____ clause that satisfy a specified predicate.

Answers

Answer:

1. Where,

2. From

Explanation:

In SQL query language when working on a database, a user can use certain clauses to carry out some functions.

Hence, The WHERE clause allows us to select only those rows in the result relation of the FROM clause that satisfy a specified predicate.

This is because the "Where clause" selects the rows on a particular condition. While the "From clause" gives the relation which involves the operation.

Which is an example of a technology that has changed the safety of humans?
A) a bicycle

B) a window

C) a rope

D) a baseball bat

Answers

Answer:

B

Explanation:

because they have added more protection from breaking window to keep people safe such as if there were a lot of layers of city

1.in 3 sentences explain briefly what are the examples of the advantage of using multimedia approach in a slide presentation brainly​

Answers

Multimedia Presentations is very essential in making slide presentation because:

it makes the presentation colorfulIt is often purpose driven andIt challenges one and all listeners to think creatively

Some advantages of Multimedia includes

Oresentations made are concise, rich and makes one to develop confidence in language skills.They captivate audience to visualize what is been taught.

Multimedia agent includes video podcasts, audio slideshows etc. The use of the multimedia in presentation is also very good and user-friendly. It doesn't take much energy out of the user, in the sense that you can sit and watch the presentation,

Conclusively, It uses a lot of the presenters senses while making use of multimedia such as hearing, seeing and talking.

Learn more from

https://brainly.com/question/19286999

Which of the following terms best describes the product development life cycle process?
descriptive
iterative
Static
evaluative

Answers

Answer:

D

Explanation:

Evaluative

. Else-if is good selection statement that help us to solve problems in C++,mostly times same problem of same nature can also be solved via switch statement. Which one you prefer to use and why?

Answers

Answer:

Else-If statements

Explanation:

Personally, I prefer using Else-If statements for conditional statements since you can start with and If statement and add to it if necessary. Aside from this, Else-If statements also allow you to add more than one condition to be met by using tags such as and or and not. Switch statements are better in scenarios where you have a set of possible inputs or results and need a specific event to happen for each input/result, but this is not as common of a scenario so Else-If is usually my go-to conditional statement.

Universal Container wants to understand all of the configuration changes that have been made over the last 6 months. Which tool should an Administrator use to get this information

Answers

Answer:

Set up audit trail

Explanation:

The administrator should set up an audit trail in order to get this information.

An audit trail would give him the record of all the configuration changes that have been made in a file or a database in the last 6 months.

Audit trails can be manual or electronic. It provides history and also documentation support. It can authenticate security and also help to mitigate challenges.

Which of the following methods can be used to solve the knapsack problem?

a. Brute Force algorithm
b. Recursion
c. Dynamic programming
d. All of the mentioned

Answers

Answer: D. All of those mentioned

Explanation:

The knapsack problem is a problem that typically occurs in combinatorial optimization and is also a 2D dynamic programming example.

We should note that all the methods given in the option such as recursion, brute force algorithm and dynamic programming can all be used to solve knapsack problem.

Therefore, the correct answer is D.

What will the output of the statements below? System.out.println(9%2); System.out.println(12%6); The output of the first statement is * The output of the second statement is​

Answers

Answer:

You get Exact 30 print of that sentence on a comadore 64

Explanation:

Just simple basic science. hope this helps

The _____ Tag surrounds all content that will be visible on your web page for all to users to see on that website.

Answers

Answer:

The body tag

Explanation:

HTML has several tags; however, the tag that handles the description in the question is the body tag.

It starts with the opening tag <body> and ends with closing tag </body>

i.e.

<body>

[Website content goes in here]

</body>

Any text, image, object etc. placed within this tag will be displayed in the website

How many minutes are there from 8:00 am to 1:00 pm?

Answers

Well it’s 5 hours so you take 5 times 60m for each hour and you get 300m

Answer:300 minutes

Explanation:

from 8 to 1 is 5 hours so you do 5*60= 300

Other Questions
Next Question!!? Help please... Pls help Im bad at math no matter how much I try Select the correct answer.Read the following editorial letter.Dear Citizens of Triston,As a concerned citizen of Triston and a member of the North Carolina Conservation of Nature Council, I am asking for the community'shelp with a serious issue. First, I want to congratulate our town's mayor and city council for planning to build a new community theater.However, do they realize that building the theater on Asbury Woodlands will destroy the prime breeding ground for an endangeredspecies?The Bachman's warbler is a small, green-and-yellow bird about four inches in length. Since 1897, the population of the Bachman'swarbler in North Carolina has decreased from more than 500,000 to fewer than 100. The main reason is the destruction of the areas (likeAsbury Woodlands) that the bird uses for its natural breeding grounds. Bachman's warblers prefer thickly wooded swamps and wetthickets in full-grown forests. It's there that they build their nests and feed on insects.This fact does not mean that we cannot build a community theater. We simply must consider building it in a slightly different location.After all, our community has forever prided itself on caring for our natural surroundings. The city council's honorable concern for theendangered Bachman's warbler would smooth the ruffled feathers of many voters. With the council's help and the support of ourtownspeople, future generations will appreciate the beauty of this little bird.Sincerely,Redmond HarrisWhich statement best captures the main argument of the letter? QuestionUnder ideal conditions, the population of a certain species doubles every nine years. If the population startswith 100 individuals, which of the following expressions would give the population of the species t years afterthe start, assuming that the population is living under ideal conditions? I need this by tomorrow! please help me, I'm desperate. I dont understand it well. Which choice BEST summarizes the author's comparison of flyingboats to floatplanes?A)Floatplanes are larger than flying boats and havefloats under their wings for stability.B)Flying boats are floatplanes that have two tongfloats, tatted pontoons, under the fuselageC)Flying boats are larger than floatplanes, and unlikefloatplanes, the entire fuselage can float.D)Flying boats come in a variety of sizes, are morestable on water and have wheels to drive on land. Which of these other South American countries would you expect to have a natural resource of fish? A. Bolivia B. Paraguay C. Ecuador If water was removed from a plant's environment what would happen to the plant's glucose production? (BRAINLIEST)Which is an example of the force of attraction between two objects that have mass? Magnetism Gravity Solar energy Electricity(BRAINLIEST) PLEASE HELP ASAP!!!!!!!!!!!!Which shared psychological traits can advertisers use to influence buying decisions? (Select all correct answers.)1. the need for belonging2. empathy toward others3. natural curiosity4. the desire to be remembered M/8-15=-12What would m equal?? Samuel deposits $100 in a high-interest account that has an interest rate of 10% compounded annually. Samuel decides to neither add to nor withdraw money from the account for the next 10 years. How much will be in his account in 3 years? How long will it take to accumulate $61 in interest? Complete all questions.What was the main purpose of the Mayflower Compact?What was the main motivation for the settlement of the Plymouth Colony, Maryland, and Pennsylvania?Why were Africans changed from initially being indentured servants to slaves?The purpose of the Join or Die flag (created by Ben Franklin in 1750).The Albany Plan of Union called for doing what with the 13 colonies?The proclamation line of 1763 did what to the relationship between the crown and those living in the colonies?Even though they declared independence, the debate over what lasted into the 1800s?Why were colonial boycotts so effective?In the war for independence the first major fighting was at ___________ and ___________. The last major battle was at ___________ Virginia.What was the major achievement of the government under the articles of confederation?How does the judicial branch check the legislative branch?Checks and balances were put in the constitution for what reason?Why did delegates of the constitutional convention (1787) write a new constitution?What was the 3/5s compromise?What came from the whiskey rebellion? What did it show?In Washingtons farewell address, he advocated for what (regarding foreign policy)?What was controversial about the Alien and Sedition acts?The Louisiana purchase was important to America because?Why was the Embargo act bad for America?Lewis and Clark were tasked with exploring the new lands and creating what?What happened between Aaron Burr and Alexander Hamilton?After the War of 1812 America started protecting whom?During the War of 1812, what did the British do to the White House?What General became famous for standing up at the Battle of New Orleans and leading the USA to a decisive victory over Great Britain?Why did some feel the Missouri compromise would deepen sectional tensions?Andrew Jackson went to war over all of the following issues except-Nullification crisis, bleeding kansas, war with the Bank of the US (BUS), Indian Removal ActWhat was the trail of tears?The Seneca Falls Convention, which took place in 1848, focused largely on what?What was the name of the old mission that Davy Crockett and other Texans used as a fort against the Mexican military?The Mexican-American War added land which increased sectional issues, how?The primary cause of the Mexican-American War was land/border disputes and the annexation of what territory?The primary goal of manifest destiny was?What did the Fugitive Slave Act do?How did Dred Scott V. Sanford (1857) increase sectional tension?What was John Browns role in bleeding kansas?How was the 1860 presidential election a turning point in American history?Lincoln wanted to first and foremost preserve the ________________?How did the signing of the emancipation proclamation help prevent Britain and France from helping the confederacy?What was the turning point of the Civil War?Who was John Wilkes Booth and what did he do? Can someone please help ASAP What motivated Nelson Mandela to fight for freedom in South Africa? 1. Who pays more money in taxes?1)The middle class.2)The more money you make, the more you pay in taxes.3)The less money you make, the more you pay in taxes.4) The poor. Last week, Laura volunteered at the community clean-up event and earned 2 patches for her scout uniform. She spent 4 minutes sewing the patches onto her uniform. This week, Laura spent the week at the scout camp and earned another 6 patches.If Laura sews at the same rate, how many minutes will she spend sewing her new patches onto her uniform? Using definite and Indefinite articles, fill the blanks:Indefinite: Un, una, unos, unasDefinite: la, el, los , lasExamples.Using definite articles. Filling the blanks:_ caja_ Lapicero_ museos _ abueloExamples.Using indefinite articles. Fill in the blanks:_ ta_ hermano_ playas_ zapato On July 1, 2016, Killearn Company acquired 110,000 of the outstanding shares of Shaun Company for $14 per share. This acquisition gave Killearn a 25 percent ownership of Shaun and allowed Killearn to significantly influence the investee's decisions. As of July 1, 2016, the investee had assets with a book value of $5 million and liabilities of $620,000. At the time, Shaun held equipment appraised at $308,000 above book value; it was considered to have a seven-year remaining life with no salvage value. Shaun also held a copyright with a five-year remaining life on its books that was undervalued by $1,208,000. Any remaining excess cost was attributable to goodwill. Depreciation and amortization are computed using the straight-line method. Killearn applies the equity method for its investment in Shaun. Shaun's policy is to declare and pay a $1 per share cash dividend every April 1 and October 1. Shaun's income, earned evenly throughout each year, was $591,000 in 2016, $634,400 in 2017, and $682,400 in 2018. In addition, Killearn sold inventory costing $98,400 to Shaun for $164,000 during 2017. Shaun resold $117,000 of this inventory during 2017 and the remaining $47,000 during 2018. Determine the equity income to be recognized by Killearn during each of these years. Compute Killearn's investment in Shaun Company's balance as of December 31, 2018. Dwight is selling flowers and candles for a school fundraiser. Flowers, x, sell for $7 for a bouquet, and candles, y, sell for $5. each. If he wants to sell at least $200 worth of flowers and candles, which inequality represents the situation where he sells x flowers and y candles?A: 7x + 5y 200C: 7x + 5y 200D: 7x + 5y 200Please explain why the right answer choice is correct. Thanks.