Answer with Explanation:
I would forego the all-day basketball tournament because, clearly, I will be spending so much for just a one-day fun. I'm sure there will be other upcoming basketball tournaments I can attend to. So, I will accept my neighbor's offer of helping to paint their apartment because <em><u>I will be earning $75 and such offer doesn't come every day.</u></em> Since I also want to enjoy and hang out with friends, I would call a friend to help me in painting the apartment so we could split the payment, which means<u> both of us will have</u><u><em> $37.5</em></u><u>.</u> In this case, <u>I will not only earn money on Saturday but will also get to enjoy the company of my friend.</u>
Answer:
The answer is "Option A"
Explanation:
Following are the complete code to these question:
public class Arr//defining a class-Arr
{
public static void main(String[] args)//main method
{
int [][] numbers={{1, 2, 3},{4,5,6}}; //defining 2D array numbers
for(int[] row : numbers) //use for loop that holds all array value into 1D array
{
for (int n: row)//defining n variable that holds row array values
{
System.out.print (n); //print n variable value
}
}
}
}
The code comment explains its functioning.
The average (mean) number of hours spent on the computer is equal to 4.7 hours.
<h3>What is an arithmetic average?</h3>
An arithmetic average is also referred to as mean and it can be defined as a ratio of the sum of the total number in a data set to the frequency of the data set.
<h3>How to calculate the mean?</h3>
Mathematically, the arithmetic average for a given data set can be calculated by using this formula:
Average = [F(x)]/n
Next, we would calculate the arithmetic average for the number of hours spent on the computer as follows:
F(x) = 1(3) + 2(6) + 3(11) + 4(25) + 5(18) + 6(16) + 7(7) + 8(4) + 9(1)
F(x) = 3 + 12 + 33 + 100 + 90 + 96 + 49 + 32 + 9
F(x) = 424.
For the total number of students, we have:
n = 3 + 6 + 11 + 25 + 18 + 16 + 7 + 4 + 1
n = 91
Substituting the parameters into the formula, we have;
Average = 424/91
Average = 4.7 hours.
Read more on arithmetic average here: brainly.com/question/28247210
#SPJ1
Answer:
The black Jack game using Python has score card variable for the player and the dealer. A conditional if statement would add a random card number if the player decides to hit but prints a string of the total card value collected if not and compares the integer with the dealer's score to reveal to winner.
Explanation:
The game creates an infinite loop to add card value to player's score if he chooses to hit and break the loop if he stays. The dealer's loop adds random number to the score but break if the score is equal to or greater than 16. Both scores are compares with an if statement to decide the winner.