Answer:
import java.util.Scanner;
class Main{
public static void main(String[] args){
double temp;
Scanner scan = new Scanner (System.in);
System.out.println("Enter the temperature, please: ");
temp= scan.nextDouble();
if (temp>=98.6){
System.out.println("Fever.");
}else{
System.out.println("No Fever.");
}
}
Answer:
Explanation:
There is nothing wrong with the code it is complete. The Employee class is correctly extending to the Person class. Therefore, the Employee class is a subclass of Person and Person is the parent class of Employee. The only thing wrong with this code is the faulty structure such as the missing whitespace and indexing which is crucial in Python. This would be the correct format. You can see the output in the picture attached below.
class Person :
def __init__(self, first, last) :
self.firstname = first
self.lastname = last
def Name(self) :
return self.firstname + " " + self.lastname
class Employee(Person) :
def __init__(self, first, last, staffnum) :
Person.__init__(self,first, last)
self.staffnumber = staffnum
def GetEmployee(self) :
return self.Name() + ", " + self.staffnumber
x = Person("Sammy", "Student")
y = Employee("Penny", "Peters", "805")
print(x.Name())
print(y.GetEmployee())
Answer:
mark me as the brainliest
Explanation:Before you can start to learn about the different types of computers that you will come across, you need to understand the basics of how computers work. All computers, whether they are the smartphone in your hand or large, powerful servers, operate on the same five basic principles. These are input, processing, storage, output and communication. Each component of a computer performs one of these functions, but they all work together to make the computer work.
Answer:
examples are:
com or .edu is a top-level domain name (TLD)
cornell.edu is a second-level domain name (SLD)
bigred.cornell.edu is a third-level or three-part domain name
project.bigred.cornell.edu is a fourth-level or four-part domain name
hope this helps you.