Answer:
A table cannot help people
Answer:
Hi!
<em>// First you have to initialize the variables.</em>
int hits = 0;
int atbats = 0;
float percentaje = 0;
function eligible() {
hits = inputHits(); <em>// Function that input the hits.</em>
atbats = inputAtBats(); <em>// Function that input the at bats.</em>
percentaje = hits/atbats; <em>// Now, you can calculate the percentaje.</em>
if( percentaje > 0.300) { <em>//If percentaje if greater than .300 will print Eligible for the All Stars Game.</em>
print('Eligible for the All Stars Game.');
} else { <em>//Otherwise will print Not elegible.</em>
print('Not elegible.');
}
}
}
Explanation:
Answer:
SAAS (Software as A Service)
Explanation:
Since the program is completely 3rd party and is hosted in the cloud, this is an example of an SAAS. SAAS is by far the most common used of the cloud right now and we have somehow probably used it in our day-to-day lives. With SAAS, users are able to easily connect to and use established infrastructure and applications over the internet. Unlike IAAS and PAAS types of cloud computing, users using SAAS focus only on using the applications while the cloud based providers take care of everything else from taking care of the data center to managing all the aspects of the application.
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())