hexagon

hexagon

Lv1

HexagonSt. Joseph University

0 Followers
0 Following
0 Helped

ANSWERS

Published7

Subjects

Computer Science3Accounting1Statistics3
Answer: # This method calculates the average score of a list of scores. def ca...
Answer: To compute the mean and variance of the t-distribution with n degrees ...
R Functions Values Table 1: (Normal distribution) The results in Columns 2 and 4 are the output from an R command, specified in the column header. Columns 2 is pnorm() calls of inputs in Column 1, and Columns 4 is qnorm() calls of inputs in Column 3. Input q pnorm(q, lower.tail = TRUE) -2.577 0.0049 -1.438 0.0752 -1.053 0.1462 -2.920 0.0018 Input p qnorm(p, lower tail = TRUE) 0.01 2.326 0.005 2.576 0.05 1.6.15 0.025 1.960 Table 2: (t-distribution) Each of the results in columns 2-4 is the output from an Rcommand: pt(q, df = ??, lower tail = FALSE) and qt(p, df = ??, lover.tail = FALSE) with degrees-of-freedom, df, given by the column headers. Input q df = 5 de 7 df=18 2.577 0.02418 0.0183 0.0095 1.438 0.1050 0.0968 0.0838 1.053 0.1703 0.1637 0.1531 2.920 0.0165 0.0111 0.00-16 Input p df = 5 df= 7 df= 18 0.005 4.032 3.500 2.878 0.025 2.571 2.365 2.101 0.05 2.015 1.895 1.734 (1) (Hypothetical problem) Two friends in MATH 1052H class were arguing whether learning the R programming languages helps in landing a professional job in the future. To settle their dispute, they decided to make a hypothesis test at 1% significance level and took two independent samples of 50 alumni who learned R some time in their degree program and 40 alumni who never learned R at any point in their degree program. Of the 50 alumni who learned R in their degree program, 37 said that they landed their first professional job within a year. Of the 40 alumni who never learned R at any point in their degree program, 19 said that they landed their first professional job within a year. Answer the following questions. (a) Identify the two populations. (b) State the null and alternative hypotheses. (c) Compute the value of the test statistics. (a) Find the p-value (e) State your decision. (f) At 1% significance level, do the data support that learning R programming language helps landing a professional job in the future. Table 3: (x-distribution) Each of the results in columns 2-4 is the output from an R command: pchisq(q, df = ??, lower tail - FALSE) and qchisq(p, df - ??, lower tail - FALSE) with degrees-of-freedom, df, given by the column headers. Input q df = 5 df= 7 df= 18 2.577 0.7649 0.92121 1.438 0.9201 0.9844 1 1.053 0.9582 0.9939 1 2.920 0.7123 0.8923 1 Input pdf = 5 df= 7 df= 18 0.005 4.032 3.500 2.878 0.025 2.571 2.365 2.101 0.05 2.015 1.895 1.734
Answer: R Functions Values Table 1: (Normal distribution) The results in Colum...
Answer:The Fill tool in Microsoft Excel is a powerful tool that can be used to...

You have been hired by a file hosting streaming service to write a program that will calculate the cost of a user to store and stream audio files. The streaming platform hosts two types of audio files: MPEG-Layer 3 (MP3) and Waveform Audio (WAV). These files can be streamed in three different sound qualities, where WAV files can also be streamed in Mono or Stereo. Your source code must use menu-driven logic to allow for the user to enter the following audio file information: the file type, the bitrate of sound quality, and the sound type (for WAV files). After entering the audio file information, the user must enter the duration of the file in minutes and seconds. On this streaming service, files have a maximum duration of 180 total minutes per file. Once the file information and the duration of the stream have been entered, the file size must be calculated in Megabytes (MB) based on the file information and duration. For metrics purposes, the cost per minute of the stream as well as the cost per MB of the stream must be calculated. Calculate the total cost of the stream including tax and display a bill for the stream of the file. See the Sample Output. The streaming service tax rate is 7.23%. Use named constants (declared in your program using the 'const double ' naming convention) to hold the cost per minute (bitrate) of each of audio quality types, the base subtotal of the stream (based on duration in total minutes and seconds), and the streaming service tax rate. Use the constants in your calculations and wherever else they are appropriate in your program.

Ā 

Ā 

Ā 

Ā 

Use the following table to calculate bitrates for streams based on File Types, Sound Type (where applicable) and Sound Quality. Each bitrate must be stored in a named constant in your source file based on the instructions above:

Ā 

Ā 

Ā 

Ā 

NOTE - MP3 Files on this platform do not have 'Sound Type' attributes, only WAV files.

Ā 

File Type Quality Bitrate MP3 Standard - 160kbps 1.20 MB per minute Premium - 192kbps 1.44 MB per minute Ultra Quality - 320kbps 2.40 MB per minute WAV Sound Type Quality Bitrate Mono Standard Quality - 16 bit, 44.1 KHz 5.29 MB per minute Premium Quality - 24 bit, 48 KHz 8.64 MB per minute Ultra Quality - 24 bit, 96 KHz 17.28 MB per minute Stereo Standard Quality - 16 bit, 44.1 KHz 10.58 MB per minute Premium Quality - 24 bit, 48 KHz 17.28 MB per minute Ultra Quality - 24 bit, 96 KHz 34.56 MB per minute

Ā 

Ā 

Ā 

Ā 

Ā 

Use the following table to calculate the subtotal based on the duration of the stream in total minutes and seconds.

Ā 

NOTE: Each base subtotal must be stored in a named constant per the instructions above.

Stream Length Base Subtotal 10 minutes or less $1.99 more than 10 minutes and less than 30 minutes $5.99 more than 30 minutes and less than 60 minutes $9.99 more than 60 minutes $12.99

Ā 

Ā  Ā  Project 2 is a continuation of Project 1. For this part of the project, you will add a third menu to control the operation of the program. This menu should give the user the ability to process a single MP3 or WAV file, process multiple randomly generated recording files, or quit the program. For this new menu only, you must validate the userā€™s menu choice so that only values of A, B, or C are accepted and users have an unlimited number of chances to enter a valid menu choice. Your program must continue to run until the user chooses the ā€œquitā€ option from your menu.

Ā 

Steps:

  1. Add a menu to offer the user a choice of processing a single recording file, processing multiple recording files, or quit the program. This menu must consist of the first outputs displayed when your program begins executing. The menu format should match the one in the Sample Run Video. Ā 
  2. If option A is selected, the program must allow for the user to enter and process the same information for a single audio file from project 1.Ā 
  3. Allow the user to continue making menu choices until they choose the option to quit. Always display the menu before prompting the user for a menu option.Ā  Properly handle an invalid menu choice. Your program code must allow the the user to have an unlimited number of chances to enter a valid menu choice.
  4. Update all previous input validations from Project 1 to allow the user unlimited chances to enter valid information if an invalid input of a menu choice or value is entered. Since this is a level 100 course, cross data type input validation is not required.
  5. Add functionality to display randomly generated recordings. When the user selects the option to process multiple recording files, file information must be created and displayed for every file generated. The user must be asked to enter the number of recording files they would like to generate, then random values must be used to generate the audio file type (MP3 or WAV), the bitrate quality, and the mono or stereo file type (if a WAV file is generated), and the duration in minutes and seconds (if necessary up to 180 total minutes per recording). Each audio file information display generated should present the recording number, file type (MP3 or WAV), the sound type (Mono or Stereo, if a WAV file is generated), the bitrate quality of the file, the duration of the recording in minutes (and seconds, if necessary), the file size, subtotal, cost per minute of the recording, the cost per MB of the recording, the streaming tax for the file, and the total cost for the file stream. See theĀ Sample Run Video for what each audio file output must contain. The example contains 5 outputs, but your program must be able to process any number of recordings based on the number of recordings the user chooses. Validate the input of the number of recordings so that the user must enter at least 1 recording and no more than 25 recordings. Give the user an unlimited amount of chances to enter the a valid number of recordings. Once all of the information from the recordings has been processed, display the total recordings streamed on the instance of this option being selected, the total MB streamed, the total duration of streams in minutes and seconds, and the total cost of all streams generated. This logic must execute in the event that option B is selected from the main menu.
  6. If option C is selected from the main menu, the program must quit.
Answer: def calculate_calories_burnt(weight, activity, time): """Calculates th...
Answer: Features of Java language are Platform Independence: Java programs can...
Answer:To calculate the fair value consideration (Costs of investment) transfe...

Weekly leaderboard

Start filling in the gaps now
Log in