Answer:
void shout(String w) {
System.print.out(w + "!")
}
Answer:
hours = 50
full_days = int(hours / 24)
print("The number of full days in " + str(hours) + " hours is " + str(full_days))
Explanation:
Initialize the hours
Since there are 24 hours in a full day, divide the hours by 24. Note that you need to typecast it to the int, because the result is a decimal value by default
Print the values as requested
Answer:
<em>Ethernet cables, Network Adapters, Modem, Routers, Switches.</em>
Explanation:
<em>The devices that are required in setting up a wired network for the 5 computer comprises of the following devices </em>
- <em>Ethernet Cables</em>
- <em>Network Adapters</em>
- <em>Modem/Router</em>
- <em>Network Switch</em>
<em>Ethernet cables: They are called network cables or RJ-45 cables used to in connecting two or more computers together. it has different categories called, the untwisted pair and twisted pair Ethernet, with a speed from 10-1000</em>
<em>Network Adapters : This adapters allows a computer device to connect and interface with a network computer</em>
<em>Modem/Routers : A router is a device that that sits in the middle between your local computers and modems. it takes receives information or gets information from the modem and delivers it to the computer</em>
<em>Network switch: it connects more than two computers together to a network and share data among themselves and other devices on the network</em>
Answer:
Following are the program in the Python Programming Language.
#set list type variable and initialize the elements
myPizza = ['Margarita', 'Capsicum and onion', 'Chicken']
#set variable and initialize the elements
frndPizzas = myPizza[:]
#append value in list variable
myPizza.append('Corn')
#append value in list variable
frndPizzas.append('paperica')
#print message
print("My pizzas are:")
#set the for loop and print elements of 1st list
for pizza in myPizza:
print(pizza)
#print message
print("\nFriend's pizzas are:")
#set the for loop and print elements of 2st list
for frndsPizza in frndPizzas:
print(frndsPizza)
<u>Output</u>:
My pizzas are:
Margarita
Capsicum and onion
Chicken Corn
Friend's pizzas are:
Margarita Capsicum and onion Chicken paperica
Explanation:
<u>Following are the description of the program</u>:
- Set a list data type variable that is 'myPizza' and initializes elements in it.
- Set another list data type variable that is 'frndPizzas' and initializes elements in it.
- Append one-one element in both of the list data type variables.
- Set the for loops to print the elements of both list data type variables.