Answer:
public class Clock
// create the class
{
private int hours;
// variable declaration of hours
private boolean isTicking;
// variable declaration of boolean
private Integer diff;
// variable declaration of diff
}
Explanation:
Following are the description of the above code
- Firstly create the class called To Create any class we use the keyword class followed by the class name.
- In the class, we declared three variable one type integer called " hours" The second is type boolean called "isTicking" and the last one is also integer called "diff".
- They all are three variables are private it means they are not accessible outside the class.
Answer:
Following are the answer to this question:
Explanation:
The following is the list of name devices, which is used home network or the school lab.
- hrtr01(home router 1).
- schadmrtr02(school building router 2).
- clpc01, and clpc02 (computer laboratory pc 1 and 2)
.
Uses:
- Its use as descriptive names as necessary without gives potential hacks much more relevant data.
- It provides only areas that are essential for both device identification.
- It allows the name for irrelevant or redundant information doesn't over-complicated.
Answer: Aggressive
Explanation:
Aggressive separation strategies are the technique that involves confrontation and intense feeling for separating something from others.
- This technique includes action like attacking, assaultive, confronting etc.for segregation.
- Co-culture segregation is separation of a subset of culture from large and major culture.In this culture, there can be more than two types of culture that are split forcefully through barrier.
- Thus, co-culture segregation uses the methodology of aggressive separation.
Answer:
name = []
price = []
for i in range(0,8):
item_name = input('name of item')
item_price = input('price of item')
name.append(item_name)
price.append(item_price)
for i in range(0, 8):
print(name[i], '_____', price[i])
Explanation:
Python code
Using the snippet Given :
Apples 2.10
Hamburger 3.25
Milk 3.49
Sugar 1.99
Bread 1.76
Deli Turkey 7.99
Pickles 3.42
Butter 2.79
name = []
price = []
#name and price are two empty lists
for i in range(0,8):
#Allows users to enter 8 different item and price choices
item_name = input('name of item')
item_price = input('price of item')
#user inputs the various item names and prices
#appends each input to the empty list
name.append(item_name)
price.append(item_price)
for i in range(0, 8):
print(name[i], '_____', price[i])
# this prints the name and prices of each item from the list.