Answer:
weight = float(input("Enter your weight in pounds: "))
height = float(input("Enter your height in inches: "))
weight = weight * 0.45359237
height = height * 0.0254
bmi = weight / (height * height)
print("Your BMI is: %.4f" % bmi)
Explanation:
*The code is written in Python.
Ask the user to enter weight in pounds and height in inches
Convert the weight into kilograms and height into meters using given conversion rates
Calculate the BMI using given formula
Print the BMI
Answer:
repeats an instruction while the Zero flag is set
Explanation:
hope this helps you :)
Answer:
All the ports in a hub are in the same collision domain and a hub sends frames from one host to all other hosts in the network. This makes it prone to collision and poor network throughput. Just like a network switch, it uses the CSMA/CD protocol to detect collision in its network.
A network switch reduces its collision domain to just a port and sends frames from one host to another using its mac table as a route. This makes the network very efficient with high throughput. It also uses the CSMA/CD protocol to detect collision
Explanation:
Switches and hubs are used in networking to connect computer devices in a network. A hub is an obsolete device networking that broadcast a frame to all other ports or host in the network except for the send host port. This increases the rate of collision as all the ports in a hub share the same collision domain. A switch is an efficient frame switching device in a network, which uses its MAC table to decide and find a destination host.
CSMA/CD is a collision detection protocol used in a network to detect and prevent a collision. With this protocol, a host is able to listen, wait, send and resend frames to prevent a collision.
Answer:
The answer is "Option d"
Explanation:
In this question, the easiest way that will save the payment on your database in such a process ID-sorting list would be to mark a payment, that's been recorded mostly on the database whenever this payment became used serial number is not transaction ID, and the wrong choice can be defined as follows:
- In choice a, It is wrong because it may be processed, however, payments aren't entered through our process, which does not help remove older.
- In choice b, the unordered list would not enable any transaction to only be retrieved, that's why it is wrong.
- In choice c, it will not be helpful because the includes video is either begin or complete the payment, it will not be helpful to hold it with transaction time.
- In choice e, this approach won't help to identify the payments since one date will have a lot of payments over a certain account.
Answer:
A)
This is an example of tight coupling since the class Working has to have an idea of how Person is implemented to complete its own implementation.
B)
Any change in the Person class would require a change in the working class too.
C)
CODE
class Person {
int personID, age;
String fName, middleName, lastName;
public int getAge() {
return age;
}
}
// end of Person class
class Working extends Person {
boolean isUnderEighteen() {
if (super.getAge() <18) {
System.out.println("The person is under age and cannot work");
return true;
}
else {
System.out.println("The person can legitimately work");
return false;
}
}
}
Explanation: