answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sweet-ann
3 months ago
15

A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output i

s the miles walked.
Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('{:.2f}'.format(your_value))

Ex: If the input is:

5345
the output is:

2.67
Computers and Technology
1 answer:
ivann1987 [1K]3 months ago
5 0

Response:

steps = int(input("Specify the number of steps: "))

miles = steps / 2000

print('{:.2f}'.format(miles))

Explanation:

Prompt the user to input the number of steps and convert the input to an integer.

Compute the corresponding miles by dividing the number of steps by 2000.

Output the miles formatted to two decimal places.

You might be interested in
Su now wants to highlight several inventors in her presentation, so she decides to use the underline color option.
Harlamova29_29 [1022]

Answer:

1. The home tab

2. Font group

3. The small arrow at the bottom right of the font command group.

4. Under "Font" heading (then "All text" subheading)

Explanation:

This explanation will guide Su in completing her task.

1. Navigate to the home tab;

2. From the home tab, Su will access a variety of command groups, but for her needs, she requires the Font command group.

3. A tiny arrow can be found at the bottom left of the font command group section; clicking it will unveil the font dialogue.

4. Within the font dialogue, there are two headings. The "font" heading and the "character spacing" heading.

For her purposes, she must focus on the "Font" heading, which includes various subheadings. To reach the underline color option, she needs to select the "All text" subheading.

Refer to the attached image for guidance.

7 0
2 months ago
For any element in keysList with a value greater than 50, print the corresponding value in itemsList, followed by a space. Ex: I
ivann1987 [1066]

Answer:

import java.util.Scanner;  //as referenced in the prompt.

public class ArraysKeyValue {  //as mentioned in the prompt.

public static void main (String [] args) {  //as stated in the prompt.

final int SIZE_LIST = 4; //as indicated in the prompt.

int[] keysList = new int[SIZE_LIST]; //as specified in the prompt.

int[] itemsList = new int[SIZE_LIST]; //as outlined in the prompt.

int i; //as identified in the prompt.

keysList[0] = 13; //as mentioned in the prompt.                                

keysList[1] = 47; //as stated in the prompt.

keysList[2] = 71; //as described in the prompt.

keysList[3] = 59; //as referenced in the prompt.

itemsList[0] = 12; //as mentioned in the prompt.

itemsList[1] = 36; //as stated in the prompt.

itemsList[2] = 72; //as specified in the prompt.

itemsList[3] = 54;//as indicated in the prompt.

// additional line needed to finalize the solution is as follows--

for(i=0;i<(keysList.length);i++) //Loop to access each element of keysList array variable.

    {// open for loop braces

        if(keysList[i]>50) // compare the values of keysList array variable with 50.

        System.out.println(itemsList[i]); // print the value

   }// close for loop braces.

}//  close main function braces.

} //close class braces.

Output:

72

54

Explanation:

In the resolution section--

  1. A single loop is engaged that iterates from 0 to (size-1) of the 'keyslist' array.
  2. The 'if' statement checks whether the 'keyslist' array's element exceeds 50 or not.
  3. If it does, the respective 'i' indexed item from the item_list array is printed as well, which corresponds to the higher value of the keyslist array element.

5 0
1 month ago
When handling project scope creep, which are two things that all parties involved need to be aware of?
zubka84 [1067]

Additional resources required for the projects

Added time necessary for the project

Clarification:

In any project management scenario, there will naturally be unexpected changes and additional needs, hence to successfully complete a project, one must allocate more time and resources. It is advisable that, based on the project specifics, the end user should maintain a sufficient buffer to accommodate any variations in human resources and the extra time necessary for project completion.

When planning the project, a consideration of extra time per each task is essential.

Every task within project management is categorized under distinct scopes of work.

3 0
2 months ago
A user calls the help desk and reports that the workstation, when powering up, displays error messages about an invalid system d
ivann1987 [1066]

Answer:

Option (A) is the correct choice.

Explanation:

The situation describes an invalid boot disk error occurring during startup, indicating that the system fails to recognize the hard disk necessary for booting.

MBR / GPT is the partition layout that holds the essential code for system startup. Occasionally, the partition files that contain this code may become corrupt, causing an invalid boot disk error during the boot process.

Therefore, the most fitting answer is option (A).

The remaining choices are incorrect for these reasons:

  • If the boot system malfunctions, it cannot produce an invalid boot disk error.
  • If the files of the operating system are corrupted, the error will pertain to missing files.
  • A device driver cannot influence the system's booting process.
5 0
2 months ago
Other questions:
  • In the Scrum board, prioritizing the issue backlog is done in the ———- mode.
    7·1 answer
  • The part of the computer that contains the brain, or central processing unit, is also known as the A.monitor B.modem C.keyboard
    10·1 answer
  • Suppose that a scheduling algorithm (at the level of short-term CPU scheduling) favors those processes that have used the least
    10·1 answer
  • Create a different version of the program that: Takes a 3-digit number and generates a 6-digit number with the 3-digit number re
    14·1 answer
  • 3. What is the error in the following pseudocode? // The searchName function accepts a string containing the name // to search f
    6·1 answer
  • The Online Shopping system facilitates the customer to view the products, inquire about the product details, and product availab
    8·1 answer
  • Under what category of programs and apps do databases and enterprise computing fall?
    8·1 answer
  • In order to write a successful algorithm, you must first be able to:
    11·1 answer
  • Which of the following image file formats uses lossy file compression?
    7·1 answer
  • When using the following symbol, there are two arrows coming out of it. One arrow corresponds to what happens in the program if
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!