Explain how a "cap and trade" system works. What are its virtues and drawbacks?
In: Economics
Develop a C++ program that determines the largest and second largest positive values in a collection of data
Prompt the user to enter integer values until they enter any negative value to quit
Create a loop structure of some sort to execute this input cycle
Maintain the largest and second largest integer as the user inputs data
Display the largest and second largest values entered by the user
In: Computer Science
list the names of 5 CASE tools used in Software Engineering. you have to show also its purpose, usage, components, .....
In: Computer Science
You have been hired by a small office to link their five computers in a network. All PC’s have Windows 10 installed. 2 GHz processor, 4 GB of memory, and an 1 TB hard drive. In addition, the office has purchased a simple eight port hub. Security is not a concern for this office. In short, the owners have asked for a simple, inexpensive solution.
In: Computer Science
In: Biology
Consider the student-section-takes DB for an education institution:
student(id, name, dept_name, tot_cred)
section(course_id, sec_id, semester, year, building. room_number, time_slot_id)
takes(ID, course_id, sec_id, semester, year, grade)
Give a SQL query for each of the following operations:
a. Find the buildings of sections taken by Shankar. (hint: join tables, Shankar is a student name)
b. Find all id's of students who have total credit of at least 100 or taken a course with course_id: CS-101 (hint: union)
c. Find the names of students who have not taken a course with course_id: CS-101. (hint: set difference)
d. Find the student id's of students with total credits over 80 who have not taken a course with course_id: CS-101. (hint: set difference)
In: Computer Science
What policies are in place to encourage immigration into the U.S.? What policies are in place to discourage immigration into the U.S.? What do you think of these policies?
In: Economics
Calculate the mean repeat unit molar mass for a sample of poly[ethylene-stat-(vinyl acetate)]that comprises 12.9 weight percentage (wt%) vinyl acetate repeat units. Given that its number-average molar mass is 39.870 g mol. calculate the number-average degree of polymerization of the copolymer.
Answer: mean repeat unit molar mass of the copolymer = 30.67 and the number-average degree of polymerization of the copolymer =1300
In: Chemistry
How do public issues get on the agenda of the legislature?
In: Economics
1.A moving ball(1) collides elastically with an identical stationary ball (2). Ball(2) shoots off to the right along the x axis. What is the final velocity of ball(1) and the final speed of ball (2)?
-------
2.a massless rigid rod with x1=0, m1=6kg, x2=1, m2=2kg
a.what is xc the centre of mass?
b.A force 8*10^10Ng^ (upward) hits m2 for deltaT=10^-10s.
the instant after, what is the final velocity of m2?
c.what is the final velocity of the center of mass and the final angular velocity about the centre of mass?
In: Physics
To be written in C++. A local movie theater has three ticket windows and two computerized ticket kiosks. Some transactions, such as group discounts, can only be done at the ticket windows. An arriving customer looks at the lines, and chooses to stand in the shortest one that can handle his or her transaction. Group sales take four minutes to process. Normal ticket sales take two minutes at a window and three minutes at a kiosk. Internet ticket sales pickups take one minute at a kiosk and two minutes at a window. Write a simulation of this process, using queues to represent the five lines. The data set should consist of randomly arranged customer arrivals, with 5% group sales, 20% Internet ticket sales pickups, and 75% regular ticket sales. A data set will contain 200 customers. All of the customers tend to arrive shortly before the start of a movie, so we are simplifying the simulation to say that they all arrive at the same time. From this simulation, the theater wants you to determine the maximum length of each line, the average waiting time for each line, and the time required for each line to empty. As a hint, think about using a list to create the data set by adding 10 group, 40 Internet, and 150 regular customers and then shuffling the list. The list is then traversed, transferring each customer to the shortest queue that can handle the customer’s transaction.
In: Computer Science
Java
Write a program that will define a hierarchy of classes for Insect, Butterfly, Bee, and Mosquito, and define the attributes that are common to all in the superclass, while defining customized attributes in each subclass. Common attributes may include numberOfWings, numberOfLegs, numberOfEyes. Come up with at least 1 additional attribute for each subclass. Define a polymorphic method, fly(), at each level of the hierarchy, which will print the an imaginary sound that the insect will make when it flies. Define a constructor for each class that will receive the number of wings, the number of legs, and the number of eyes.
Next, write a driver class that will create an arrayList of Insect objects. In the arrayList, add an instance of each of the subclasses, Butterfly, Bee, and Mosquito. Once the arrayList is populated, iterate through the arrayList, and call the polymorphic method fly() for each member of the arrayList. Then, end the program.
In: Computer Science
Two particles, m1 = 2m and m2 = m, are suspended on massless cords of the same length l = 1.00 m so that they touch each other (see Fig. below). Particle 1 is displaced to an angle of 30
In: Physics
(Signalling and Screening) What roles do signalling and screening play in a labour market with asymmetric information?
In: Economics