A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output is the miles walked. If the input is 5345, the output is 2.6725.

Answers

Answer 1

In python:

print(steps_walked / 2000)


Related Questions

the language is Java! please help

Answers

public class Drive {

   int miles;

   int gas;

   String carType;

   public String getGas(){

       return Integer.toBinaryString(gas);

   }

   public Drive(String driveCarType){

       carType = driveCarType;

   }

   public static void main(String [] args){

       System.out.println("Hello World!");

   }

   

}

I'm pretty new to Java myself, but I think this is what you wanted. I hope this helps!

5-5. Design an Ethernet network to connect a single client P C to a single server. Both the client and the server will connect to their workgroup switches via U T P. The two devices are 900 meters apart. They need to communicate at 800 M b p s. Your design will specify the locations of any switches and the transmission link between the switches.


5-6. Add to your design in the previous question. Add another client next to the first client. Both connect to the same switch. This second client will also communicate with the server and will also need 800 M b p s in transmission speed. Again, your design will specify the locations of switches and the transmission link between the switches.

Answers

Answer:

ok so u have take the 5 and put 6

Explanation:

5-5. Ethernet network design: UTP connections from client PC and server to workgroup switches, 900m fiber optic link between switches, 800 Mbps communication.

5-6. Additional client connects to the same switch, UTP connection, maintains existing fiber optic link, 800 Mbps communication with the server.

What is the explanation for this?

5-5. For connecting a single client PC to a single server, both located 900 meters apart and requiring communication at 800 Mbps, the following Ethernet network design can be implemented:

- Client PC and server connect to their respective workgroup switches via UTP.

- Use fiber optic cables for the 900-meter transmission link between the switches.

- Install switches at the client PC and server locations.

- Ensure that the switches support at least 1 Gbps Ethernet speeds to accommodate the required transmission speed.

5-6. In addition to the previous design, for adding another client next to the first client:

- Connect both clients to the same switch.

- Use UTP cables to connect the second client to the switch.

- Ensure the switch supports 1 Gbps Ethernet speeds.

- Maintain the existing fiber optic transmission link between the switches.

- The second client can also communicate with the server at the required 800 Mbps transmission speed.

Learn more about Network Design at:

https://brainly.com/question/7181203

#SPJ2

Which function is used to display a string value to the screen?
main[]
print()
run=
SHOW!

Answers

Answer:

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

Explanation:

in most programming languages, the print() function is used to display a string value to the screen. Because, the print function prints all the string given in it as a parameter.

for example: to print hello world.

we use the function to print hello world as print("hello world").

However, it noted that other options are not correct because the main() function is an entry point of a program and it does not print string value to the screen. while run and show function do not print string value of screen also.

Answer:

in python print()

B1:B4 is a search table or a lookup value

Answers

Answer:

lookup value

Explanation:

On what date was jschlatt originally added to the dreamsmp server, and on which date was his second appearance on the server?

Answers

since this has already been answered, who is your favorite SMP character?

mines Wilbur/ Ghostbur

some people will disagree with me but jshlatt is one of my favorite characters on the dream smp . But my all time favorite characters is ALL of Wilbur's characters

What are two examples of items in Outlook?

a task and a calendar entry
an e-mail message and an e-mail address
an e-mail address and a button
a button and a tool bar

Answers

Answer:

a task and a calendar entry

Explanation:

ITS RIGHT

Answer:

its A) a task and a calendar entry

Explanation:

correct on e2020

What is the maximum number of VLANs that can be configured on a switch supporting the 802.1Q protocol? Why?

Answers

Answer:

4096 VLANs

Explanation:

A VLAN (virtual LAN) is a group of devices on one or more LAN connected to each other without physical connections. VLANs help reduce collisions.

An 802.1Q Ethernet frame header has VLAN ID of 12 bit VLAN field. Hence the maximum number of possible VLAN ID is 4096 (2¹²).  This means that a switch supporting the 802.1Q protocol can have a maximum of 4096 VLANs

A lot of VLANs ID are supported by a switch. The maximum number of VLANs that can be configured on a switch supporting the 802.1Q protocol is 4,094 VLANS.

All the VLAN needs an ID that is given by the VID field as stated in the IEEE 802.1Q specification. The VID field is known to be of  12 bits giving a total of 4,096 combinations.

But that of 0x000 and 0xFFF are set apart. This therefore makes or leaves it as 4,094 possible VLANS limits. Under IEEE 802.1Q, the maximum number of VLANs that is found on an Ethernet network is 4,094.

Learn more about VLANs from

https://brainly.com/question/25867685

Plz answer me will mark as brainliest ​

Answers

Answer:

True

Operating System

Booting

(1) Prompt the user to enter a string of their choosing. Output the string.
Ex: Enter a sentence or phrase: The only thing we have to fear is fear itself. You entered: The only thing we have to fear is fear itself.
(2) Complete the GetNumOfCharacters() function, which returns the number of characters in the user's string. Use a for loop in this function for practice. (2 pts)
(3) In main(), call the GetNumOfCharacters() function and then output the returned result. (1 pt) (4) Implement the OutputWithoutWhitespace() function. OutputWithoutWhitespace() outputs the string's characters except for whitespace (spaces, tabs). Note: A tab is '\t'. Call the OutputWithoutWhitespace() function in main(). (2 pts)
Ex: Enter a sentence or phrase: The only thing we have to fear is fear itself. You entered: The only thing we have to fear is fear itself. Number of characters: 46 String with no whitespace: The only thing we have to fear is fear itself.

Answers

Answer:

See solution below

See comments for explanations

Explanation:

import java.util.*;

class Main {

 public static void main(String[] args) {

   //PrompT the User to enter a String

   System.out.println("Enter a sentence or phrase: ");

   //Receiving the string entered with the Scanner Object

   Scanner input = new Scanner (System.in);

   String string_input = input.nextLine();

   //Print out string entered by user

   System.out.println("You entered: "+string_input);

   //Call the first method (GetNumOfCharacters)

   System.out.println("Number of characters: "+ GetNumOfCharacters(string_input));

   //Call the second method (OutputWithoutWhitespace)

   System.out.println("String with no whitespace: "+OutputWithoutWhitespace(string_input));

   }

 //Create the method GetNumOfCharacters

   public static int GetNumOfCharacters (String word) {

   //Variable to hold number of characters

   int noOfCharactersCount = 0;

   //Use a for loop to iterate the entire string

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

     //Increase th number of characters each time

     noOfCharactersCount++;

   }

   return noOfCharactersCount;

 }

 //Creating the OutputWithoutWhitespace() method

 //This method will remove all tabs and spaces from the original string

 public static String OutputWithoutWhitespace(String word){

   //Use the replaceAll all method of strings to replace all whitespaces

   String stringWithoutWhiteSpace = word.replaceAll(" ","");

   return stringWithoutWhiteSpace;

 }

}

In Microsoft windows which of the following typically happens by default when I file is double clicked

Answers

Answer:

when a file is double clicked it opens so you can see the file.

Explanation:

Write a program that reads in 10 numbers from the user and stores them in a 1D array of size 10. Then, write BubbleSort to sort that array – continuously pushing the largest elements to the right side

Answers

Answer:

The solution is provided in the explanation section.

Detailed explanation is provided using comments within the code

Explanation:

import java.util.*;

public class Main {

//The Bubble sort method

public static void bb_Sort(int[] arr) {  

   int n = 10; //Length of array  

   int temp = 0; // create a temporal variable  

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

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

           if(arr[j-1] > arr[j]){  

               // The bubble sort algorithm swaps elements  

               temp = arr[j-1];  

               arr[j-1] = arr[j];  

               arr[j] = temp;  

             }  

         }            

         }  

        }

 public static void main(String[] args) {

   //declaring the array of integers

   int [] array = new int[10];

   //Prompt user to add elements into the array

   Scanner in = new Scanner(System.in);

   //Use for loop to receive all 10 elements

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

     System.out.println("Enter the next array Element");

     array[i] = in.nextInt();

   }

   //Print the array elements before bubble sort

   System.out.println("The Array before bubble sort");

   System.out.println(Arrays.toString(array));

   //Call bubble sort method

   bb_Sort(array);  

               

   System.out.println("Array After Bubble Sort");  

   System.out.println(Arrays.toString(array));

 }

}

A _____ is a smaller image of a slide.

template
toolbar
thumbnail
pane

Answers

I believe it is pane since a thumbnail is like a main photo or advertising photo kind of thing and template has nothing to do with a image as well as toolbar so the answer would be pane hope that helps :)
Other Questions
Simplify the expression.x+3+5x A large hamburger (e.g., Whopper) sandwich contains 628 kcal and 36 grams of fat. Approximately what percentage of the total energy is contributed by fat? [tex]8x^2 +y^2=10[/tex]find dy/dx Wetlands are natural parts of watershed systems. Wetlands provide benefits many benefits. Which of these is a way that wetlands directly benefit humans?- provide nesting grounds for birds- decrease erosion along shorelines- reduce flooding in adjacent towns- increase biodiversity near the ocean round 99,830to the nearest thousands Victor runs 3 laps around the track every 5 minutes. How many laps does Victor run in 1 minute? Describe in 2-4 sentences how you would select a function. Escoge la mejor opcin para completar la frase con la forma correcta del verbo cantar en el pasado. Choose the best option to complete the sentence with the correct past tense form of the verb cantar.Yo ________ el himno nacional en todos los partidos de ftbol americano en el colegio. For a beverage, Lisa mixes cups of lemonade to cups of iced tea in a ratio of 3:7. Which of the following best describes the amount of lemonade to iced tea? (4 points)Group of answer choicesFor every 3 cups of lemonade, there are 7 cups of iced tea.For every 3 cups of lemonade, there are 4 cups of iced tea.For every 7 cups of lemonade, there are 4 cups of iced tea.For every 7 cups of lemonade, there are 3 cups of iced tea Please help me thank you Why did Paul travel as a missionary? You are moving from the East to the Western frontier. You are to write 3 journal entries telling where you are going, why you are going there, and what do you hope to achieve. Read the excerpt from an adaptation of "To Build aFire."What is the central idea of the excerpt?The man is unobservant and fails to notice hissurroundings.The man is new to the area and does not knowanyone there.The man is practical, but he does not think carefullyabout his situation.The man knows how to dress for the weather, buthe forgot some supplies.But all this - the mysterious, far-reaching hair-line trail,the absence of sun from the sky, the tremendous cold,and the strangeness and weirdness of it all-made noimpression on the man. It was not because he wasused to it. He was a newcomer in the land, achechaquo, and this was his first winter. The troublewith him was that he was without imagination. He wasquick and alert in the things of life, but only in thethings, and not in the significances. He knew it wascold and uncomfortable, but the cold did not lead himto meditate upon his own frailty, or immortality, orman's place in the universe. Fifty degrees below zerostood for a bite of frost that hurt and that must beguarded against with mittens, ear-flaps, warmmoccasins, and thick socks. That there should beanything more to it than that was a thought that never entered his head. A. The man is unobservant and fails to notice his surroundings. B. The man is new to the area and does not know anyone there. C. The man is practical, but he does not think carefully about his situation. D. The man knows how to dress for the weather, but he forgot some supplies. GIVING BRAINLIEST PLS HELP 35 POINTSS rewrite the quadratic function f(x) = (2x -3)(x+4) in standard form Using these clues, make a quadilateral. Write the name and each side. What is the perimeter?1. rectangle with sides 7 feet2. 7feet3. 10 feet4. 10feet Determine Central Ideas In this passage, Paine explains why Britain cannot continue toA.be so far away from American colonies.B.operate businesses in the American colonies.C.govern the American colonies.D.expand the American colonies. List all subsets of the given set.B = {Lennon, McCartney}O {}, {Lennon}, {McCartney}O {}, {Lennon}, {McCartney}, {Lennon, McCartney}{}, {McCartney}, {Lennon, McCartney}{ }, {Lennon}, {Lennon, McCartney}{Lennon}, {McCartney}, {Lennon, McCartney}please help! Name the slope of a line parallel to y = -3x -2 Write a haikupoemexplainingwhy graphingis useful.If you areable, shareyour poemwith others. Frederick is training for a triathlon and wants to focus on swimming this week. He can swim 25 yards in 23 seconds. He set up a proportion to determine how long it would take him to swim 175 yards at this rate. Which proportions can be used to determine how long it would take him to swim 175 yards?