Write a SELECT statement that displays each product purchased, the category of the product, the number of each product purchased, the maximum discount of each product, and the total price from all orders of the item for each product purchased. Include a final row that gives the same information over all products (a single row that provides cumulative information from all your rows). For the Maximum Discount and Order Total columns, round the values so that they only have two decimal spaces. Your result

Answers

Answer 1

Answer:

y6ou dont have mind

Explanation:


Related Questions

Suppose you are choosing between the following three algorithms:
• Algorithm A solves problems by dividing them into five subproblems of half the size, recursively solving each subproblem, and then combining the solutions in linear time.
• Algorithm B solves problems of size n by recursively solving two subproblems of size n − 1 and then combining the solutions in constant time.
• Algorithm C solves problems of size n by dividing them into nine sub-problems of size n=3, recursively solving each sub-problem, and then combining the solutions in O(n2) time.
What are the running times of each of these algorithms (in big-O notation), and which would you choose?

Answers

Answer:

Algorithm C is chosen

Explanation:

For Algorithm A

T(n) = 5 * T ( n/2 ) + 0(n)

where : a = 5 , b = 2 , ∝ = 1

attached below is the remaining part of the solution

Briefly explain how Riboflavin deficiency lead to disease state.​

Answers

Answer:

Severe riboflavin deficiency can impair the metabolism of other nutrients, especially other B vitamins, through diminished levels of flavin coenzymes [3]. Anemia and cataracts can develop if riboflavin deficiency is severe and prolonged [1]. The earlier changes associated with riboflavin deficiency are easily reversed.

Which of the following characteristics differentiates PCM from BWF audio
file formats?
metadata storage
.wav file extension
uncompressed audio file format
compressed audio file format

Answers

Answer: A

Explanation:

Answer:

A

Explanation:

In java I need help on this specific code for this lab.


Problem 1:


Create a Class named Array2D with two instance methods:


public double[] rowAvg(int[][] array)


This method will receive a 2D array of integers, and will return a 1D array of doubles containing the average per row of the 2D array argument.


The method will adjust automatically to different sizes of rectangular 2D arrays.


Example: Using the following array for testing:


int [][] testArray =

{

{ 1, 2, 3, 4, 6},

{ 6, 7, 8, 9, 11},

{11, 12, 13, 14, 16}

};

must yield the following results:


Averages per row 1 : 3.20

Averages per row 2 : 8.20

Averages per row 3 : 13.20

While using this other array:


double[][] testArray =

{

{1, 2},

{4, 5},

{7, 8},

{3, 4}

};


must yield the following results:


Averages per row 1 : 1.50

Averages per row 2 : 4.50

Averages per row 3 : 7.50

Averages per row 4 : 3.50

public double[] colAvg(int[][] array)


This method will receive a 2D array of integers, and will return a 1D array of doubles containing the average per column of the 2D array argument.


The method will adjust automatically to different sizes of rectangular 2D arrays.


Example: Using the following array for testing:


int [][] testArray =

{

{ 1, 2, 3, 4, 6},

{ 6, 7, 8, 9, 11},

{11, 12, 13, 14, 16}

};

must yield the following results:


Averages per column 1: 6.00

Averages per column 2: 7.00

Averages per column 3: 8.00

Averages per column 4: 9.00

Averages per column 5: 11.00

While using this other array:


double[][] testArray =

{

{1, 2},

{4, 5},

{7, 8},

{3, 4}

};


must yield the following results:


Averages per column 1: 3.75

Averages per column 2: 4.75



My code is:


public class ArrayDemo2dd

{


public static void main(String[] args)

{

int [][] testArray1 =

{

{1, 2, 3, 4, 6},

{6, 7, 8, 9, 11},

{11, 12, 13, 14, 16}

};

int[][] testArray2 =

{

{1, 2 },

{4, 5},

{7, 8},

{3,4}

};


// The outer loop drives through the array row by row

// testArray1.length has the number of rows or the array

for (int row =0; row < testArray1.length; row++)

{

double sum =0;

// The inner loop uses the same row, then traverses all the columns of that row.

// testArray1[row].length has the number of columns of each row.

for(int col =0 ; col < testArray1[row].length; col++)

{

// An accumulator adds all the elements of each row

sum = sum + testArray1[row][col];

}

//The average per row is calculated dividing the total by the number of columns

System.out.println(sum/testArray1[row].length);

}

} // end of main()


}// end of class


However, it says there's an error... I'm not sure how to exactly do this type of code... So from my understanding do we convert it?

Answers

Answer:

Explanation:

The following code is written in Java and creates the two methods as requested each returning the desired double[] array with the averages. Both have been tested as seen in the example below and output the correct output as per the example in the question. they simply need to be added to whatever code you want.

public static double[] rowAvg(int[][] array) {

       double result[] = new double[array.length];

     for (int x = 0; x < array.length; x++) {

         double average = 0;

         for (int y = 0; y < array[x].length; y++) {

             average += array[x][y];

         }

         average = average / array[x].length;

         result[x] = average;

     }

     return result;

   }

   public static double[] colAvg(int[][] array) {

       double result[] = new double[array[0].length];

       for (int x = 0; x < array[x].length; x++) {

           double average = 0;

           for (int y = 0; y < array.length; y++) {

               average += array[y][x];

           }

           average = average / array.length;

           result[x] = average;

       }

 

       return result;

   }

Animation timing is does not affect the
speed of the presentation
Select one:
True
False​

Answers

Answer:

True

Explanation:

I think it's true.....

What is a font?
O How the text for a paragraph appears
O A display of text characters in a specific style and size
O Text that has been made bold
O Artistic elements you can add to text

Answers

A display of text characters in specific style
answer: a display of text characters in a specific style and size

Think of an aspect of HTML that you found challenging to master. Why is that aspect of HTML important? What are some future situations that you could use it in?

Answers

Answer:

html is a thing that u can to create an website business that u can make money on it

Need to compress this IPv6 Address
ad93:a0e4:a9ce:32fc:cba8:15fe:ed90:d768

Answers

I can't underatnd your question

SORRY

Explain the paging concept and main disadvantages of pipelined
approaches? Compare the superscalar and super pipelined approaches
with block diagram?

Answers

Answer:

PAGINACIÓN En la gestión de memoria con intercambio, cuando ... Debido a que es posible separar los módulos, se hace más fácil la modificación de los mismos. ... Ventajas y Desventajas de la segmentación paginada

Explanation:

Make these negative sentences more positive and polite. Keep the meaning.

1.Don’t run for the bus. You might slip on the ice and fall
2.Don’t tell me what you can’t do.
3.Don’t eat with your mouth open.
4.Don’t submit an incomplete report.

Answers

Answer:

You should not run for the bus. You could slip on the ice and fall

Would you stop telling me what you can't do

Could you not eat with your mouth open

You should not submit an incomplete report

Answer:

You should not run for the bus. You could slip on the ice and fall

please stop telling me what you can't do.

please do not eat with your mouth open

you shouldn't submit an incomplete report. it could affect your grades negatively.

Explanation:

hope this helps!

~mina

Write a recursive method called permut that accepts two integers n and r as parameters and returns the number of unique permutations of r items from a group of n items. For given values of n and r, this value P(n, r) can be computed as follows:
n!/(n - r)!
For example , permut (7, 4) should return 840.

Answers

Answer:

Following are the code to the given question:

public class Main//defining a class Main

{

static int permut(int n, int r)//defining a method permut that holds two variable

{

return fact(n)/fact(n-r);//use return keyword to return calcuate value

}

static int fact(int n)//defining a fact method as recursive to calculate factorials

{

return n==0?1:n*fact(n-1);//calling the method recursively

}

public static void main(String[] abs)//main function

{

//int n=7,r=4;//defining integer variable

System.out.println(permut(7,4));//use print method to call permut method and print its values

}

}

Output:

840

Explanation:

Following is the explanation for the above code.

Defining a class Main.Inside the class two methods, "permut and fact" were defined, in which the "permut" accepts two values for calculating its permutated value, and the fact is used for calculates factorial values recursively. At the last, the main method is declared, which uses the print method to call "permut" and prints its return values.

Acróstico sobre mouse

Answers

this is a PICTURE

i HOPE IT'S HELP

This lab was designed to teach you more about using Scanner to chop up Strings. Lab Description : Take a group of numbers all on the same line and average the numbers. First, total up all of the numbers. Then, take the total and divide that by the number of numbers. Format the average to three decimal places Sample Data : 9 10 5 20 11 22 33 44 55 66 77 4B 52 29 10D 50 29 D 100 90 95 98 100 97 Files Needed :: Average.java AverageRunner.java Sample Output: 9 10 5 20 average = 11.000 11 22 33 44 55 66 77 average = 44.000 48 52 29 100 50 29 average - 51.333 0 average - 0.000 100 90 95 98 100 97 average - 96.667

Answers

Answer:

The program is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

 String score;

 System.out.print("Scores: ");

 score = input.nextLine();

 String[] scores_string = score.split(" ");

 double total = 0;

 for(int i = 0; i<scores_string.length;i++){

     total+= Double.parseDouble(scores_string[i]);  }

 double average = total/scores_string.length;

 System.out.format("Average: %.3f", average); }

}

Explanation:

This declares score as string

 String score;

This prompts the user for scores

 System.out.print("Scores: ");

This gets the input from the user

 score = input.nextLine();

This splits the scores into an array

 String[] scores_string = score.split(" ");

This initializes total to 0

 double total = 0;

This iterates through the scores

 for(int i = 0; i<scores_string.length;i++){

This calculates the sum by first converting each entry to double

     total+= Double.parseDouble(scores_string[i]);  }

The average is calculated here

 double average = total/scores_string.length;

This prints the average

 System.out.format("Average: %.3f", average); }

}

Derive the three-dimensional transformation matrix for scaling an object by a scaling factor s in a direction defined by the direction cosines alpha , beta , gamma

Answers

Answer:

i dont know

Explanation:

i dont knoe im doing this for the points hehe

Other Questions
Find the slope of the line that contains (3,5) and (3,9).If the slope is not an integer, enter it is a fraction in simplest form. Do not enter a mixed number. Remember, a fraction in simplest form never contains a negative sign in the denominator. If the slope is undefined, undefined should be entered. Combine elements from each column to describe what everyone is going to do this weekend. Writesix sentences.Modeloustedes - pasear por el parque - el fin de semanaUstedes van a pasear por el parque el fin de semana.ABustedesver pelculasel domingonosotrosir al estadio de ftbolel fin de semanaVictortomar el solal mediodaClaudio y su primo visitar monumentosa las treswtpasear por el parquepor la nocheyocomer en el restaurante por la maana User averysmartperson is helping with this question. 1. How does the narratordescribe his travels in the excerpt from the autobiography of an ex colored man A difficult at first, dueto his feelings abouta woman's deathB. nerve-racking, as hedoesn't know wherehe is goingC. challenging, as heterrified of being outat sea on the shipD. light-hearted, due tohis happiness to beaway from New York 7. Identify the maineconomic activity of theWest Mai wants to buy a pair of jeans at the mall. The jeans cost $35.00. She has a coupon for that store. She pays $28.00 for the jeans. What was the percent of her discount? How much should Josea leave for the tip?Reminder: The total bill was $38. She wanted to leavea 15% tip. 5. The coordinates of the points A and B are (0, 6)and (8, 0) respectively.() Find the equation of the line passing throughA and BGiven that the line y = x+1 cuts the line AB atthe point M, find(ii) the coordinates of M,(in) the equation of the line which passesthrough Mand is parallel to the -axis,(iv) the equation of the line which passes throughMand is parallel to the y-axis. A tabletop in the shape of a trapezoid has an area of 7,701 square centimeters. Its longer base measures 119 centimeters, and the shorter base is 85 centimeters. What is the height?Second attempt, please just give me the answer :p RainforestsRainforest ecosystems are located near the equator. The weather in a rainforest is warm and humid (moisture in the air) all year long; it rains more than any other area. Rainforests produce a majority of Earths oxygen supply. Rainforests are known for having many living things. There are thousands of different species of animals and plants. Creatures thrive in the climates of the rainforest. The rainforest includes a variety of animals: monkeys, tree frogs, jaguars, different species of birds, and an abundance of a variety of insects.There are three layers of the rainforest. The top layer is the canopy of the rainforest. This layer has mature (grown) trees and branches. The canopy blocks much of the sun. The next layer is called the understory. This layer includes bushes and growing trees. It is home to many different birds, reptiles and small animals. The last layer is the forest floor. This layer includes shrubs, vines, leaf clutter, and is home to insects and other animals including large predators.Rainforests are important to our earth because they produce oxygen and are the homes to many plants and animals.QuestionsWrite two facts about rainforests.What does the word thrive mean in paragraph #2?What is the main idea of the text?What is the authors purpose of this text?Why is the rainforest important to the earth, and how can we protect it? plzzz help its the last one i need to do!! :( ill make u brainlist, thank you,5 stars, and u get the points! and all that I just need the answer :( ____________________________________________________________1. Estimate each amount. Show or explain how you estimated one of the amounts.a) 3/8 of 3/4 b) 7/10 of 8/12 c) 5/2 of 5/2 _________________________________________________________BRAINLIST POINTS THANK YOU 5 STARS!! just for a answer :C let f(x) = x-4 and g(x) = (x-4)^3find the sum of the area enclosed by the graphs Of F and g between x=3 and x=5 Ben and Leonidas are twins who are both in Hufflepuff. Ben is ready first,so he leaves the common room and starts flying to class at an averagespeed of 20 km per hour. Half an hour later, Leonidas leaves the commonroom on his Firebolt 3000 sports broom and follows the same route,traveling at an average speed of 70 km per hour. How many minutes will ittake Leonidas to catch up with Ben, starting from when Leonidas leavesthe house?11 minutesO 12 minutes17 minutesO 20 minutes I Really need help its due in about 1 min! In a survey of 232 students, about 5.5% have attended more than one play. Which is closest to the number of students in the survey who have attended more than play? 5 7 13 16 Write the expression representing the total number of miles run: Jazmin ran 3 miles on Monday. For the next 4 days, she ran x miles each day. can someone helppls ! A negative number with an absolute value less than -4 and 4 was incorrect so no about those Which of the fractions below is closest to zero? a. 1/2 b. 1/6 c. 1/9 d. 1/12 What is the area of this shape