Questions
A specially made pair of dice has only​ one- and​ two-spots on the faces. One of...

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...

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...

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...

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:

  • Celsius = (Fahrenheit - 32) X (5/9)
  • (or) Fahrenheit = (Celsius X 9/5) + 32
  • Celsius = Kelvin - 273.15

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).

  • the constructor(s):
    The Temperature class should have a constructor that allows the user to specify the values for the degrees and scale, using types double and char, respectively. If any of the values would result in an invalid temperature, the constructor should throw out the erroneous information and initialize the object to represent 0 Celsius, by default. Also, you should allow a Temperature object to be declared without specified parameter values, in which case it should initialize to 0 Celsius (the default).

    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
  • void Input()
    This function should prompt the user to enter a temperature, and then allow the user to input a temperature from the keyboard. User input is expected to be in the format degrees scale, where degrees allows values with decimal precision, and scale is entered as a character. Whenever the user attempts to enter an invalid temperature, the Input function should display an appropriate error message (like "Invalid temperature. Try again: ") and make the user re-enter the whole temperature. A few examples of some good and bad inputs:
     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

  • void Show()
    This function should simply output the temperature to the screen. There will be more than one possible format for this output, however, and your class will need to store a format setting. The Show function should use the format setting to determine the output. (There will be a member function that allows the setting to be changed). When a Temperature object is created, the format setting should start out at the "Default" setting. The possible formats are shown in the following table:
    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"

  • bool Set(double deg, char s)
    This function should set the temperature to the specified values (the first parameter represents the degrees, the second represents the scale If the resulting temperature is an invalid temperature, the operation should abort (i.e. the existing stored temperature should not be changed). This function should return true for success and false for failure (i.e. invalid temperature sent in).
  • double GetDegrees()
    char GetScale()
    These are "accessor" functions, and they should return the degrees and scale to the caller, respectively.
  • bool SetFormat(char f)
    This function allows the caller to change the format setting. The setting should be adjusted inside the object based on the character code passed in. This means that future uses of the Show function will display in this given format until the format is changed. The valid setting codes that can be passed in are:
     '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).

  • bool Convert(char sc)
    This function should convert the current temperature (i.e. the calling object) so that it is now represented in the new scale given in the parameter. You'll need to use the temperature conversion factors for this. If the scale provided is invalid, abort the operation and do not change the current temperature. Otherwise, convert the temperature to the new scale, so that it is equivalent to the previous representation. Return true for success, false for failure (i.e. invalid scale). Examples:
      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
    
  • int Compare(const Temperature& d)
    This function should compare two Temperature objects (the calling object and the parameter), and should return: -1 if the calling object is the lower temperature, 0 if the objects represent the same temperature, and 1 if the parameter object is the lower temperature. The function should not change either original object. Example:
      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:

  • all member data of the Temperature class must be private.
  • The const qualifier must be used on any member functions where it is appropriate
  • the only libraries that may be used in these class files are <iostream>, <iomanip>, <cctype>, and <string>. Note that you may use the string class to store the words like "Celsius", etc. Although this class can easily be written without using class string.
  • Do not use langauge or library features that are C++11-only
  • You only need to do error-checking that is specified in the descriptions above. If something is not specified (e.g. user entering a letter where a number is expected), you may assume that part of the input will be appropriate. You must always maintain a valid temperature object (in all your functions), but for keyboard input, you may assume that if you ask for a double, you will get a number (not words), for example.
  • user input and/or screen output should only be done where described (i.e. do not add in extraneous input/output).
  • no global variables, other than constants

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...

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

Identify two organizations, one which is founded on Christian principles and one which is founded on...

Identify two organizations, one which is founded on Christian principles and one which is founded on secular principles. Compare and contrast the cultures of these two organizations.

In: Operations Management

1. Describe a scenario where two objects are electrically attracted to one another, but one of...

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...

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...

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...

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