A specially made pair of dice has only one- and two-spots on the faces. One of the dice has three faces with a one-spot and three faces with a two-spot. The other die has two faces with a one-spot and four faces with a two-spot. One of the dice is selected at random and then rolled six times. If a two-spot shows up five times, what is the probability that it is the die with the three two-spots?
(Simplify your answer. Do not round until the final answer. Then round to four decimal places as needed.)
In: Statistics and Probability
1. The office of Stella and Aurora, CPAs, has two offices, one
in Boston and one in Miami. The firm has audited the AJAX Inc. out
of its Boston office for the past ten years. For the following
case, which occurred during the year under audit, indicate whether
the independence of either the CPA involved, or the firm would be
impaired:
Alonso Wade is the father of Lebron Wade, a Miami partner. Alonso
Wade has an immaterial indirect investment in AJAX, Inc. Lebron
Wade is unaware of his father's investment and does not participate
in the audit for AJAX, Inc.
Select one:
a. Independence is not impaired
b. Independence is impaired
2. Audit evidence is ordinarily more reliable when it is:
Select one:
a. Obtained indirectly or by inference rather than directly by the auditor
b. Provided by copies rather than original documents
c. Generated internally through a system of effective controls rather than ineffective controls
d. Obtained from knowledgeable nonindependent sources inside the client company rather than independent sources
In: Accounting
A ski company in Vail owns two ski shops, one on the west side and one on the east side of Vail. Ski hat sales data (in dollars) for a random sample of 5 Saturdays during the 2004 season showed the following results. Is there a significant difference in sales dollars of hats between the west side and east side stores at the 10 percent level of significance?
| Saturday Sales Data ($) for Ski Hats | ||
| Saturday | East Side Shop | West Side Shop |
| 1 | 572 | 590 |
| 2 | 440 | 784 |
| 3 | 613 | 624 |
| 4 | 550 | 530 |
| 5 | 459 | 570 |
(b) State the decision rule for a 5 percent
level of significance. (Round your answers to 3 decimal
places.)
Reject the null hypothesis if tcalc < ( ) or
tcalc > ( ).
(c-1) Find the test statistic tcalc. (Round your answer to 2 decimal places. A negative value should be indicated by a minus sign.)
tcalc ( )
In: Statistics and Probability
PLEASE MAKE THIS TWO DIFFERENT FILES. ONE FOR CLASS (temperature.h) AND ONE FOR temperature.cpp
Objective: This assignment will provide further practice with implementing classes.
Task: For this homework, you will write a class called Temperature, in the files temperature.h and temperature.cpp, for creating and using objects that will store temperatures (like for weather forecasting programs).
This class should be portable, so it should work with any up-to-date C++ compiler.
Program Details and Requirements:
1) An object of type Temperature should represent a temperature in terms of degrees and scale. Degrees should allow decimal precision (so use type double). The three scales possible are Celsius, Fahrenheit, and Kelvin. You may store the scale however you like inside the object, but for any keyboard input or function parameters, scales will come in as type char, where 'C', 'F', 'K' (as well as the lower case versions) are valid options. Your object must always represent a valid temperature -- remember that 0 Kelvin represents the lowest possible temperature in existence (the complete absence of heat). Your object should also store a format setting, to be used for display of temperatures to the screen. There will be more than one possible format. The class features (public interface) should work exactly as specified, regardless of what program might be using Temperature objects.
Note: For purposes of conversions between scales, please remember the following conversion relationships betweeen temperatures:
2) Your Temperature class must provide the following services (i.e. member functions) in its public section. These functions will make up the interface of the Temperature class. Make sure you use function prototypes as specified here. (You may write any other private functions you feel necessary, but the public interface must include all the functionality described here).
Examples: These declarations should be legal, and the comment gives the initialized temperature
Temperature t1; // initializes to 0 Celsius Temperature t2(23.5, 'F'); // initializes to 23.5 Fahrenheit Temperature t3(12.6, 'Z'); // invalid scale, initializes to 0 Celsius Temperature t4(-300, 'c'); // this is below 0 Kelvin, inits to 0 Celsius Temperature t5(15, 'k'); // initializes to 15 Kelvin
Legal: 43.6 k , 53.5 C , 100 F , -273.15 c Illegal: 12.3 q , -5 K , -278 C , -500 F // last 3 are below absolute zero
You may assume that the user entry will always be of the
form:
D S where D is a numeric value and S is a
character
| Name | Format | Example | Explanation |
|---|---|---|---|
| Default | D S | 50.4316 C | This will look mostly like the input from the Input
function. Print the degrees and scale as double and char, with default precision on the degrees, and the scale as an uppercase letter |
| Precision-1 | D.d S | 50.4 C | Degrees printed to 1 place after the decimal, fixed format, and scale printed as an uppercase letter. This output will need to make sure to put the output stream BACK to its original format settings when you are done, (so that output from a main program isn't now set to 1 decimal place for the caller, for example). See this notes addendum for more details on this kind of thing |
| Long | D scale | 50.4316 Celsius | This display format should show the degrees in default precision, and the scale as the full word "Celsius", "Fahrenheit", or "Kelvin" |
'D' = Default format 'P' = Precision-1 format 'L' = Long format
If an invalid setting code is passed in, do not alter the current format setting. This function should return true for successful format change, and false for failure (invalid setting given).
Temperature t1(68.9, 'F'); // 68.9 Fahrenheit
t1.Convert('T'); // invalid scale, no change. Returns false
t1.Convert('c'); // t1 is now 20.5 Celsius
t1.Convert('K'); // t1 is now 293.65 Kelvin
Temperature t1(0, 'C'); // 0 Celsius Temperature t2(31.5, 'F'); // 31.5 Fahrenheit t1.Compare(t2); // returns 1 (since t2 comes first) t2.Compare(t1); // returns -1 (calling object is t2, comes first)
3) General Requirements:
Testing Your Class:
You will need to test your class, which means you will need to write one or more main programs that will call upon the functionality (i.e. the public member functions) of the class and exercise all of the different cases for each function. You do not need to turn any test programs in, but you should write them to verify your class' features.
Here is the beginning of a sample test program to get you started:
// sample.cpp -- sample test program starter for Temperature class
/////////////////////////////////////////////////////////
#include <iostream>
#include "temperature.h"
using namespace std;
int main()
{
Temperature t1; // should default to 0 Celsius
Temperature t2(34.5, 'F'); // should init to 34.5 Fahrenheit
// display dates to the screen
cout << "\nTemperature t1 is: ";
t1.Show();
cout << "\nTemperature t2 is: ";
t2.Show();
t1.Input(); // Allow user to enter a temperature for t1
cout << "\nTemperature t1 is: ";
t1.Show();
t1.SetFormat('L'); // change format of t1 to "Long" format
cout << "\nTemperature t1 is: ";
t1.Show();
// and so on. Add your own tests to fully test the class'
// functionality.
}In: Computer Science
Suppose there is a basket containing one apple and two oranges. A student randomly pick one fruit from the basket until the first time the apple is picked. (Sampling with replacement)
(a) What is the sample space for this experiment? What is the probability that the student pick the apple after i tosses?
(b) What is the expected number of times the students need to pick the apple?
(c) Let E be the event that the first time an apple is picked up is after an even number of picks. What set of outcomes belong to this event? What is the probability that E occurs?
In: Math
In: Operations Management
1. Describe a scenario where two objects are electrically attracted to one another, but one of the objects is neutral in charge
2. What would happen if the force of gravity was stronger than the electrical force between two charges in space?
In: Physics
There are two different types of switching technologies available in today's market. One lives on one layer, while the other resides in a different layer of the OSI model. Locate these switching technologies, describe the differences in functionality, and relate those differences to the functions inherent within the OSI model.
In: Computer Science
Brief two cases--
One that predates the ACA, and
One after ACA’s passage, that demonstrates the importance of compliance with these laws:
Stark Law, Anti-Kickback Statute, Fraud, Waste, and Abuse claims for all applicable violations of CMS, False Claims Act.
In: Operations Management
Briefly summarize one additional article on Green IT in one to two paragraphs. (Make sure this is from a scholarly source, and not a website). Be sure to cite in APA.
In: Computer Science