In: Mechanical Engineering
6. A 200-kg roller coaster reaches the top of the steepest hill with a speed of 5.80 km/h. It then descends the hill, which is at an angle of 35° and is 41.0 m long. What will its kinetic energy be when it reaches the bottom? Assume µk = 0.18.
In: Physics
In: Economics
The MarsX Space Vehicles Company has been very successful. Due to an increase in demand for its STS’s, the company had to hire thousands of scientists, engineers and staff from all over the world. As we all know, not all countries use the same system of measurements. The U.S., Liberia and Burma use the English system; while the rest of the world uses the metric system. In addition scientists use specific scales for some of their applications. To avoid confusion among team members from different countries, the company has commissioned the development and deployment of conversion applications. Your job is to write a program that interchangeably converts between different temperature scales (Celsius, Fahrenheit and Kelvin).
Your job depends on the success of this application. Therefore, make sure you write clean code and test it thoroughly.
Your program must do the following:
Celsius |
Fahrenheit |
Kelvin |
-10.00 |
14.00 |
263.15 |
0.00 |
32.00 |
273.15 |
100.00 |
212.00 |
373.15 |
Fahrenheit |
Celsius |
Kelvin |
-10.00 |
-23.33 |
249.82 |
0.00 |
-17.78 |
255.37 |
100.00 |
37.78 |
310.93 |
Kelvin |
Fahrenheit |
Celsius |
0.00 |
-459.67 |
-273.15 |
100.00 |
-279.67 |
-173.15 |
1000.00 |
1340.33 |
726.85 |
Needed conversion formulas:
From |
To |
Formula |
Celsius |
Fahrenheit |
F = C * (9.0/5.0) + 32 |
Celsius |
Kelvin |
K = C + 273.15 |
Fahrenheit |
Celsius |
C = (F – 32) * (5.0/9.0) |
Fahrenheit |
Kelvin |
K = (F + 459.67) * (5.0 /9.0) |
Kelvin |
Fahrenheit |
F = K * (9.0/5.0) – 459.67 |
Kelvin |
Celsius |
C = K – 273.15 |
Your program must comply with the following constraints:
int getMenuSelection(); /*Displays menu and gets user selection*/
void convertFromCelsius(); /*From Celsius to the other scales*/
void convertFromFahrenheit(); /*From Fahrenheit to the other scales*/
void convertFromKelvin(); /*From Kelvin to the other scales*/
int main()
{
int menuSelection = 0;
do
{
system(“cls”);
menuSelection = getMenuSelection();
switch (menuSelection)
{
case 1: convertFromCelsius();
break;
case 2: convertFromFahrenheit();
break;
case 3: convertFromKelvin ();
break;
case 4: break; /*Do nothing. Exit Condition*/
default: printf(“Please enter a number between 1 and 4 \n”);
system(“pause”);
}
} while (menuSelection != 4);
system(“pause”);
return 0;
}
In: Computer Science
Compare and contrast Ford’s strategy to one of its competitors.
In: Operations Management
Decision Alternatice |
S_1 |
S_2 |
S_3 |
S_4 |
D_1 |
14 |
9 |
10 |
5 |
D_2 |
11 |
10 |
8 |
7 |
D_3 |
9 |
10 |
10 |
11 |
D_4 |
8 |
10 |
11 |
13 |
In: Math
Scenario: Of The Month Club (OTMC)
Consider a System Request that has been received for the following proposed System:
• Of‐the‐Month Club (OTMC) is an innovative young firm that sells memberships to people who have an interest in certain products.
• People pay membership fees for 1 year and each month receive a product by mail. For example, OTMC has a coffee‐of‐the‐month club that sends members one pound of special coffee each month.
• OTMC currently has six memberships (coffee, wine, beer, cigars, flowers, and computer games), each of which costs a different amount.
• Customers usually belong to just one, but some belong to two or more. • When people join OTMC, the telephone operator records the name, mailing address, phone number, e‐mail address, credit card information, start date, and membership plan(s) (e.g., coffee). A new system would allow members to self-enroll via the web. • Some customers request a double or triple membership (e.g., 2 pounds of coffee, three cases of beer).
• The computer game membership operates a bit differently from the others. In this case, the member must also select the type of game (action, arcade, fantasy/science fiction, educational, etc.) and age level.
• OTMC is planning to greatly expand the number of memberships it offers (e.g., video games, movies, toys, cheese, fruit, vegetables), so the system needs to accommodate this future expansion.
• OTMC is also planning to offer 3‐month and 6‐month memberships.
Part 1:
Based on the scenario and the high-level requirements described above, create a set of use cases for an information system that would support OTMC operations as described above. Use the fully developed template available in Canvas
Recommendation: In building the major use cases, follow the four‐step process: identify the use cases, identify the steps within them, identify the elements within the steps, and confirm the use cases.
Part 2:
Draw a context diagram and a Level 0 DFD (Data Flow Diagram) for the use cases you developed in part 1.
In: Computer Science
Q: Why does a prism separate light into different colors ?
In: Chemistry
In: Accounting
State and Local Government Expenditures
The city of San Alameda provides free health care services for the medically indigent (poor and uninsured). Suppose the city has $2 million to spend on these services and private goods. One unit of health care services (e.g. a physician office visit) costs $110. Thus, the budget equation for San Alameda for these two types of goods is:
$2 Million = $P + $110H,
where H is the units of indigent health care services provided, and P is total expenditure on private goods (P is measured in dollars because we assume each unit of P costs $1).
1. If the San Alameda spends equal amounts on indigent health care services and the private good, how many units of health care services are purchased by the city?
2. Suppose the city of San Alameda receives a 40-percent matching grant from the state for spending on indigent health services. Specifically, the state spends $0.40 on indigent health care services for every $1 spent by the city on these services.
2a) If, after receiving the grant, San Alameda spends $1 million on the private good, how many units of indigent health care services are purchased? (Round to nearest whole number)
2b) Under matching grant, how much of total indigent health care expenditures is paid by the state?
2c) What is the effective price of health care services for the city of San Alameda under the matching grant? (Enter a formula to calculate the effective price.. show work)
3. Suppose, instead of a matching grant, the state provided the city of San Alameda a block grant equal to what the state would have spent with the matching grant (2b. above). Suppose, also, San Alameda uses its budget plus the block grant to spend equal amounts on indigent health care services and the private good.
3a) How many units of indigent health care services are purchased by San Alameda?
4. Using relevant economic concepts, explain why a matching grant generally leads to more consumption of a public good than an unrestricted block grant.
In: Economics
In: Accounting
Analyze why Ford Motor Company has chosen to pursue a foreign subsidiary strategy
In: Operations Management
Write a program called distance_square.c that reads an integer n from standard input, and prints an nxn pattern of integers. Each integer is the minimum number of steps required to reach the centre of the square. Steps can only be up, down, left or right (no diagonal movement). the question should be allowed to use only while loop
4 3 2 3 4 3 2 1 2 3 2 1 0 1 2 3 2 1 2 3 4 3 2 3 4
Observing the example above, each integer represents the minimum number of steps required to reach the centre of the square. For example, the top left corner contains the integer 4. The centre of the square can be reached in 4 steps (right, right, down, down).
You can assume n is odd and >= 3.
Make your program match the examples below exactly.
This exercise is designed to give you practice with while loops, if statements and some mathematical operators. Do not use arrays for this exercise!
Note: you are not permitted to use an array in this exercise. and you are suppose to use while loop only!!
./distance_square Enter square size: 3 2 1 2 1 0 1 2 1 2 ./distance_square Enter square size: 9 8 7 6 5 4 5 6 7 8 7 6 5 4 3 4 5 6 7 6 5 4 3 2 3 4 5 6 5 4 3 2 1 2 3 4 5 4 3 2 1 0 1 2 3 4 5 4 3 2 1 2 3 4 5 6 5 4 3 2 3 4 5 6 7 6 5 4 3 4 5 6 7 8 7 6 5 4 5 6 7 8 ./distance_square Enter square size: 15 14 13 12 11 10 9 8 7 8 9 10 11 12 13 14 13 12 11 10 9 8 7 6 7 8 9 10 11 12 13 12 11 10 9 8 7 6 5 6 7 8 9 10 11 12 11 10 9 8 7 6 5 4 5 6 7 8 9 10 11 10 9 8 7 6 5 4 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 4 5 6 7 8 9 10 11 10 9 8 7 6 5 4 5 6 7 8 9 10 11 12 11 10 9 8 7 6 5 6 7 8 9 10 11 12 13 12 11 10 9 8 7 6 7 8 9 10 11 12 13 14 13 12 11 10 9 8 7 8 9 10 11 12 13 14
In: Computer Science
Java Language:
Using program created in this lesson as a starting point, create a circular list with at least four nodes. A circular list is one where the last node is made to point to the first. Show that your list has a circular structure by printing its content using an iterative structure such as a while. This should cause your program to go into an infinite loop so you should include a conditional that limits the number of nodes to be printed to a specific value, for example 20.
Code:
class Node {
int value;
Node nextNode;
Node(int v, Node n)
{
value = v;
nextNode = n;
}
Node (int v)
{
this(v,null);
}
}
class Stack {
protected Node top;
Stack()
{
top = null;
}
boolean isEmpty()
{
return( top == null);
}
void push(int v)
{
Node tempPointer;
tempPointer = new Node(v);
tempPointer.nextNode = top;
top = tempPointer;
}
int pop()
{
int tempValue;
tempValue = top.value;
top = top.nextNode;
return tempValue;
}
void printStack()
{
Node aPointer = top;
String tempString = "";
while (aPointer != null)
{
tempString = tempString + aPointer.value + "\n";
aPointer = aPointer.nextNode;
System.out.println(tempString);
}
}
public class StackWithLinkedList{
public static void main(String[] args){
int popValue;
Stack myStack = new Stack();
myStack.push(5);
myStack.push(7);
myStack.push(9);
myStack.printStack();
popValue = myStack.pop();
popValue = myStack.pop();
myStack.printStack();
}
}
In: Computer Science