Answer:
validates and verifies the seller's payment information- A.
Answer:
Hi Samantha, i have a work with you.
instructions:
You need to write code that will print two bricks of numbers, one with integers, one with decimals.
import random
i = 1
while i <= 100:
print("#"+str(i)+": "+str(random.randint(1,100)), end=", ")
i+=1
print()
i = 1
while i <= 100:
print("#"+str(i)+": "+str(random.uniform(1,100)), end=", ")
i += 1
I hope this helps!
B)Positive
Answer:
positive
Explanation:
it shows good customer service
Answer:
Yes Preto distribution takes over when we apply 80/20 rule.
Explanation:
The Pareto distribution is derived from pareto principle which is based on 80/20 rule. This is main idea behind the Pareto distribution that percent of wealth is owned by 20% of population. This 80/20 rule is gaining significance in business world. There it becomes easy to understand the input and output ratio. The input ratio helps to analyse the potential output using Pareto distribution.
Answer:
Each array position holds the position from which the information is going to be retrieved. After the code is run, each position will have the information retrieved from that position.
Explanation:
The best way to solve this problem is working as if we had a very small array. Then we can generalize for the large array.
For example
int a[3];
a[0] = 1; a[1] = 2; a[2] = 0;
for(i = 0; i < 3; i++)
a[i] = a[a[i]];
When i = 0, we have:
a[i] = a[a[i]] = a[a[0]] = a[1] = 2;
When i = 1, we have
a[i] = a[a[i]] = a[a[1]] = a[2] = 0;
When i = 2, we have
a[i] = a[a[i]] = a[a[2]] = a[0] = 1;
Basically, in our small example, each array position holds the index from which we are going to retrieve the information. The same is going to happen in the array of length 99. After the code is run, each position will have the information retrieved from that position
Answer:
See explaination
Explanation:
class Episode{
//Private variables
private String title;
private int seasonNumber;
private int episodeNumber;
//Argumented constructor
public Episode(String title, int seasonNumber, int episodeNumber) {
this.title = title;
this.seasonNumber = seasonNumber;
this.episodeNumber = episodeNumber;
}
//Getter and setters
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public int getSeasonNumber() {
return seasonNumber;
}
public void setSeasonNumber(int seasonNumber) {
this.seasonNumber = seasonNumber;
}
public int getEpisodeNumber() {
return episodeNumber;
}
public void setEpisodeNumber(int episodeNumber) {
this.episodeNumber = episodeNumber;
}
public boolean comesBefore(Episode e){
//Check if titles' match
if(this.title.equals(e.getTitle())){
//Compare season numbers
if(this.seasonNumber<e.seasonNumber){
return true;
}
//Check if season numbers match
else if(this.seasonNumber==e.getSeasonNumber()){
return this.episodeNumber<e.getEpisodeNumber();
}
}
return false;
}
atOverride // replace the at with at symbol
public String toString() {
return title+", season "+seasonNumber+", episode "+episodeNumber;
}
}
class Main{
public static void main(String[] args) {
Episode e = new Episode("Friends",1,1);
System.out.println(e);
Episode e2 = new Episode("The Wire",3,5);
System.out.println(e2);
System.out.println(e.getTitle()+" comes before "+e2.getTitle()+" = "+e.comesBefore(e2));
}
}
{
Private String empID;
Private boolean hourly;
) . .
_______
{
Hourly = isHourly;
}
}
A) public void setHourly(String isHourly)
B) public void getHourly()
C) public boolean getHourly()
D) public boolean setHourly(boolean isHourly)
Answer:
A)
Explanation:
In this code example the missing piece of code would be...
public void setHourly(String isHourly)
This piece of code is creating a function called setHourly which takes in one String variable as it's parameter. Based on the rest of the code, the function takes that parameter variable and places it into an instance variable called Hourly which can be used when the function is called.