c program
//the file's size in bytes
unsigned int fileSize(const char* name){
return 0;
}
//same as fileSize except if the file is a directory then it
recursively finds the size of directory and all files it
contains
unsigned int fileSizeRec(const char* name){
return 0;
}
In: Computer Science
Answer every question in full sentences. For part 2, assume a doctor's appointment and a lab test each cost $100 when determining which plan the consumer should choose.
Review the following insurance plans and then answer the questions below.
Services |
Bronze |
Silver |
Gold |
Monthly cost |
$163 |
$194 |
$245 |
Deductible |
$6,000 |
$4,000 |
$1,000 |
Primary care |
$35 co-pay for three visits, then 20% of co-insurance |
$30 co-pay/provider/day |
$20 co-pay/provider/day |
Specialist visit |
$70 co-pay for three visits, then 20% of co-insurance |
$60 co-pay/provider/day |
$40 co-pay/provider/day |
Preventive care/screening/immunization |
No charge |
No charge |
No charge |
Diagnostic test (x-ray, blood work) |
$35 co-pay or 20% of co-insurance if co-pay limit is reached |
Office visit co-pay or 20% of co-insurance |
Office visit co-pay or 20% of co-insurance |
Level 1 prescription drugs |
$25 co-pay/30-day supply |
$15 co-pay/30-day supply |
$15 co-pay/30-day supply |
Emergency dept. services |
20% of co-insurance |
$350 co-pay/facility/day |
$250 co-pay/facility/day |
Emergency medical transportation |
20% of co-insurance |
20% of co-insurance |
20% of co-insurance |
Urgent care |
$75 co-pay |
$60 co-pay/provider/day |
$60 co-pay/provider/day |
Hospital stay (facility fee, physician/surgeon fee) |
20% of co-insurance |
20% of co-insurance |
20% of co-insurance |
1. Compare the plans above.
In: Finance
5. The table below lists situation in numbers by WHO regions as of May 27, 2020: | |||
Country, Other | Cases | Deaths | TOTAL CASES |
Africa | 85,815 | 2,308 | |
Americas | 2,495,924 | 2,641,734.00 | |
Eastern Mediterranean | 11,452 | 461,042.00 | |
Europe | 2,061,828 | 2,238,054.00 | |
South-East Asia | 6,359 | 224,882.00 | |
Western Pacific | 176,404 | 6,927 | |
TOTALS | 27,046 | 5,837,166.00 |
a. Complete the totals. | ||||
b. What is the probability that a randomly selected person in the Americas? | ||||
c. What is the probability that a randomly selected person in Europe? | ||||
d. What is the probability that a randomly selected person has died of COVID-19? | ||||
e. What is the probability that a randomly selected person is a confirmed case of COVID-19? | ||||
f. What is the probability that a randomly selected person has been either in the America or Europe? | ||||
g. What is the probability that a randomly selected person has neither been in Europe nor in South-East Asia? | ||||
h. What is the probability that a randomly selected person has COVID-19 and is in Western Pacific? | ||||
i. What is the probability that a randomly selected person has died and was in Eastern Mediterranean? | ||||
j. What is the complement of a random selected person not being in the Americas? |
In: Statistics and Probability
A sample of 16 Triple-A minor league baseball teams were selected for statistical analysis. The following data show the average attendance for the 16 teams selected. Also shown are the teams’ records; W denotes the number of games won, L denotes the number of games lost, and PCT is the proportion of games played that were won. Additionally, each teams’ major league association was given. The data are contained in the file named AAA.
Team Name |
League |
W |
L |
PCT |
Attendance |
Buffalo Bisons |
American |
66 |
77 |
0.462 |
8812 |
Lehigh Valley IronPigs |
National |
55 |
89 |
0.382 |
8479 |
Pawtucket Red Sox |
American |
85 |
58 |
0.594 |
9097 |
Rochester Red Wings |
American |
74 |
70 |
0.514 |
6913 |
Scranton-Wilkes Barre Yankees |
American |
88 |
56 |
0.611 |
7147 |
Reno Aces |
National |
80 |
62 |
0.563 |
5765 |
Charlotte Knights |
American |
63 |
78 |
0.447 |
4526 |
Durham Bulls |
American |
74 |
70 |
0.514 |
6995 |
Nashville Sounds |
American |
72 |
68 |
0.514 |
8823 |
Norfolk Tides |
American |
64 |
78 |
0.451 |
6286 |
Richmond Braves |
National |
63 |
78 |
0.447 |
4455 |
Columbus Clippers |
American |
69 |
73 |
0.486 |
7795 |
Indianapolis Indians |
National |
68 |
76 |
0.472 |
8538 |
Louisville Bats |
National |
88 |
56 |
0.611 |
9152 |
Toledo Mud Hens |
American |
75 |
69 |
0.521 |
823 |
In: Statistics and Probability
A particular book publisher is thinking about starting up a new national magazine in a small town. It's thought that this publisher would have to get over 12% of the book market to be financially secure. While planning to launch this magazine, a survey was taken of a sample of 400 readers. After providing an inside look into this magazine, one question asked the participants if they would subscribe to this magazine if the cost didn't exceed $20 per month. Suppose that the number of participants that said they would subscribe is 58.
a. Can this publisher conclude that this proposed magazine will be financially feasible?
b. Suppose that the true value of the overall proportion of readers who will subscribe to this magazine is .13. Was the decision made in part a correct? If not, what type of error was made?
c. State the meaning of a type 1 and type 2 error in the content of this example. What would be the consequences of making these errors to the publisher?
In: Math
Roll-on (Ltd), South Africa , is a specialist
manufacturer of ‘roller door’. In seeking to expand its operations,
it has the opportunity to acquire an American subsidiary company,
Door Dynamics or set up a new division in South Africa. The
relevant figures for these two options are as follows:
Set up new division at home
(RSA)
Costs Rands(millions)
Cost of premises 30. 400
Machinery 22. 000
Annual Sales 16. 000
Annual variable cost 5. 000
Additional head office expense 1. 000
Existing head office expenses 0. 500
Depreciation: machinery (10%) 2 .200
Acquisition (Door Dynamics)
Costs Rands(millions)
Acquire shares from existing shareholders
10. 000
Redundancy cost 2. 500
Annual Sales 18.000
Annual variable cost 9.500
Annual fixed cost 5.500
Consultation fees 5.800
Additional information:
• Project life is 10 years
• Roll-on (Ltd) current cost of capital is 12%
• Inflation in the USA is expected to be below the South African
inflation by 3% per year, throughout the life of the project.(Hint:
use 9% as discount rate)
• Assume the current rate of R16 to 1 USD.
In: Finance
Design a Ship class that has the following members:
• A member variable for the name of the ship (a string)
• A member variable for the year that the ship was built (a
string)
• A constructor and appropriate accessors and mutators
• A virtual print function that displays the ship’s name and the
year it was built.
Design a CruiseShip class that is derived from the Ship class.
The CruiseShip class
should have the following members:
• A member variable for the maximum number of passengers (an int
)
• A constructor and appropriate accessors and mutators
• A print function that overrides the print function in the base
class. The CruiseShip class’s print function should display only
the ship’s name and the maximum number of passengers.
Design a CargoShip class that is derived from the Ship class.
The CargoShip class
should have the following members:
• A member variable for the cargo capacity in tonnage (an int
).
• A constructor and appropriate accessors and mutators.
• A print function that overrides the print function in the base
class. The CargoShip class’s print function should display only the
ship’s name and the ship’s cargo capacity.
After you have created these classes, create a driver program that defines an array pointers to your abstract base class Ship. It should present a menu to allow the user to enter a Cruise Ship or a Cargo Ship. When the user selects cruise ship, it should prompt them for the name, year built, and the number of passengers. When the user selects cargo ship, it should prompt them ffor the name, year built, and the maxium cargo load (in tons). Each selection should create an object that can be stored into your array of pointers. When the program exits, it should display the history of the session which includes each of the objects the user created which will be a combination of cruise ships and cargo ships. An example output is shown here:
Menu
1. Cruise Ship
2. Cargo Ship
3. Quit
Please make your selection: 2
Please enter the name of the ship: Big Bertha
Please enter the year the ship was built: 1975
Please enter the capacity (tons): 50000
Menu
1. Cruise Ship
2. Cargo Ship
3. Quit
Please make your selection: 1
Please enter the name of the ship: Disney Magic
Please enter the year the ship was built: 1998
Please enter the capacity (passengers): 2400
Menu
1. Cruise Ship
2. Cargo Ship
3. Quit
Please make your selection: 3
The history of your session is
Selected Cargo Ship
Name: Big Bertha
Year: 1975
Capacity (tons): 50000
Selected Cruise Ship
Name: Disney Magic
Year: 1998
Capacity (passengers): 2400
In: Computer Science
An author argues that more American-born baseball players have birth dates in the months immediately following July 31 because that was the age cutoff date for nonschool baseball leagues. The table below lists months of births for a sample of American-born baseball players and foreign-born baseball players. Using a 0.01 significance level, is there sufficient evidence to warrant rejection of the claim that months of births of baseball players are independent of whether they are born in America? Do the data appear to support the author's claim? Jan. Feb. March April May June July Aug. Sept. Oct. Nov. Dec. Born in America 384 326 367 347 335 310 310 502 420 432 396 374 Foreign Born 100 81 84 82 95 84 59 91 69 101 102 83 Identify the null and alternative hypotheses for this test. A. Upper H 0: Months of births of baseball players are independent of where they are born. Upper H 1: Months of births of baseball players are dependent of where they are born. B. Upper H 0: The frequency of births is dependent of the month. Upper H 1: The frequency of births is independent of the month. C. Upper H 0: The frequency of births is independent of the month. Upper H 1: The frequency of births is dependent of the month. D. Upper H 0: Months of births of baseball players are dependent of where they are born. Upper H 1: Months of births of baseball players are independent of where they are born. Identify the test statistic. nothing (Round to three decimal places as needed.) Identify the P-value. nothing (Round to three decimal places as needed.) State the final conclusion that addresses the original claim. ▼ Reject Do not reject Upper H 0. There is ▼ sufficient not sufficient evidence to warrant rejection of the claim that months of births of baseball players are independent of whether they are born in America.
In: Statistics and Probability
The cash account for American Medical Co. at April 30 indicated a balance of $97,456. The bank statement indicated a balance of $127,960 on April 30. Comparing the bank statement and the accompanying canceled checks and memos with the records revealed the following reconciling items:
A. | Checks outstanding totaled $30,050. |
B. | A deposit of $19,720, representing receipts of April 30, had been made too late to appear on the bank statement. |
C. | The bank collected $22,149 on a $20,700 note, including interest of $1,449. |
D. | A check for $1,450 returned with the statement had been incorrectly recorded by American Medical Co. as $145. The check was for the payment of an obligation to Targhee Supply Co. for a purchase on account. |
E. | A check drawn for $290 had been erroneously charged by the bank as $920. |
F. | Bank service charges for April amounted to $40. |
Instructions | |
1. | Prepare a bank reconciliation. Refer to the Amount Descriptions list provided for the exact wording of the answer choices for text entries. “Deduct:” or “Add:” will automatically appear if it is required. |
2. | Journalize the necessary entries. The accounts have not been closed. Refer to the Chart of Accounts for exact wording of account titles. |
3. |
If a balance sheet is prepared for American Medical Co. on April 30, what amount should be reported as cash? |
CHART OF ACCOUNTS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
American Medical Co. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
General Ledger | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Amount Descriptions |
|
Bank error in charging check as $290 instead of $920 | |
Bank error in charging check as $920 instead of $290 | |
Bank service charges | |
Check for $920 returned because of insufficient funds | |
Deposit of April 30, not recorded by bank | |
Error in recording check | |
Error in recording April 30 deposit | |
Outstanding checks | |
Note and interest collected by bank |
1. Prepare a bank reconciliation. Refer to the Amount Descriptions list provided for the exact wording of the answer choices for text entries. “Deduct:” or “Add:” will automatically appear if it is required. Whenever there is more than one adjusting item in the bank portion of the reconciliation or the general ledger portion of the bank reconciliation, enter in the order presented in the instructions.
AMERICAN MEDICAL CO. |
Bank Reconciliation |
April 30 |
1 |
Cash balance according to bank statement |
||
2 |
|||
3 |
|||
4 |
|||
5 |
|||
6 |
Adjusted balance |
||
7 |
|||
8 |
Cash balance according to company’s records |
||
9 |
|||
10 |
|||
11 |
|||
12 |
|||
13 |
Adjusted balance |
2. Journalize the necessary entries. The accounts have not been closed. Refer to the Chart of Accounts for exact wording of account titles.
PAGE 1
JOURNAL
ACCOUNTING EQUATION
DATE | DESCRIPTION | POST. REF. | DEBIT | CREDIT | ASSETS | LIABILITIES | EQUITY | |
---|---|---|---|---|---|---|---|---|
1 |
||||||||
2 |
||||||||
3 |
||||||||
4 |
||||||||
5 |
||||||||
6 |
. If a balance sheet is prepared for American Medical Co. on April 30, what amount should be reported as cash?
In: Accounting
Question 4
Fresplanade Co. had the following historical collection pattern
for its credit sales:
75% collected in the month of sale
12% collected in the first month after month of sale
9% collected in the second month after month of sale
3% collected in the third month after month of sale
1% uncollectible
The sales on open account (credit sales) have been budgeted for the
last six months of the year as shown below:
July | $ | 90,000 | |
August | $ | 102,000 | |
September | $ | 114,000 | |
October | $ | 126,000 | |
November | $ | 138,000 | |
December | $ | 120,000 | |
The estimated total cash collections by Fresplanade Co. during November from collection of accounts receivable is:
Multiple Choice
$131,940.
$120,060.
$177,300.
$154,800.
$121,320.
Fresplanade Co. had the following historical collection pattern
for its credit sales:
75% collected in the month of sale
12% collected in the first month after month of sale
8% collected in the second month after month of sale
4% collected in the third month after month of sale
1% uncollectible
The sales on open account (credit sales) have been budgeted for the
last six months of the year as shown below:
July | $ | 87,000 | |
August | $ | 99,000 | |
September | $ | 111,000 | |
October | $ | 123,000 | |
November | $ | 135,000 | |
December | $ | 117,000 | |
The estimated cash collection by Fresplanade Co. during August from July and August credit sales is:
Multiple Choice
$98,850.
$94,380.
$102,090.
$65,250.
$84,690.
In: Accounting