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

PLEASE HELP!!!
Question 6:
A retailer of computers maintains a record containing the following information for every individual
computer sold
• Manufacturer name
• Model number
• Physical memory size
• Processor name
• Date of sale
• Price sold for
Using only the database, which of the following CANNOT be determined?
The average price of a computer was sold by the retailer
In which months less than 100 computers were sold
o Which models of computer stocked by the retailer have not had a single sale
The most popular model of computer sold by the retailer

Answers

I think A since I don’t think it would matter who sells to the consumer but the amount sorry if I’m wrong
price sold i know it because i did it

outline four advantages of digital
cameras over analogue cameras​

Answers

Answer:

Explanation:

A digital camera refers to a camera whereby the photographs are being captured in digital memory. An analogue camera refers to the traditional camera that typically sends video over cable.

The advantages of digital cameras over analogue cameras include:

1. Massive Storage Space:

There is a large storage space for photos and thus helps to prevent limitations to film. There are memory cards that can store several images.

2. Multiple functions:

The digital camera performs several functions like face detection, night and motion detection This makes capturing of images more fun and brings about better images.

3. Video Camera:

Digital cameras can also capture moving pictures while analog camera typically captures images that are still. Digital camera is vital as it can be used for live streaming.

4. Smaller and Lighter:

Digital cameras are usually smaller and lighter which makes them more portable and easy to carry about.

The UNIX cal command prints out the calendar of the month/year that the user enters. Type in the following, one at a time, and observe the output:
cal 3 2014 cal 2014 cal 1 1
To learn more about this command, type in man cal for help.
Write a program named cal.c that prints out the following (which is the output when you type in cal 10 2018 in UNIX). Note that you are not asked to implement the cal command. You can assume that you know October 1 is a Monday. You will need to use loops and the % operator.
October 2018 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Answers

Solution :

#include<[tex]$\text{stdio.h}$[/tex]>

int [tex]$\text{dayofweek}$[/tex](int d, [tex]$\text{int m}$[/tex], int y){

static [tex]$\text{int t}[]$[/tex] = { 0, [tex]$3,2$[/tex], 5, [tex]$0,3$[/tex], 5, 1, [tex]$4,6,2,4$[/tex] };

y -= [tex]$m<3$[/tex];

return ([tex]$y+$[/tex] y/4 - y/100 + y/400 + t[m-1] + d) % 7;

}

int main() {

int month,year,i;

printf("Enter Month : ");

scanf("%d",&month);

printf("Enter Year : ");

scanf("%d",&year);

//find week day number

int day = dayofweek(1,month,year);

char * weekDays[] = {"Su","Mo","Tu","We","Th","Fr","Sa"};

printf("\n");

//print week day header

for(i=0;i<7;i++)

printf("%s ",weekDays[i]);

printf("\n");

//print days accordingly

for(i=0;i<day;i++)

printf(" ");

for(i=day;i<=day+30;i++){

printf("%-2d ",i-day+1);

if((i+day)%7==0)

printf("\n");

}

}

4.5.2 For loop: printing a dictionary python

Answers

Answer:

for x, y in thisdict.items():

 print(x, y)

Explanation:

Write the following generic method that sorts an ArrayList of Comparable items. The sort method must use the compareTo method.
public static > void sort(ArrayList list)
Write a test program that:
1. prompts the user to enter 10 integers, invokes this method to sort the numbers, and displays the numbers in ascending order
2. prompts the user to enter 5 strings, invokes this method to sort the strings, and displays the strings in ascending (alphabetical) order

Answers

Answer:

Explanation:

The following code is written in Java, it prompts the user to enter 10 integers and saves them to an ArrayList. Then it prompts for 5 strings and saves them to another ArrayList. Then, it calls the sort method and adds the lists as parameters. Finally, it prints out both lists completely sorted in ascending order.

import java.util.ArrayList;

import java.util.Scanner;

class Division{

   public static double division(double a, double b) throws Exception {

       if(b == 0)

           //throw new Exception("Invalid number.");

           return (a / b);

       return a / b;

   }

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       ArrayList<Integer> mylist2 = new ArrayList<>();

       for (int x = 0; x < 10; x++) {

           System.out.println("Please Enter a Number: ");

           int number = in.nextInt();

           mylist2.add(number);

       }

       ArrayList<String> mylist = new ArrayList<>();

       for (int x = 0; x < 5; x++) {

           System.out.println("Please Enter a Word: ");

           String word = in.nextLine();

           mylist.add(word);

       }

       sort(mylist);

       sort(mylist2);

       for (String x: mylist) {

           System.out.print(x + ", ");

       }

       System.out.println("");

       for (int x: mylist2) {

           System.out.print(x + ", ");

       }

   }

   public static <E extends Comparable<E>> ArrayList<E> sort(ArrayList<E> list) {

       E temp;

       if (list.size()>1) // check if the number of orders is larger than 1

       {

           for (int x=0; x<list.size(); x++) // bubble sort outer loop

           {

               for (int i=0; i < list.size() - x - 1; i++) {

                   if (list.get(i).compareTo(list.get(i+1)) > 0)

                   {

                       temp = list.get(i);

                       list.set(i,list.get(i+1) );

                       list.set(i+1, temp);

                   }

               }

           }

       }

       return list;

}}

The vulnerabilities common to the software development process, including buffer overflows, race conditions, input validation attacks, authentication attacks, authorization attacks, and cryptographic attacks, and how we might mitigate these by following secure coding guidelines. Besides protecting O S software on hosts, there is a need to protect applications that run on these devices. Aspects of application security includes all except:____.
A. Application development security.
B. Secure coding techniques.
C. Code testing.
D. Requirement Assessment.

Answers

Answer:

Aspects of application security includes all except:____.

D. Requirement Assessment.

Explanation:

The requirement assessment is carried out during the initial development stage to meet the user's requirements.  This assessment does not necessarily deal with application security.  However, the other three aspects are security-related.  They focus on the areas where application security is mostly required to reduce errors and technical weaknesses of a software, including authentication, privacy, access control, data segregation, and error handling.

what of the following uses heat from deep inside the earth that generates steam to make electricity​

Answers

Answer:

Geothermal power plants.

5.27 LAB*: Program: Soccer team roster (Vectors)
This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team.
(1) Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jersey numbers in one int vector and the ratings in another int vector. Output these vectors (i.e., output the roster). (3 pts)
Ex:
Enter player 1's jersey number:
84
Enter player 1's rating:
7
Enter player 2's jersey number:
23
Enter player 2's rating:
4
Enter player 3's jersey number:
4
Enter player 3's rating:
5
Enter player 4's jersey number:
30
Enter player 4's rating:
2
Enter player 5's jersey number:
66
Enter player 5's rating:
9
ROSTER
Player 1 -- Jersey number: 84, Rating: 7
Player 2 -- Jersey number: 23, Rating: 4
...
(2) Implement a menu of options for a user to modify the roster. Each option is represented by a single character. The program initially outputs the menu, and outputs the menu after a user chooses an option. The program ends when the user chooses the option to Quit. For this step, the other options do nothing. (2 pts)
Ex:
MENU
a - Add player
d - Remove player
u - Update player rating
r - Output players above a rating
o - Output roster
q - Quit
Choose an option:
(3) Implement the "Output roster" menu option. (1 pt)
Ex:
ROSTER
Player 1 -- Jersey number: 84, Rating: 7
Player 2 -- Jersey number: 23, Rating: 4
...
(4) Implement the "Add player" menu option. Prompt the user for a new player's jersey number and rating. Append the values to the two vectors. (1 pt)
Ex:
Enter a new player's jersey number:
49
Enter the player's rating:
8
(5) Implement the "Delete player" menu option. Prompt the user for a player's jersey number. Remove the player from the roster (delete the jersey number and rating). (2 pts)
Ex:
Enter a jersey number:
4
(6) Implement the "Update player rating" menu option. Prompt the user for a player's jersey number. Prompt again for a new rating for the player, and then change that player's rating. (1 pt)
Ex:
Enter a jersey number:
23
Enter a new rating for player:
6
(7) Implement the "Output players above a rating" menu option. Prompt the user for a rating. Print the jersey number and rating for all players with ratings above the entered value. (2 pts)
Ex:
Enter a rating:
5

Answers

Answer:

Explanation:

The following code is written in Java and loops five times asking for the desired inputs from the user and saves that information in two Vectors named jerseyNumber and ratings. Then creates a while loop for the menu and a seperate method for each of the options...

import java.util.Scanner;

import java.util.Vector;

class Brainly {

   static Scanner in = new Scanner(System.in);

   static Vector<Integer> jerseyNumber = new Vector<>();

   static Vector<Integer> ratings = new Vector<>();

   public static void main(String[] args) {

       for (int x = 0; x < 5; x++) {

           System.out.println("Enter player " + (x+1) + "'s jersey number:");

           jerseyNumber.add(in.nextInt());

           System.out.println("Enter player " + (x+1) + "'s rating:");

           ratings.add(in.nextInt());

       }

       boolean reloop = true;

       while (reloop == true) {

           System.out.println("Menu");

           System.out.println("a - Add player");

           System.out.println("d - Remove player");

           System.out.println("u - Update player rating");

           System.out.println("r - Output players above a rating");

           System.out.println("o - Output roster");

           System.out.println("q - Quit");

           char answer = in.next().charAt(0);

           switch (answer) {

               case 'a': addPlayer();

                   break;

               case 'd': removePlayer();

                   break;

               case 'u': updatePlayer();

                   break;

               case 'r': outputRating();

                   break;

               case 'o': outputRoster();

                   break;

               case 'q': System.exit(0);

                   reloop = false;

                   break;

           }

       }

   }

   public static void addPlayer() {

       System.out.println("Enter player's jersey number:");

       jerseyNumber.add(in.nextInt());

       System.out.println("Enter player's rating:");

       ratings.add(in.nextInt());

   }

   public static void removePlayer() {

       System.out.println("Enter Jersey number:");

       int number = in.nextInt();

       for (int x = 0; x < jerseyNumber.size(); x++) {

           if (jerseyNumber.get(x) == number) {

               jerseyNumber.remove(x);

               ratings.remove(x);

           }

       }

   }

   public static void updatePlayer() {

       System.out.println("Enter Jersey number:");

       int number = in.nextInt();

       System.out.println("Enter new Rating:");

       int rating = in.nextInt();

       for (int x = 0; x < jerseyNumber.size(); x++) {

           if (jerseyNumber.get(x) == number) {

               ratings.set(x, rating);

           }

       }

   }

   public static void outputRating() {

       System.out.println("Enter Rating:");

       int rating = in.nextInt();

       for (int x = 0; x < ratings.size(); x++) {

           if (ratings.get(x) >= rating) {

               System.out.println(jerseyNumber.get(x));

           }

       }

   }

   public static void outputRoster() {

       for (int x = 0; x < jerseyNumber.size(); x++) {

           System.out.println("Player " + (x+1) + " -- Jersey number: " + jerseyNumber.get(x) + ", Rating: " + ratings.get(x));

       }

   }

}

Assume you have created an inheritance hierarchy with the following classes:

Class: Organization
Methods: getName(), getNumEmployees(), getTaxLiability()
Class: Nonprofit extends Organization
Methods: getAnnualContribution(), getTaxLiability()
Class: Commercial extends Organization
Methods: getTaxLiability()
In your implementation class, assume you create the following line of code.

Organization o = new Nonprofit();

Using this line of code, write additional code that will call the getAnnualContribution() method

Answers

Answer:

Creating an object of Class Organization     Organization o = new Nonprofit

Explanation:

Organization Methods: getName(), getNumEmployees(), getTaxLiability(). Class: Nonprofit extends Organization Methods: getAnnualContribution(), getTaxLiability(). Class: Commercial extends Organization Methods: getTaxLiability().

A
is the movement you see when one slide changes to another in slide show
view.
O style
O
dissolve
O transition effect
O
bevel effect​

Answers

Answer:

Transition effect

Explanation:

Transition effects are slide changing with animations.

Do you think renewable energy can power the world? If so, why?

Answers

Answer:

yes

Explanation:

Because it is a new safer and more energy efficient way of producing energy

What does an operating system provide so you can interact with a device

Answers

Answer:

Operating system software provides the user interface for interacting with the hardware components, whereas application software enables you to accomplish specific tasks.

Explanation:

please give me brainlist and follow

An operating system provides graphical user interface, which enables the user to interact seamlessly with a computer device.

Graphical user interface (GUI) provides user-friendly visual representations to help the user to manage the human interaction with the device via the operating system.

Some graphical user interface tools include icons, menus, and mouse.

Thus, with visual representations of data and operating instructions, users are able to understand the operating system and interact easily with the computer device.

Read more about graphical user interface at https://brainly.com/question/16956142

explain the procedure you will undertake to create a new partition​

Answers

Ans: To create and format a new partition (volume) Right-click an unallocated region on your hard disk, and then select New Simple Volume. In the New Simple Volume Wizard, select Next. Enter the size of the volume you want to create in megabytes (MB) or accept the maximum default size, and then select Next.

Time-management techniques work most effectively when performed in which order?

prioritize tasks, reward system, study-time survey, project schedule
project schedule, study-time survey, reward system, prioritize tasks
reward system, prioritize tasks, project schedule, study-time survey
study-time survey, project schedule, prioritize tasks, reward system

Answers

Answer:

study-time survey, project schedule, prioritize tasks, reward system.

Explanation:

Time management can be defined as a strategic process which typically involves organizing, planning and controlling the time spent on an activity, so as to effectively and efficiently enhance productivity. Thus, when time is properly managed, it avails us the opportunity to work smartly rather than tediously (hardly) and as such making it possible to achieve quite a lot within a short timeframe. Also, a good time management helps us to deal with work-related pressures and tight schedules through the process of properly allocating the right time to the right activity.

Hence, time-management techniques work most effectively when performed in the following sequential order; study-time survey, project schedule, prioritize tasks, and designing (creating) a reward system.

Answer:

The Answer is:
D. study-time survey, project schedule, prioritize tasks, reward system

Explanation:

got it right on edge

Which of the following would a cyber criminal most likely do once they gained access to a user id and password

Answers

Answer:

do something wrong as you

For this question we won't be directly working within LinkedList however. Instead, we'll be working with a Runner class:
public class Runner {
private LinkedList firstItemList;
private LinkedList listRemainder;
public Runner() {
firstItemList = null;
listRemainder = null;
}
}
For this question, write a method for the Runner class that will take in a LinkedList, split into two linked lists, and assign their values to firstItemList and listRemainder. Assign firstItemList to be a new LinkedList that just contains the first value. Assign listRemainder to be a new linkedList that contains everything EXCEPT the remainder.
More clearly, if you are given a linked list that looks like: 1 --> 2 --> 3 --> 4 Then assign firstItemList to 1 --> null and listRemainder to `2 --> 3 --> 4``
Please note this will be the only question that deals with a Runner Class instead of the LinkedList class directly.
public void split(LinkedList wholeList) {
}// end split
Solve in JAVA please using LinkedList methods and Node methods only if necessary

Answers

Answer:

Explanation:

The following method will take in a LinkedList as an argument and split it, adding only the first element to the firstItemList and the rest of the elements to listRemainder. The firstItemList and ListRemainder may have to be changed to static in order for the method to be able to access them, or add a setter/getter method for them.

public static void split(LinkedList list) {

       firstItemList = new LinkedList();

       listRemainder = new LinkedList();

       firstItemList.add(list.peek());

       list.pop();

       listRemainder = list;

       }

The complete java code for the Runner class can be defined as follows:

Java Code:

public class Runner<T>//defining a class Runner

{

   private LinkedList<T> firstItemList;//defining LinkedList type array variable that is firstItemList

   private LinkedList<T> ListRemainder;//defining LinkedList type array variable that is ListRemainder

   public Runner()//defining default constructor

   {

       firstItemList=null;//holding null value in list type variable

       ListRemainder=null;//holding null value in list type variable

   }

   public void split(LinkedList<T> WholeLinkedList)//defining a method split that takes a list in parameter

   {

       if(WholeLinkedList==null)//defining if block that checks parameter variable value equal to null

           return;//using return keyword

       firstItemList=WholeLinkedList;//holding parameter variable value in firstItemList

       ListRemainder=WholeLinkedList.next;//holding parameter variable next value in ListRemainder

       firstItemList.next=null;//holding null value in firstItemList.next element

   }

}

Code Explanation:

Defining a class Runner.Inside the class two LinkedList type array variable that is "firstItemList, ListRemainder" is declared.In the next step, a default constructor is defined, in which the above variable is used that holds null value in list type variable.In the next line, a method "split" is declared in which it accepts "WholeLinkedList"  as a parameter.Inside this, if a conditional block is defined that checks parameter variable value equal to null if it's true it returns nothing.outside the conditional block, it checks the parameter value and holds value in it.

Find out more about the linked list here:

brainly.com/question/23731177

Which of the following describe ALAC audio files? Choose all that apply.
uses a codec that is open source
uses a codec that lives in iPods and other Apple hardware
was developed by Apple
is exclusively supported by Apple iTunes
may have .mp3 and .mp4 file extensions

Answers

Answer:

B,C,D

Explanation:

Answer:

B C D

Explanation:

What is the most important part of the brainstorming process?

Answers

Answer:

Some people may say that the most important part of brainstorming is the ability to come up with creative ideas, but this end result is still linked to the need for a lack of judgement or criticism during the session.

Explanation:

brainliest please

What is the name for the last word on a dictionary page?
a. Final word
c. First guideword
b. Second guideword
d. None of these
Please select the best answer from the choices provided

A
B
XOOO
с

Answers

Answer:

bbbbbbbbbbbbbbbbbbbbbbbb

Explanation:

bbbbbbbbbbbbbbbbbbbbbbbbb

Answer:

B.Second guideword

Explanation:

Explain with examples:
What are the reasons of a successful and unsuccessful software project?

Answers

Answer:

A good starting point is by addressing some of the key reasons software projects fail.

Explanation:

Not Enough Time. ...

Insufficient Budget. ...

Poor Communication. ...

Never Reviewing Project Progress. ...

Inadequate Testing. ...

Testing in the Production Environment. ...

Lack of Quality Assurance. ...

Not Conforming to Industry Standards.

User involvement, management support, reasonable requirements, and accurate projections are some of the most frequent aspects that contribute to software project success.

What is a software project?

A software project is the entire process of developing software, from gathering requirements to testing and maintenance, carried out in accordance with execution techniques over a predetermined amount of time to produce the desired software output.

Some of the most frequent factors that influence the success of software projects are user interaction, management support, fair needs, and realistic estimates.

Application bug or error, environmental conditions, infrastructure or software failure, virus, hacker, network/hardware failure, and operator error are the main causes of software project failure.

According to the study, project success and failure are most heavily influenced by the degree of customer/user interaction, software process management, and estimation and timeline.

Thus, these are the reasons of a successful and unsuccessful software project.

For more details regarding software project, visit:

https://brainly.com/question/3818302

#SPJ2

Discuss similarities and differences between the software development and video game development processes.

Answers

Answer:

Game design is actually making the graphics of the game and how it works, software design is when the make all the equipment for the console and how it looks like.

Briefly stated, game design is an art, whereas software design is about the technicalities involved in creating any form of software, which include software architecture development, UX/UI, etc. Software design will eventually be a part of the game design, prototyping, and development process, among other things. Designing a game means having a creative idea, prototyping the gameplay, conceptualizing art, and then moving on to actual development process which will have programming, detailed artwork, audio production, game play development, etc.

Explanation:

Game design is an art, whereas software development is all about the technicalities which are involved in creating any form of software.

What is game design and software development?

Game design is the making of the graphics of a game and how it actually works, software design is the making of all the equipment for the console and how it actually looks like.

Game design is an art, whereas software design is about the technicalities which are involved in creating any form of software, which include the software architecture development, UX/UI development, etc. Software design will eventually be a part of the whole game design, prototyping, and developmental processes, among other things. Designing a game means having a creative idea or thought, prototyping the gameplay, conceptualizing of the art, and then moving on to actual development process which will have all the programming, detailed artwork, audio production, game play development, etc.

Learn more about Software development here:

https://brainly.com/question/3188992


#SPJ2

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 program enables different computers to transmit data to each other?

A. simple message transfer protocol
B. Hypertext transfer protocol
C. Interactive file transfer protocol
D. Transmission control protocol/Internet protocol

Answers

Answer:

Option D, Transmission control protocol/Internet protocol

Explanation:

Transmission control protocol/Internet protocol is a communication protocol through which files are transferred from the server to the client's system via computer network.

On the internet, It interconnects the network devices and also serve as a communications protocol in a private computer network

Hence, option D is correct

A ___________ is a variable used to pass information to a method.

Answers

Answer:

A parameter is a variable used to pass information to a method.

Explanation:

A parameter is a variable used to pass information to a method.

What are the features of parameter?

In general, a parameter "beside, subsidiary" is any quality that aids in describing or categorizing a certain system. In other words, a parameter is a component of a system that is crucial or useful for identifying the system or assessing its functionality, status, or other characteristics.

In some fields, such as mathematics, computer programming, engineering, statistics, logic, linguistics, and electronic music production, the term "parameter" has more precise definitions.

In addition to its technical applications, it also has broader meanings, particularly in non-scientific situations. For example, the terms "test parameters" and "game play parameters" refer to defining qualities or boundaries.

A novel method of characterizing surface texture, in particular surfaces having deterministic patterns and features, is the use of feature parameters.

Traditional methods for characterizing surface texture, such profile and areal field parameters, are considered as supplementary to the feature parameter approach.

Learn more about parameter, here

https://brainly.com/question/29911057

#SPJ6

Specialized high-capacity second storage devices designed to meet organizational demands
1 CD DEVICES
2. FLASH DRIVES
3. PLATTERS
4. MASS STORAGE DEVICES

Answers

Answer:

CD devices

Explanation:

Answer:

Mass storage devices

Explanation:

I don't think I can really explain it, that is just the definition of it.

Elimination:

CD and flash drives aren't high-capacity

Platters aren't really storage devices, they are a part of hard drives

write a c++ program that accept student information

Answers

Answer:

Structure

This program stores the information (name, roll and marks entered by the user) of a student in a structure and displays it on the screen.

To understand this example, you should have the knowledge of the following C++ programming topics:

C++ StructuresC++ StringsIn this program, a structure(student) is created which contains name, roll and marks as its data member. Then, a structure variable(s) is created. Then, data (name, roll and marks) is taken from user and stored in data members of structure variable s. Finally, the data entered by user is displayed.This structure has three members: name (string), roll (integer) and marks (float).

Then, a structure variable s is created to store information and display it on the screen.

What is output?
public class Division{
public static double division(double a, double b) throws Exception {
if(b == 0)
throw new Exception("Invalid number.");
return a / b;
}
public static void main(String[] args) {
try {
System.out.println("Result: " + division(5, 0));
}
catch (ArithmeticException e) {
System.out.println("Arithmetic Exception Error");
}
catch (Exception except) {
System.out.println("Division by Zero");
}
catch(Throwable thrwObj) {
System.out.println("Error");
}
}
}
A. Error.
B. Arithmetic Exception Error.
C. Arithmetic Exception Error Division by Zero Error.
D. Division by zero.

Answers

Answer:

D. Division by zero.

Explanation:

This Java code that is being provided in the question will output the following error.

Division by zero

This is because the main method is calling the division method and passing 0 for the variable b. The method detects this with the if statement and creates a new Exception. This exception is grabbed by the catch(Exception exception) line and prints out the error Division by zero.

Write a python program to print the square of all numbers from 0 to 10.

Answers

Answer:

for i in range(11):

print(i**2)

What is the output of the following code?
int num=25;
if (num > 5)
System.out.print(num + " ");
num += 10;
}
if (num > 30){
System.out.print(num + " ");
num += 5;
}
if (num > 45 ) {
System.out.print(num);
}​

Answers

Answer:

25 35

Explanation:

First if checks if num is greater than 25, it is so it prints 25 with a space after and adds 10 to num (num is now 35)

Then it checks if num is greater than 30, it is, so it prints 35 with a space after and adds 5 to num (num is now 40)

Lastly, it checks if num is greater than 45, it is not, so the program terminates with output: "25 35 " (note the space at the end)

Create the following: (1) a CREATE VIEW statement that defines a view named FacultyCampus that returns three columns: FirstName, LastName, and Term for faculty that are teaching during the semester, along with the terms they teach, and (b) a SELECT statement that returns all of the columns in the view, sorted by Term, of faculty members who are teaching during the semester.

Answers

Answer:

a-

CREATE VIEW FacultyCampus

AS

SELECT F.FirstName, F.LastName, C.Term

FROM Faculty F, Course C

WHERE C.Faculty_ID=F.Faculty_ID

b-

SELECT *

FROM FacultyCampus

ORDER BY Term DESC

Explanation:

As the database table creation is not given, the question is searched and the remaining portion of the question is found which indicates the table created. This is attached:

From the created database, the view is created as follows:

a-

CREATE VIEW FacultyCampus

AS

SELECT F.FirstName, F.LastName, C.Term

FROM Faculty F, Course C

WHERE C.Faculty_ID=F.Faculty_ID

Here first the view is created in which the selection of the first name from faculty table, last name from faculty table, and term from the Course table is made where the values of Faculty ID in course table and Faculty ID of Faculty table are equal.

The select query is as follows:

b-

SELECT *

FROM FacultyCampus

ORDER BY Term DESC

Here the selection of all the columns from the view is made and are ordered by the term in the descending form.

Other Questions
Are both of my answers correct... *Please Hurry!*Which principle tells us that this area has undergone tilting?a. original horizontalityb. cross-cuttingc. superpositiond. inclusions Evaluate the polynomial for x=1 Which of the following is a difference of squares? Keeping in mind this pamphlet was published by HUAC, do you think it is a reliable source on Communism? Why or why not? What is FG?NEED HELP QUICK!! HOW MANY TONS OF COAL WERE MINED IN 1850? Item 10Read the play.The Beggar and the Kingby Winthrop Parkhurst[A chamber in the palace overlooks a courtyard. The season is midsummer. The windows of the palace are open, and from a distance there comes the sound of a man's voice crying for bread.][THE KING sits in a golden chair. A golden crown is on his head, and he holds in his hand a sceptre which is also of gold. A SERVANT stands by his side, fanning him with an enormous fan of peacock feathers.]THE BEGGAR: (outside) Bread. Bread. Bread. Give me some bread.THE KING: (languidly) Who is that crying in the street for bread?THE SERVANT: (fanning) O king, it is a beggar.THE KING: Why does he cry for bread?THE SERVANT: O king, he cries for bread in order that he may fill his belly.THE KING: I do not like the sound of his voice. It annoys me very much. Send him away.THE SERVANT: (bowing) O king, he has been sent away.THE KING: If that is so, then why do I hear his voice?THE SERVANT: O king, he has been sent away many times, yet each time that he is sent away he returns again, crying louder than he did before.THE KING: He is very unwise to annoy me on such a warm day. He must be punished for his impudence. Use the lash on him.THE SERVANT: O king, it has been done.THE KING: Then bring out the spears.THE SERVANT: O king, the guards have already bloodied their swords many times driving him away from the palace gates. But it is of no avail.THE KING: Then bind him and gag him if necessary. If need be cut out his tongue. I do not like the sound of the fellow's voice. It annoys me very much.THE SERVANT: O king, thy orders were obeyed even yesterday.THE KING: (frowning) No. That cannot be. A beggar cannot cry for bread who has no tongue.THE SERVANT: Behold he canif he has grown another.THE KING: What! Why, men are not given more than one tongue in a lifetime. To have more than one tongue is treason.THE SERVANT: If it is treason to have more than one tongue, O king, then is this beggar surely guilty of treason?THE KING: (pompously) The punishment for treason is death. See to it that the fellow is slain. And do not fan me so languidly. I am very warm.THE SERVANT: (fanning more rapidly) Behold, O great and illustrious king, all thy commands were obeyed even yesterday.THE KING: How! Do not jest with thy king.THE SERVANT: If I jest, then there is truth in a jest. Even yesterday, O king, as I have told thee, the beggar which thou now hearest crying aloud in the street was slain by thy soldiers with a sword.THE KING: Do ghosts eat bread? Forsooth, men who have been slain with a sword do not go about in the streets crying for a piece of bread.THE SERVANT: Forsooth, they do if they are fashioned as this beggar.THE KING: Why, he is but a man. Surely he cannot have more than one life in a lifetime.THE SERVANT: Listen to a tale, O king, which happened yesterday.THE KING: I am listening.THE SERVANT: Thy soldiers smote this beggar for crying aloud in the streets for bread, but his wounds are already healed. They cut out his tongue, but he immediately grew another. They slew him, yet he is now alive.THE KING: Ah! That is a tale which I cannot understand at all.Read this excerpt from The Beggar and the King.THE KING: Then bind him and gag him if necessary. If need be cut out his tongue. I do not like the sound of the fellow's voice. It annoys me very much.THE SERVANT: O king, thy orders were obeyed even yesterday.THE KING: (frowning) No. That cannot be. A beggar cannot cry for bread who has no tongue.THE SERVANT: Behold he canif he has grown another.How does this dialogue affect the action of the story?It prompts the king to order that the beggar be fed and sheltered.It forces the king to examine how poorly he treats his subjects.It causes the king to make a declaration that having two tongues is treasonous.It makes the king become fearful of the beggar and what he might be planning. (Brainliest for correct answer! 20 points)Which statement best describes trade networks in Arabia during the Middle Ages?They were operated by nomadic tribes.They expanded over several continents.They were mainly local, in small markets.They were established by the government. Tiffany promised to sell Lillian her diamond necklace and Lillian promised to pay $2,000. What type of contract is this? I need help! Will give high amount of points, 5 stars and brainiest if you help me get it right. Must explain how you got your answer I have to show my work (thanks). PLEASE HELP ASAP! 100 PTS *TRIGONOMETRY*1. Find the measure of the side indicated (x). Round to the nearest tenth. Show your work to support your answer. (First Picture)2. Find the measure of the angle indicated (x). Round to the nearest tenth. Show your work to support your answer. (Second Picture) PLEASE HELP!!! im mid testQuestion 16Round to the nearest tenth, if necessary.Find the distance between (4, 16) and (12, 27). what is Emotional health Longlinesatsecuritydelayeddeparturesandmissedconnectingflightscansometimestesteventhemostexperiencedairlinetraveler'spatients find the x please!!!! 0.000 064 3 in standard form PLEASE HELPPPPPP...Between which, two months was the largest decrease in profits recorded? What was the amount of the decrease? April to May, $4,000 Question 1 (5 points)Match each country with the correct fact.Column AColumn B1.Mexicoa. 758,449 square miles2.Guatemalab. Quetzales3.El Salvadorc. capital is San Salvador4.El Salvadord. soccer is their most popular sport5.Guatemala -e. bordered by Mexico, Honduras, and Belize Can someone help me with this. Will Mark brainliest.