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 1

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!")


Related Questions

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

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

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

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));

 }

}

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 is his resolution amount

Answers

I think it’s 92 I mean yh

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!

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

(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;

 }

}


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
Other Questions
Write the slope-intercept form of the equation foreach graph described.Line passing through (-2,-8) and (9,-8) True or false? Nearly every southern state of the old Confederacy had rejected the federal woman suffrage amendment. PLZZ ANSWER THE QUESTION Given the points: (-2, 0) and (4,8) find the slope Students can easily make mistakes when simplifying radicals, list 2 of these common mistakes, and explain how to fix these mistakes. (20)III. MANDATOS DE UD. y UDS.: Llene el espacio en blanco con el mandato apropiado: ej. ESTUDIEN (estudiar) Uds. los mandatos de Ud. y Uds.1. __________ (Escuchar)Uds. los anuncios del peridico, y _____________ (hacerlo)Uds. con cuidado.2. No________________ (servirnoslo) Ud. personalmente. _____________ (decirle) Ud. esto, por favor, a la camarera.3. ______________ (sentarse) Uds. aqu. No ____________ (ir) Uds. a la oficina.4. No________________ (sacar)Ud. el telfono mientras comemos.No_____________ (jugar) Uds. los video-juegos ahora.5. ____________(pensar) Ud. bien. ____________ (saber)Ud. lo que tiene que hacer.(20)IV. EL PRESENTE DEL SUBJUNTIVOIndica el presente de subjuntivo de estos verbos:ej. Alquilar, beber, vivir: que yo alquile, beba, viva1. que t CONDUCIR ______________2. que l TRAER _______________3. que nosotros TRADUCIR________________4. que ellos JUGAR__________________5. que ustedes EMPEZAR ___________________6. que yo ir ___________________7. que t or ____________________8. que yo PARECER __________________9. que nosotras VOLVER ____________________10. que Uds. pagar _________________________(20)V. EL SUBJUNTIVO CON VERBOS DE INFLUENCIA Y CAMBIO DE SUJETO, y CON EXPRESIONES IMPERSONALES Y CAMBIO DE SUJETO:Completa cada oracin con la forma correcta del verbo entre parntesis.ej. Te sugiero que nosotros HABLEMOS con la maestra.1. Le pedimos que ella _____________ (SALIR) de aqui.2. Quiere que yo__________ (CONDUCIR) a la reunin.3. Te aconsejo que t no______________ (EXPLICAR) nada.4. Les recomiendo que Uds. ______________ (DESCANSAR).5. El doctor le manda que Ud. ___________(TOMAR) la pastilla (pill).6. El quiere_______________ (TERMINAR) su tarea.7. Te sugiero que t______________ (PASAR) la aspiradora.8. Nos ruegan que nosotros _______________(LEER) el documento.9. No queremos que Uds. _____________ (HABLAR) al official.10. Prefiero que t ______________ (VIAJAR) a Cuba.(3.5) VI. PREGUNTA ESCRITA: CONTESTAR UNA ORACIN COMPLETA:ej.Adnde quiere tu familia que t vayas para las vacaciones?_________________________________________________________________________________________________(3.5)VII. PREGUNTA ORAL: CONTESTAR POR ESCRITA:ej. Quin prefieres que sustituya a John Lewis ahora?______________________________________________________________________________________________ Mother to son by Langston Hughes the first line of the poem is important because it establishes A( the setting B( the conflict C( the theme D( the speaker and audience If you could change one thing in the world what would it be?1 Paragraph The first column of the periodic table is called the A triangle has the vertices A (-2, 4), B (-2,-2), and C (2,-2). If the triangle undergoes a dilation and has new vertices A' (-1, 2), B'(-1,-1), and C' (1, -1), what is the scale factor?A) 1/2B) -1/2C) 2D) -2 Which social class benefited the most from feudalism? It cost Samantha $4.23 to send 47 text messages. How much does each text cost to send? At the local banking institution the branch manager doubles as the IT "go-to" by handling printer setups, resettingLAN passwords, and periodically monitoring the branchs server health. Last week she noted that a handful of herbranchs customers complained about suspicious activity in their checking accounts. She knew that the main branchwould handle it and repair any fraudulent charges. She also knew better than to bother the main branch with these customer complaints because the main branch is always ahead of things like this and quickly reminds her that they seewhat she does. Her only response, therefore, was to assure her customers that their accounts would be repaired withinten business days.The most likely law or regulation that becomes an issue upon her discovery i:__________.a. The Gramm-Leach-Bliley Acts Safeguards Ruleb. The Good Samaritan Lawc. Section 404 of the Sarbanes-Oxley Actd. The FTCs Red Flags Rule Please help brainiest!! If 1 and 2 are complementary, m1 = (8x-6), and m2 = (14x+8)URGENT PLEASE HELP is 13.48 irrational or rational? find the value of x - PLEASE HELPI need to show my work - Thank you!! What is the smallest unit ? Is toxic chemical pollution a nonpoint source pollution or a point source pollution? I need an actual answer. Select whether the sentence below is a simple, compound, complex or compound-complex sentence.David's nephew, Joab, was able to unlock the city gates at night when he swam through the tunnel.a.Simplec.Compound-Complexb.Compoundd.ComplexPlease select the best answer from the choices providedABCD