Adjust list by normalizing When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be done by normalizing to values between 0 and 1, or throwing away outliers. For this program, adjust the values by subtracting the smallest value from all the values. The input begins with an integer indicating the number of integers that follow. Assume that the list will always contain fewer than 20 integers. Ex: If the input is: 5 30 50 10 70 65 the output is: 20 40 0 60 55 The 5 indicates that there are five values in the list, namely 30, 50, 10, 70, and 65. 10 is the smallest value in the list, so is subtracted from each value in the list. For coding simplicity, follow every output value by a space, including the last one.

Answers

Answer 1

Answer:

Written in Python

inp = int(input("Length: "))

num = []

num.append(inp)

for i in range(1,inp+1):

    userinp = int(input("Input: "))

    num.append(userinp)

smallest = num[1]

for i in range(1,len(num)):

    if smallest > num[i]:

         smallest = num[i]

for i in range(1,len(num)):

    num[i] = num[i] - smallest

for i in range(1,len(num)):

    print(num[i],end=' ')

Explanation:

I've added the full program as an attachment where I used comments as explanation


Related Questions

Write code that prints: Ready! numVal ... 2 1 Start! Your code should contain a for loop. Print a newline after each number and after each line of text Ex: numVal

Answers

Answer:

Written in Python

numVal = int(input("Input: "))

for i in range(numVal,0,-1):

    print(i)

print("Ready!")

Explanation:

This line prompts user for numVal

numVal = int(input("Input: "))

This line iterates from numVal to 1

for i in range(numVal,0,-1):

This line prints digits in descending order

    print(i)

This line prints the string "Ready!"

print("Ready!")

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

In python:

print(steps_walked / 2000)

Walter The Dog is hot
(This was a waste of 37 points lol)

Answers

Answer:

no

Explanation:

mabey yes

Lol the dog looks funny

Which of the following is NOT a period of the Middle Ages?
Early Middle Ages
O Late Middle Ages
O High Middle Ages
O New Middle Ages
allowing is NOT an artifact of the Information Age?

Answers

High middle ages is the answer

The one that is not a period of the Middle Ages is the High Middle Ages. The correct option is c.

What are different ages?

The Middle Ages, which roughly correspond to the years 500 to 1400–1500 BCE, is the term used to describe this time of European history. The phrase was initially used by academics in the 15th century to refer to the time frame between their own era and the dissolution of the Western Roman Empire.

The period between the fall of Imperial Rome and the start of Early Modern Europe is referred to as the “Middle Ages” for this reason. The reason the Middle Ages are known as the Dark Ages is that life was hard and brief in Europe, and contrasted with the orderliness of classical antiquity.

The time period in European history from roughly 500 AD to 1500 AD. This time period's early years are commonly referred to as the Dark Ages.

Therefore, the correct option is c, High Middle Ages.

To learn more about the middle ages, refer to the link:

https://brainly.com/question/26586178

#SPJ6

21. Duplicating a layer merges all of the layers and discards anything that is
not visible. True or False
True
False

Answers

the answer is false. Because it just makes a copy, including all parts of the program.
The answer is false

What is the missing line of code? >>> sentence = "Programming is fun!" 'gr O sentence[2:6] sentence[3:5] sentence[3:6] sentence[2:5]​

Answers

Answer: not sentence [3:6]

I hope this helps

Explanation:

Create a class named Invoicing that includes three overloaded computeInvoice() methods for a book store: see pages 196 for examples… The 8% tax should be defined as a constant.
1. When computeInvoice() receives a single parameter, it represents the price of one book ordered. Add 8% tax and display the total due.
2. When computeInvoice() receives two parameters, they represent the price of a book and the quantity ordered. Multiply the two values, add 8% tax, and display the total due.
3. When computeInvoice() receives three parameters, they represent the price of a book, the quantity ordered, and a coupon value. Multiply the quantity and price, reduce the result by the coupon value, and then add 8% tax and display the total due.
Create a driver class named TestInvoice with a main() method that tests all three overloaded methods using the following data: Price $24.95 Price, $17.50, quantity 4, Price $10.00, quantity 6, coupon $20.00 Output printed to Eclipse Console:
Price $26.95
Price $76.95
Price $43.20

Answers

Answer:

Follows are the method to this question:

class Invoicing  //defining a class Invoicing  

{

  public static final double Tax = 8.0; //defining static variable Tax that holds a value

  public static double Total;//defining a double variable Total

  public void computeInvoice(double p1)//defining method computeInvoice that take double parameter

  {

      Total = p1 + p1 * (Tax / 100);//defining double variable Total that holds Price value

      System.out.printf("Price $%.2f\n" , Total);//print calculated value

  }

  public void computeInvoice(double p2, int q)//defining method computeInvoice that takes integer and double parameter

  {

      Total = p2 * q;//use Total variable that calculate Price with Tax

      Total = Total + (Total * (Tax/ 100));//calculate taxes on Total

      System.out.printf("Price $%.2f\n" , Total);//print calculated value

  }  

  public void computeInvoice(double p3, int q, double c)//defining method computeInvoice that takes one integer and two-double parameter  

  {

      Total = p3 * q;//use Total to calculate Total price

      Total = Total - c;//remove coupon amount from Total amount

      Total = Total + (Total * (Tax/ 100));//calculate taxes on Total

      System.out.printf("Price $%.2f\n" , Total);//print calculated value

  }

}

public class TestInvoice  //defining Main class TestInvoice  

{

  public static void main(String[] ar)//defining main method  

  {

      Invoicing  obm = new Invoicing ();//creating Invoicing class object obm

      obm.computeInvoice(24.95);//calling method computeInvoice

      obm.computeInvoice(17.5, 4);//calling method computeInvoice

      obm.computeInvoice(10, 6, 20);//calling method computeInvoice

  }

}

Output:

please find attached file.

Explanation:

In the above-given code, a class "Invoicing" is defined, inside the class two static double variable "Total and Tax" is defined, in which the Tax variable holds a value that is "8.0".

In class three same method, "computeInvoice" is used that accepts a different parameter for providing method overloading, which can be defined as follows:

In the first method, it accepts a single double parameter "p1", and inside the method, it uses the "Total" variable to calculate price value.In the second method, it accepts one integer and one double parameter "q and p2", and inside the method, it uses the "Total" variable is used to calculate the price with tax and print its value.In the third method, it accepts one integer and two double parameters "q, p3, and c", and inside the method, it uses the "Total" variable is used to calculate the price with tax and include tax and print its value.In the next step, the main class "TestInvoice" is defined inside the main method, Invoicing object is created and call its method.

c Assign to maxSum the max of (numA, numB) PLUS the max of (numY, numZ). Use just one statement. Hint: Call FindMax() twice in an expression.

Answers

Answer:

maxSum = FindMax(numA, numB) + FindMax(numY, numZ);

Explanation:

In the statement, maxSum is a double type variable which is assigned the maximum of the two variables numA numB PLUS the maximum of the two variables numY numZ using which are found by calling the FindMax function. The FindMax() method is called twice in this statement one time to find the maximum of numA and numB and one time to find the maximum of numY numZ. When the FindMax() method is called by passing numA and numB as parameters to this method, then method finds if the value of numA is greater than that of numB or vice versa. When the FindMax() method is called by passing numY and numZ as parameters to this method, then method finds if the value of numY is greater than that of numZ or vice versa. The PLUS + sign between the two method calls means that the resultant values returned by the FindMax() for both the calls are added and the result of addition is assigned to maxSum. The screenshot of program along with its output is attached.

What is a small device that connects to a computer and acts as a modem

Answers

Answer:

Dongle

Explanation:

a small device that connects to a computer and acts as a modem. broadband. internet connection with fast data-transfer speeds and an always-on connection. cable internet service.

Suppose one machine, A, executes a program with an average CPI of 1.9. Suppose another machine, B (with the same instruction set and an enhanced compiler), executes the same program with 20% less instructions and with a CPI of 1.1 at 800MHz. In order for the two machines to have the same performance, what does the clock rate of the first machine need to be

Answers

Answer:

the clock rate of the first machine need to be 1.7 GHz

Explanation:

Given:

CPI of A = 1.9

CPI of B = 1.1

machine, B executes the same program with 20% less instructions and with a CPI of 1.1 at 800MHz

To find:

In order for the two machines to have the same performance, what does the clock rate of the first machine need to be

Solution:

CPU execution time = Instruction Count * Cycles per Instruction/ clock rate

CPU execution time = (IC * CPI) / clock rate

(IC * CPI) (A) / clock rate(A) =  (IC * CPI)B / clock rate(B)

(IC * 1.9) (A) / clock rate(A) = (IC * (1.1 * (1.0 - 0.20)))(B) / 800 * 10⁶ (B)

Notice that 0.20 is basically from 20% less instructions

(IC * 1.9)  / clock rate = (IC * (1.1 * (1.0 - 0.20))) / 800 * 10⁶

(IC * 1.9)  / clock rate =  (IC*(1.1 * ( 0.8))/800 * 10⁶

(IC * 1.9)  / clock rate =  (IC * 0.88) / 800 * 10⁶

clock rate (A) =  (IC * 1.9) / (IC * 0.88) / 800 * 10⁶

clock rate (A) =  (IC * 1.9) (800 * 10⁶) /  (IC * 0.88)

clock rate (A) = 1.9(800)(1000000)  / 0.88

clock rate (A) =  (1.9)(800000000)  / 0.88

clock rate (A) = 1520000000  / 0.88

clock rate (A) = 1727272727.272727

clock rate (A) = 1.7 GHz

4.3 Code Practice: Question 2
Write a program that uses a while loop to calculate and print the multiples of 3 from 3 to 21. Your program should print each number on a separate line.

(Python)

Answers

i = 3

while i  <= 21:

   if i % 3 == 0:

       print(i)

   i += 1

       

The required program written in python 3 is as follows :

num = 3

#initialize a variable called num to 3

multiples_of_3 = []

#empty list to store all multiples of 3

while num <=21 :

#while loop checks that the range is not exceeded.

if num%3 == 0:

#multiples of 3 have a remainder of 0, when divided by 3.

multiples_of_3.append(num)

#if the number has a remainder of 0, then add the number of the list of multiples

num+=1

#add 1 to proceed to check the next number

print(multiples_of_3)

#print the list

Learn more :https://brainly.com/question/24782250

CAN SOMEONE PLEASE HELP, I WILL GIVE BRAINLIEST (If that helps) (50 points is also available)

Sorry for re-uploading, I am just desperate to fix this.

How on earth do I fix my computer charger port?
Alright, so for anyone thinking it's a virus or it won't turn on, it's not that. So my computer has had a problem with batteries. I have bought two different chargers, none of those worked. I left the computer alone for a year, charged it for hope, and it worked. Upon further inspection, I looked at the charging port and found that the four metal things that go into the charger and pretty much give it the power were somewhat bent. Like, not bent bent, like when you fold paper, but all over the place. I tried watching videos to help, and they require buying a new motherboard or something like that. Is there a way to fix this for free? Like, a way to put the pings/pongs (idk the word) back together for free? If I can have someone give a step-by-step guide on how to fix this, I would appreciate it. I have had this problem since around 2017. Idk if this can motivate anyone but I could also offer a brainliest for the first person to help. Also, I don't know if this helps, but the computer/laptop Is an HP Touchscreen, not the ones that fold into tablets though.

If you have any questions about the matter, please comment it. If you don't have anything to help, don't waste an answer choice for points, I really want this to be fixed.

Thank you for your time.

Answers

Answer:

its perfect

Explanation:

You've been hired by Maple Marvels to write a C++ console application that displays information about the number of leaves that fell in September, October, and November. Prompt for and get from the user three integer leaf counts, one for each month. If any value is less than zero, print an error message and do nothing else. The condition to test for negative values may be done with one compound condition. If all values are at least zero, calculate the total leaf drop, the average leaf drop per month, and the months with the highest and lowest drop counts. The conditions to test for high and low values may each be done with two compound conditions. Use formatted output manipulators (setw, left/right) to print the following rows:________.
September leaf drop
October leaf drop
November leaf drop
Total leaf drop
Average leaf drop per month
Month with highest leaf drop
Month with lowest leaf drop
And two columns:
A left-justified label.
A right-justified value.
Define constants for the number of months and column widths. Format all real numbers to three decimal places. The output should look like this for invalid and valid input:
Welcome to Maple Marvels
------------------------
Enter the leaf drop for September: 40
Enter the leaf drop for October: -100
Enter the leaf drop for November: 24
Error: all leaf counts must be at least zero.
End of Maple Marvels
Welcome to Maple Marvels
------------------------
Enter the leaf drop for September: 155
Enter the leaf drop for October: 290
Enter the leaf drop for November: 64
September leaf drop: 155
October leaf drop: 290
November leaf drop: 64
Total drop: 509
Average drop: 169.667
Highest drop: October
Lowest drop: November
End of Maple Marvels

Answers

Answer:

#include <iostream>

#iclude <iomanip>

#include <algorithm>

using namespace std;

int main(){

int num1, num2, num3,  

int sum, maxDrop, minDrop = 0;

float avg;

string end = "\n";

cout << " Enter the leaf drop for September: ";

cin >> num1 >> endl = end;

cout << "Enter the leaf drop for October: ";

cin >> num2 >> endl = end;

cout << "Enter the leaf drop for November: ";

cin >> num3 >> endl = end;  

int numbers[3] = {num1, num2, num3} ;

string month[3] = { "September", "October", "November"}

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

 if (numbers[i] < 0) {

   cout << "Error: all leaf counts must be at least zero\n";

   cout << "End of Maple Marvels\n";

   cout << "Welcome to Maple Marvels";

   break;

 } else if (number[i] >= 0 ) {

     sum += number[i] ;  

   }

}

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

 cout << month[i] << " leaf drop: " << numbers[i] << endl = end;

}

cout << "Total drop: " << sum << endl = end;  

cout << setprecision(3) << fixed;

cout << "Average drop: " << sum / 3<< endl = end;

maxDrop = max( num1, num2, num3);

minDrop = min(num1, num2, num3);

int n = sizeof(numbers)/sizeof(numbers[0]);

auto itr = find(number, number + n, maxDrop);

cout << "Highest drop: "<< month[ distance(numbers, itr) ] << endl = end;

auto itr1 = find(number, number + n, minDrop);

cout << "Lowest drop: " << month[ distance(numbers, itr1) ] << endl = end;

cout << "End of Maple Marvels";

Explanation:

The C++ source code above prompts for user input for three integer values of the leaf drop count through the September to November. The total drop, average, minimum and maximum leaf drop is calculated and printed out.

Compare and contrast between flowcharts that involve:
-simple logic flow and

-simple logic flow with a two way branch

Answers

Answer:

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

Explanation:

The solution to this question is given in the attached word file.  

What are the benefits of computer?

Answers

Answer:

online toutoring.

helpful games give mind relaxation.

Increase your productivity. ...
Connects you to the Internet. ...
Can store vast amounts of information and reduce waste. ...
Helps sort, organize, and search through information. ...
Get a better understanding of data. ...
Keeps you connected.

Write a program, weeklypay.m, that asks an employee to enter their hourly rate and the number of hours they worked for the week. Then have the program calculate and display their weekly pay. pay

Answers

Answer:

Follows are the code to this question:

def weeklypay(hour_rate,hour ):#defining a method weeklypay that accepts two parameters

   pay=hour_rate* hour#defining variable pay that calculate payable amount

   return pay#return pay value

hour_rate=float(input("Enter your hour rate $: "))#defining variable hour_rate that accepts rate vlue

hour=int(input("Enter total hours: "))#defining hour variable that accepts hour value

print('The total amount you will get $: ',weeklypay(hour_rate,hour))#call method and print return value

Output:

Enter your hour rate $: 300

Enter total hours: 3

The total amount you will get $:  900.0

Explanation:

In the above-given code, a method "weeklypay" is declared, which holds two value "hour_rate and hour" in its parameter, inside a method a "pay" variable is declared, that calculate the total payable amount of the given inputs and return its value.

In the next step, the above variable is used to input the value from the user-end and uses the print method to call the "weeklypay" method and print its return value.

Using the Multiple-Alternative IFTHENELSE Control structure write the pseudocode to solve the following problem to prepare a contract labor report for heavy equipment operators: The input will contain the employee name, job performed, hours worked per day, and a code. Journeyman employees have a code of J, apprentices a code of A, and casual labor a code of C. The output consists of the employee name, job performed, hours worked, and calculated pay. Journeyman employees receive $20.00 per hour. Apprentices receive $15.00 per hour. Casual Labor receives $10.00 per hour.

Answers

Answer:

1. Start

2. Input Name, Jobs, Hours, Code

3. If Code == 'J' then

3.1 Pay = 20.00 * Hours

4. Else if Code == 'C' then

4.1 Pay = 15.00 * Hours

5. Else if Code == 'A' then

5.1 Pay = 10.00 * Hours

6. Output Name, Job, Hours, Pay

Explanation

This line starts the Pseudocode

1. Start

This line gets user inputs

2. Input Name, Jobs, Hours, Code

The following if and else statement determine the pay

3. If Code == 'J' then

3.1 Pay = 20.00 * Hours

4. Else if Code == 'C' then

4.1 Pay = 15.00 * Hours

5. Else if Code == 'A' then

5.1 Pay = 10.00 * Hours

This line prints the required output

6. Output Name, Job, Hours, Pay

Create a TeeShirt class for Toby’s Tee Shirt Company. Fields include:

orderNumber - of type int size - of type String color - of type String price - of type double Create set methods for the order number, size, and color and get methods for all four fields. The price is determined by the size: $22.99 for XXL or XXXL, and $19.99 for all other sizes. Create a subclass named CustomTee that descends from TeeShirt and includes a field named slogan (of type String) to hold the slogan requested for the shirt, and include get and set methods for this field.

Answers

Answer:

Here is the TeeShirt class:

public class TeeShirt{  //class name

   private int orderNumber;  // private member variable of type int of class TeeShirt to store the order number

   private String size;  // to store the size of tshirt

   private String color;  //  to store the color of shirt

   private double price;  // to store the price of shirt

   public void setOrderNumber(int num){  //mutator method to set the order number

       orderNumber = num;     }    

   public void setColor(String color){  //mutator method to set the color

       this.color = color;        }      

       

     public void setSize(String sz){  //mutator method to set the shirt size

   size = sz;  

   if(size.equals("XXXL") || size.equals("XXL")){  //if shirt size is XXL or XXXL

       price = 22.99;  // set the price to 22.99 if shirt size is XXL or XXXL

   }else{  //for all other sizes of shirt

       price = 19.99;     }  }  //sets the price to 19.99 for other sizes

   public int getOrderNumber(){  //accessor method to get the order number stored in orderNumber field

       return orderNumber;     }  //returns the current orderNumber

   public String getSize(){  //accessor method to get the size stored in size field

       return size;     }  //returns the current size

   public String getColor(){  //accessor method to get the color stored in color field

       return color;     }  //returns the current color

   public double getPrice(){  //accessor method to get the price stored in price field

       return price;      }  } //returns the current price

Explanation:

Here is the sub class CustomTee:

public class CustomTee extends TeeShirt {  //class CustomTee that inherits from class TeeShirt

private String slogan;   //private member variable of type String of class CustomTee to store slogan

public void setSlogan(String slgn) {  //mutator method to set the slogan

slogan = slgn; }

public String getSlogan() {  //accessor method to get the slogan stored in slogan field

return slogan;}  } //returns the current slogan

Here is DemoTees.java

import java.util.*;

public class DemoTees{  //class name

public static void main(String[] args)  {  //start of main method

TeeShirt tee1 = new TeeShirt();  //creates object of class TeeShirt named tee1

TeeShirt tee2 = new TeeShirt(); //creates object of class TeeShirt named tee2

CustomTee tee3 = new CustomTee(); //creates object of class CustomTee named tee3

CustomTee tee4 = new CustomTee();  //creates object of class CustomTee named tee4

tee1.setOrderNumber(100);  //calls setOrderNumber method of class TeeShirt using object tee1 to set orderNumber to 100

tee1.setSize("XXL");  //calls setSize method of class TeeShirt using object tee1 to set size to XXL

tee1.setColor("blue");  //calls setColor method of class TeeShirt using object tee1 to set color to blue

tee2.setOrderNumber(101);  //calls setOrderNumber method of class TeeShirt using object tee2 to set orderNumber to 101

tee2.setSize("S");  //calls setSize method of class TeeShirt using object tee2 to set size to S

tee2.setColor("gray");  //calls setColor method of class TeeShirt using object tee2 to set color to gray

tee3.setOrderNumber(102);   //calls setOrderNumber method of class TeeShirt using object tee3 of class CustomTee to set orderNumber to 102

tee3.setSize("L");  //calls setSize method of class TeeShirt using object tee3 to set size to L

tee3.setColor("red");  //calls setColor method of class TeeShirt using object tee3 to set color to red

tee3.setSlogan("Born to have fun");  //calls setSlogan method of class CustomTee using tee3 object to set the slogan to Born to have fun

tee4.setOrderNumber(104);  //calls setOrderNumber method of class TeeShirt using object tee4 of class CustomTee to set orderNumber to 104

tee4.setSize("XXXL");  //calls setSize method to set size to XXXL

tee4.setColor("black");  //calls setColor method to set color to black

tee4.setSlogan("Wilson for Mayor");  //calls setSlogan method to set the slogan to Wilson for Mayor

display(tee1);  //calls this method passing object tee1

display(tee2);  //calls this method passing object tee2

displayCustomData(tee3);  //calls this method passing object tee3

displayCustomData(tee4);  }   //calls this method passing object tee4

public static void display(TeeShirt tee) {  //method display that takes object of TeeShirt as parameter

System.out.println("Order #" + tee.getOrderNumber());  //displays the value of orderNumber by calling getOrderNumber method using object tee

System.out.println(" Description: " + tee.getSize() +  " " + tee.getColor());  //displays the values of size and color by calling methods getSize and getColor using object tee

System.out.println(" Price: $" + tee.getPrice()); }  //displays the value of price by calling getPrice method using object tee

public static void displayCustomData(CustomTee tee) {  //method displayCustomData that takes object of CustomTee as parameter

display(tee);  //displays the orderNumber size color and price by calling display method and passing object tee to it

System.out.println(" Slogan: " + tee.getSlogan());  } } //displays the value of slogan by calling getSlogan method using object tee

In this exercise we have to use the knowledge in computational language in JAVA to write the following code:

We have the code can be found in the attached image.

So in an easier way we have that the code is

public class TeeShirt{  

  private int orderNumber;

  private String size;  

  private String color;

  private double price;  

  public void setOrderNumber(int num){  

      orderNumber = num;     }    

  public void setColor(String color){  

      this.color = color;        }  

    public void setSize(String sz){  

  size = sz;  

  if(size.equals("XXXL") || size.equals("XXL")){  

      price = 22.99;  

  }else{

      price = 19.99;     }  }

  public int getOrderNumber(){  

      return orderNumber;     }

  public String getSize(){  

      return size;     }  

  public String getColor(){  

      return color;     }  

  public double getPrice(){

      return price;      }  }

public class CustomTee extends TeeShirt {  

private String slogan;  

public void setSlogan(String slgn) {

slogan = slgn; }

public String getSlogan() {

return slogan;}  }

import java.util.*;

public class DemoTees{

public static void main(String[] args)  {

TeeShirt tee1 = new TeeShirt();

TeeShirt tee2 = new TeeShirt();

CustomTee tee3 = new CustomTee();

CustomTee tee4 = new CustomTee();

tee1.setOrderNumber(100);  

tee1.setSize("XXL");  

tee1.setColor("blue");  

tee2.setOrderNumber(101);

tee2.setSize("S");  

tee2.setColor("gray");  

tee3.setOrderNumber(102);  

tee3.setSize("L");

tee3.setColor("red");  

tee3.setSlogan("Born to have fun");  

tee4.setOrderNumber(104);  

tee4.setSize("XXXL");  

tee4.setColor("black");  

tee4.setSlogan("Wilson for Mayor");  

display(tee1);  

display(tee2);

displayCustomData(tee3);

displayCustomData(tee4);  }  

public static void display(TeeShirt tee) {  

System.out.println("Order #" + tee.getOrderNumber());

System.out.println(" Description: " + tee.getSize() +  " " + tee.getColor());  

System.out.println(" Price: $" + tee.getPrice()); }

public static void displayCustomData(CustomTee tee) {

display(tee);  

System.out.println(" Slogan: " + tee.getSlogan());  } }

See more about JAVA at brainly.com/question/18502436

Read the following code:


n = 3

while(n <= 5):

print(n)

n = n + 1


What output would be produced for the given values of n?


A. 0 1 2 3 4

B. 1 2 3 4 5

C. 2 3 4

D. 3 4 5

Answers

The code will print out 3 4 5

Answer choice D is correct.

The output that would be produced for the given values of n is 3 4 5. The correct option is D.

What are codes?

Codes Program is a free developer platform where programmers can learn and share their knowledge. It is regarded as the simplest application development method, and it is frequently used as the standard (method).

Fixing code well into the software program because they discovered an error while composing the program, then he will modify the program, and then they will fix it again.

Less formally, code refers to text written for markup or styling languages such as HTML and CSS (Cascading Style Sheets). Good code is written in such a way that it is readable, understandable, covered by automated tests, not overly complicated, and does the job well."

Therefore, the correct option is D. 3 4 5.

To learn more about codes, refer to the below link:

https://brainly.com/question/14461424

#SPJ2

Write a program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD, the application should display 555-438-3663.

Answers

In python:

number = input("Enter a 10-character phone number: ")

for i in number:

   if i.isalpha():

       if i == "A" or i == "B" or i == "C":

           i = "2"

       elif i == "D" or i == "E" or i == "F":

           i = "3"

       elif i == "G" or i == "H" or i == "I":

           i = "4"

       elif i == "J" or i == "K" or i == "L":

           i = "5"

       elif i == "M" or i == "N" or i == "O":

           i = "6"

       elif i == "P" or i == "Q" or i == "R" or i == "S":

           i = "7"

       elif i == "V" or i == "T" or i == "U":

           i = "8"

       elif i == "W" or i == "X" or i == "Y" or i == "Z":

           i = "9"

   print(i, end="")

I hope this helps!

Code:

def phonenumber():

alpha = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']

n =[2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9]

phone = input('Enter phone number in format of XXX-XXX-XXXX : ').upper()

index = 0

for index in range(len(phone)):

if phone[index].isalpha():

print (n[alpha.index(phone[index])], end = ' ')

else:

print (phone[index], end = ' ')

phonenumber()

Compilation output is attached below:

Learn More:https://brainly.com/question/15687460

A Windows user is locked out of her computer, and you must log into the local administrator account HelpdeskAdmin. Which would you use in the username field?

Answers

Answer: .\HelpdeskAdmin

Explanation:

If you wanted to log in as the local administrator then for the Username put a dot (.) and a backslash (\) in front of the Admin username.

The dot(.) will ensure that Windows knows that you are logging into a local computer as the administrator and so will grant you access. The relevant username therefore is, ''.\HelpdeskAdmin''.

I will use  .\HelpdeskAdmin as the username field.

What is a username field?

The username-field is known to be a kind of command that is said to specifies the value for the name that shows the characteristics in the login form and it is one that identifies the username field.

Note that the use of the .\HelpdeskAdmin as the username field is the right thing to do as the dot(.) will make sure that the Windows knows that the user is logging into a computer as the administrator.

Learn more about  local administrator from

https://brainly.com/question/14364696

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


A____server translates back and forth between domain names and IP addresses.
O wWeb
O email
O mesh
O DNS

Answers

Answer:

DNS

Explanation:

Hope this helps

DNS I thin hope that helps

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

Consider a multiprocessor CPU scheduling policy. There are 2 options: 1) a singlecommon ready queue of jobs; when a CPU becomes free, the job atthe head of the queuegoes to this free CPU. 2) a ready queue for each CPU; the arriving job joins the shortestqueue. In general, do you expect the common queue or the shortest queue policy to performbetter. Justify.

Answers

Explanation:

A ready queue is more adequate since in this method the load balancing occurs in a proper way. The goal of multiple processing is the correct distribution of load.

But in the cases when a processor is doing quicker or taking a smaller queue, it will self assign processes allotted for execution, configuring it with a constant busy state.

802.11ac provides an advantage over 802.11n by incorporating increased channel bonding capabilities. What size bonded channels does 802.11ac support?

Answers

Answer:

The 802.11ac wireless standard takes channel bonding to a higher level because it can support 20MHz, 40MHz, and 80MHz channels, with an optional use of 160MHz channels.

Explanation:

The 802.11ac is a standardized wireless protocol established and accepted by the institute of electrical and electronics engineers (IEEE). 802.11ac as a wireless local area network (WLAN) protocol, has multiple amplitude and bandwidth, thus making it to be the first standard wireless protocol to have the ability to operate on a Gigabit (Gb) network.

Generally, the 802.11ac wireless standard provides an advantage over 802.11n by incorporating increased channel bonding capabilities. The 802.11ac wireless standard takes channel bonding to a higher level because it can support 20MHz, 40MHz, and 80MHz channels, with an optional use of 160MHz channels.

On the other hand, 802.11n is a standardized wireless protocol that can support either a 20MHz or 40MHz channel.

Write a Python code to ask a user to enter students' information including name,
last name and student ID number. The program should continue prompting the
user to enter information until the user enters zero. Then the program enters
search mode. In this mode, the user can enter a student ID number to retrieve
the corresponding student's information. If the user enters zero, the program
stops. (Hint: consider using list of lists)​

Answers

database = ([[]])

while True:

   first_name = input("Enter the student's first name: ")

   if first_name == "0":

       while True:

           search = input("Enter a student ID number to find a specific student: ")

           if [] in database:

               database.pop(0)

           if search == "0":

               exit()

           k = 0

           for w in database:

               for i in database:

                   if i[2] == search:

                       print("ID number: {} yields student: {} {}".format(i[2], i[0], i[1]))

                       search = 0

   last_name = input("Enter the student's last name: ")

   id_number = input("Enter the student's ID number: ")

   database.append([first_name, last_name, id_number])

I hope this helps!

My computer keeps shutting down I've tried to completely wipe the memory but it didn't work do you have any ideas how to fix it or what's happening?​

Answers

Answer:

You could have a bug, virus, or you might have been hacked the most I can tell you is try to contact a technician to check it and try to help you. It could also be a problem with your internet, maybe you hit your computer against something and it broke something inside, or it could be a technical glitch. I hop this helps! Good Luck fixing your computer!

Roger's camera battery had a short circuit, which caused a fire at his home. What could he have done to prevent this from happening? A left batteries in camera when not in use B. stored batteries with other metal objects c. kept batteries near a magnetic field D. removed the batteries from the camera​

Answers

Answer: D

Explanation: Because if he took the battery out it would not have short circuited.

Plz answer me will mark as brainliest ​

Answers

1 plus 1 is too and three to four is 111
Other Questions
A student wants to know which part of his local beach contains the most turtle nests during nesting season. He researches turtle nesting, makes a prediction to investigate based on his research and observations, and plans his experiment. He performs the experiment, and once his experiment is completed, he writes down his data and ends his study. What part of the scientific method is he missing from this investigation? . Calculate the cost of the raw material (Gilden) purchases by month and in total, for the third quarter. On January 1, 20X8, L Corporation acquired all of the common stock of S Company for $300,000. On that date, S Company's identifiable net assets had a fair value of $250,000. The assets acquired in the purchase of S are considered to be a separate reporting unit of L Corporation. The carrying value of S Company's net assets at December 31, 20X8, is $310,000. The fair value of the reporting unit is determined to be 260,000. Determine the amount, if any, of impairment loss to be recognized at December 31, 20X8. a. 40,000 b. 50,000 c. 10,000 d. 60,000 PLEASE ANSWER QUICKLY: (FIRST ANSWER GETS BRAINLIEST)When comparing financial institutions, price is an important factor. What is TRUE about prices in financial institutions?A. Interest rates on CD accounts are lower than on other types of accounts.B. Higher interest rates will give you a higher return on your money.C. It is illegal for financial institutions to have fees attached to checking accounts. What happens to the speed of sound as the temperature increases HEWP ME PWEASEamerican colonists who supported independence from britain and fought in both the siege of savannah and the battle of kettle creek.Which of the following does the above statement describe?a.loyalistsb.king's menc.patriotsd.tories What is a likely direct effect of a community program for local residents?A. lower education costsB. higher healthcare costsC. higher salariesD. improved safety for children Please help me this is my first assignment in math Read it!Many drivers use global positioning system (GPS) devices. These devices tell drivers where they are. They havecomputerized maps that show the position of the car. GPS devices can also give directions, Drivers can enter anaddress and drive to it from wherever they are located. They do not have to rely on bulky paper maps, thedevices used to be extremely expensive, Now, they are much more affordable, Many modern cell phones haveGPS services, too.Do It!The devices areconvenientB plainCawkwardDweakSubmitQuestion 3 Why does the skeletal system contain both immovable and movable joints? A. Immovable joints allow my bones to move; movable joints connect my bones. B. Immovable joints connect my bones; movable joints allow my bones to move. C. Both kinds of joints allow the skeletal system to store materials. D. Both kinds of joints allow the skeletal system to protect organs. What emotional encounter does Odysseus have while at the Land of the Dead. Why is this an emotional experience for him? What's the difference between enterprise and generic competion? A theme is the author's commentary on a particular subject.A.TrueB.False Which action is a way to best help remove the personal barrier of eating fast food? Skip eating a meal. Plan meals ahead of time. Purchase processed TV dinners.Eat meals in the car. what is the answer to 6y * 88 = 88 * 6y Explain why Edvard Munch's the scream is considered and expressionistic art work Evaluate 8 - m/n + p when m = 8, n = 2, p = 7.Correct answer will be marked brainliest!! 3- Cul es la probabilidad de que al escoger un nmero positivo de dos cifras, este seaprimo y termine en 3?O a) 1/15b) 2/90c) 6/91d) 9/90 How would you say "My cousins were getting along badly during the party"?A. Mis primos se llevaban mal durante la fiesta.B. Mis primos se llevan mal durante la fiesta.C. Mis primos llevaron mal durante la fiesta.D. Mis primos se llev mal durante la fiestaPlease explain it to me. Is it A? Natalie wants to grow it 4 in. Longer than it is now. She knows that hair grows at an average rate of 15 cm/year. How many more months will she wait to have her hair cut? (1 cm 0.39 in.) Question 1 First, you will need to convert the rate of 15 cm/year to inches per month. Which two conversion factors should you use? Select all correct answers.