Write a C++ program to read in various types of test questions (multiple choice and True/False)...

Write a C++ program to read in various types of test questions (multiple choice and True/False) from a test bank (text file), and load the questions into an array of questions. You will need to implement the following class hierarchy (given in UML):

Once the test bank has been loaded, simply iterate over the array of questions and have each question printed out to the screen.

The test bank (text file) will have the following format:

  • Line 1 will be an integer value, indicating how many questions in the file
  • Each question will start with a line that starts with either "MC" or "TF" followed by a space and then the point value of the question.
  • The next line will be the actual question.
  • If the question was True/False, the following line will be the answer, either "True" or "False"
  • If the question was multiple choice, the following line will be an integer value indicating how many choices will be provided for that question. The following lines will be the choices. There will never be more than 6 choices. The final line following the choices will be the answer: "A" or "B" or "C" or "D" or "E" or "F".

For this assignment, you may download this sample code for reference. A sample test bank file is as follows:

3

TF 5

There exist birds that cannot fly?

true

MC 10

Who was the President of the USA in 1991?

6

Richard Nixon

Gerald Ford

Jimmy Carter

Ronald Reagan

George Bush Sr.

Bill Clinton

E

TF 10

The city of Boston hosted the 2004 Summer Olympics?

false

In: Computer Science

Write a C program that accepts a port number as a command line argument, and starts...

Write a C program that accepts a port number as a command line argument, and starts an HTTP server. This server should constantly accept() connections, read requests of the form
GET /path HTTP/1.1\r\n\r\n
read the file indicated by /path, and send it over the "connect" file descriptor returned by the call to accept().

In: Computer Science

Given that labor is a resource that needs to be used efficiently, what responsibility do you...

Given that labor is a resource that needs to be used efficiently, what responsibility do you feel the government has in decreasing unemployment? Does the negative relationship between inflation and unemployment have any impact on your decision?

In: Economics

When you develop a research project, you need to have a reliable and valid method of...

When you develop a research project, you need to have a reliable and valid method of measurement in your study. Using your anticipated research proposal, how will you address the issues of reliability and validity? What concerns do you have over reliability and validity in your study and how will you overcome these concerns? Next, read two of your classmates’ posts and analyze how they addressed reliability and validity in their studies. Do you have any recommendations for improving reliability and validity?

In: Math

Suppose you have a list containing exactly three integer numbers. Each number could be positive, negative,...

Suppose you have a list containing exactly three integer numbers. Each number could be positive, negative, or zero. Write a C program that first asks the user for each of the numbers. After that, it should determine and display the number from the list that is nearest to the positive number five (5).

Examples:
If the numbers are 0, -3, and 8, then the displayed output is 8.
If the numbers are 6, 5, and 4, then the output is 5.
If the numbers are 3, 4, and 11, then the output is 4.
If the numbers are 4, 1, 6, then it turns out that 4 and 6 are both equidistant from 5. In this situation, the output should be the first number checked that satisfied the criterion. For this example, if you started on the left at 4 and proceeded to the right, the output is 4.

In: Computer Science

Explain the relation between muscles, ATP energy, and the calcium ion

Explain the relation between muscles, ATP energy, and the calcium ion

In: Chemistry

Vertical Analysis of Income Statement The following comparative income statement (in thousands of dollars) for the...

Vertical Analysis of Income Statement

The following comparative income statement (in thousands of dollars) for the two recent fiscal years was adapted from the annual report of Calvin Motorsports, Inc., owner and operator of several major motor speedways, such as the Atlanta, Texas, and Las Vegas Motor Speedways.

Current Year Previous Year
Revenues:
Admissions $106,872 $119,739
Event-related revenue 147,376 142,284
NASCAR broadcasting revenue 187,392 177,354
Other operating revenue 46,360 61,623
Total revenue $488,000 $501,000
Expenses and other:
Direct expense of events $93,696 $95,190
NASCAR purse and sanction fees 120,048 120,240
Other direct expenses 15,616 19,539
General and administrative 207,888 234,969
Total expenses and other $437,248 $469,938
Income from continuing operations $50,752 $31,062

a. Prepare a comparative income statement for these two years in vertical form, stating each item as a percent of revenues. Round to one decimal place. Enter all amounts as positive numbers.

Calvin Motorsports, Inc.
Comparative Income Statement (in thousands of dollars)
For the Years Ended December 31
Current Year Amount Current Year Percent Prior Year Amount Prior Year Percent
Revenues:
Admissions $106,872 % $119,739 %
Event-related revenue 147,376 % 142,284 %
NASCAR broadcasting revenue 187,392 % 177,354 %
Other operating revenue 46,360 % 61,623 %
Total revenue $488,000 % $501,000 %
Expenses and other:
Direct expense of events $93,696 % $95,190 %
NASCAR purse and sanction fees 120,048 % 120,240 %
Other direct expenses 15,616 % 19,539 %
General and administrative 207,888 % 234,969 %
Total expenses and other $437,248 % $469,938 %
Income from continuing operations $50,752 % $31,062 %

b. While overall revenue   some between the two years, the overall mix of revenue sources did change somewhat. The NASCAR broadcasting revenue   as a percent of total revenue by 3 percentage points, while the percent of admissions revenue to total revenue   by 2 percentage points. Overall, it appears that income from continuing operations has significantly improved because of  .

In: Accounting

Using the model of Aggregate Demand and Aggregate Supply as a model, and looking at the...

Using the model of Aggregate Demand and Aggregate Supply as a model, and looking at the section of the chapter called the Recession of 2008 - 2009, discuss what you think caused the recession of 2008-2009. Where you think based on the models of Ag Demand and Ag Supply we are at this time in the recovery?

Are we done with the down-swing of aggregate demand? Has short run aggregate supply shifted back to the right enough to cause us to be a full employment yet? What other considerations come to mind about the process?

In: Economics

3. Please illustrate in one market: a. a $0.15 excise tax b. a $0.15 sales tax...

3. Please illustrate in one market:
a. a $0.15 excise tax
b. a $0.15 sales tax (independently, not a sales and excise tax)
c. Does the legal incidence of the tax affect the economic incidence?
(Be sure to label all graphs and curves.)

In: Economics

Ruston Company Balance Sheet As of January 3, 2019 (amounts in thousands) Cash 9,000 Accounts Payable...

Ruston Company
Balance Sheet
As of January 3, 2019
(amounts in thousands)
Cash 9,000 Accounts Payable 1,200
Accounts Receivable 3,400 Debt 3,600
Inventory 5,100 Other Liabilities 2,100
Property Plant & Equipment 17,500 Total Liabilities 6,900
Other Assets 600 Paid-In Capital 5,900
Retained Earnings 22,800
Total Equity 28,700
Total Assets 35,600 Total Liabilities & Equity 35,600

Transfer the journal entries to T-accounts for the transactions below, compute closing amounts for the T-accounts, and construct a final balance sheet to answer the question.

Journal amounts in thousands

Date Account and Explanation Debit Credit
Jan 4 Cash 55
   Debt 55
Borrowed money from bank
Jan 5 Inventory 14
   Accounts Payable 14
Bought manufacturing supplies on credit
Jan 6 Accounts Payable 7
   Cash 7
Paid money owed to supplier
Jan 7 Cash 12
   Inventory 10
   Retained Earnings 2
Sold and delivered product to customer
Jan 8 Cash 75
   Paid-In Capital 75
Issued stock
Jan 9 Property, Plant & Equipment 44
   Cash 44
Paid cash for machine
Jan 10 Cash 13
   Accounts Receivable 13
Received customer payment

What is the final amount in Total Assets?

Please specify your answer in the same units as the balance sheet.

In: Accounting

A regional automobile dealership sent out fliers to prospective customers indicating that they had already won...

A regional automobile dealership sent out fliers to prospective customers indicating that they had already won one of three different​ prizes: an automobile valued at ​$20000​, a ​$150 gas​ card, or a ​$5 shopping card. To claim his or her​ prize, a prospective customer needed to present the flier at the​ dealership's showroom. The fine print on the back of the flier listed the probabilities of winning. The chance of winning the car was 1 out of 31,433​, the chance of winning the gas card was 1 out of 31,433 and the chance of winning the shopping card was 31,431 out of 31,433. Complete parts​ (a) through​ (d).

a. How many fliers do you think the automobile dealership sent​ out?

b. Using your answer to (a) and the probabilities listed on the flier, what is the expected value of the prize won by a prospective customer receiving a flier?

c.Using your answer to (a) and the probabilities listed on the flier, what is the standard deviation of the value of the prize won by a prospective customer receiving a flier?

d.Do you think this is an effective promotion? why or why not?

In: Math

DataSpan, Inc., automated its plant at the start of the current year and installed a flexible...

DataSpan, Inc., automated its plant at the start of the current year and installed a flexible manufacturing system. The company is also evaluating its suppliers and moving toward Lean Production. Many adjustment problems have been encountered, including problems relating to performance measurement. After much study, the company has decided to use the performance measures below, and it has gathered data relating to these measures for the first four months of operations.

Month
1 2 3 4
Throughput time (days) ? ? ? ?
Delivery cycle time (days) ? ? ? ?
Manufacturing cycle efficiency (MCE) ? ? ? ?
Percentage of on-time deliveries 78 % 74 % 71 % 68 %
Total sales (units) 3780 3618 3433 3304

Management has asked for your help in computing throughput time, delivery cycle time, and MCE. The following average times have been logged over the last four months:

Average per Month (in days)
1 2 3 4
Move time per unit 0.7 0.5 0.6 0.6
Process time per unit 2.3 2.2 2.1 2.0
Wait time per order before start of production 25.0 27.4 30.0 32.4
Queue time per unit 4.9 5.6 6.4 7.3
Inspection time per unit 0.4 0.5 0.5 0.4


Required:

1-a. Compute the throughput time for each month.

1-b. Compute the delivery cycle time for each month.

1-c. Compute the manufacturing cycle efficiency (MCE) for each month.

2. Evaluate the company’s performance over the last four months.

3-a. Refer to the move time, process time, and so forth, given for month 4. Assume that in month 5 the move time, process time, and so forth, are the same as in month 4, except that through the use of Lean Production the company is able to completely eliminate the queue time during production. Compute the new throughput time and MCE.

3-b. Refer to the move time, process time, and so forth, given for month 4. Assume in month 6 that the move time, process time, and so forth, are again the same as in month 4, except that the company is able to completely eliminate both the queue time during production and the inspection time. Compute the new throughput time and MCE.

In: Accounting

Worley Company buys surgical supplies from a variety of manufacturers and then resells and delivers these...

Worley Company buys surgical supplies from a variety of manufacturers and then resells and delivers these supplies to hundreds of hospitals. Worley sets its prices for all hospitals by marking up its cost of goods sold to those hospitals by 6%. For example, if a hospital buys supplies from Worley that cost Worley $100 to buy from manufacturers, Worley would charge the hospital $106 to purchase these supplies.

For years, Worley believed that the 6% markup covered its selling and administrative expenses and provided a reasonable profit. However, in the face of declining profits, Worley decided to implement an activity-based costing system to help improve its understanding of customer profitability. The company broke its selling and administrative expenses into five activities as shown:

Activity Cost Pool (Activity Measure) Total Cost Total Activity
Customer deliveries (Number of deliveries) $ 567,000 7,000 deliveries
Manual order processing (Number of manual orders) 450,000 6,000 orders
Electronic order processing (Number of electronic orders) 270,000 15,000 orders
Line item picking (Number of line items picked) 693,000 420,000 line items
Other organization-sustaining costs (None) 660,000
Total selling and administrative expenses $ 2,640,000

Worley gathered the data below for two of the many hospitals that it serves—University and Memorial (each hospital purchased medical supplies that had cost Worley $34,000 to buy from manufacturers):

Activity

Activity Measure University Memorial
Number of deliveries 11 24
Number of manual orders 0 45
Number of electronic orders 16 0
Number of line items picked 130 230

Required:

1. Compute the total revenue that Worley would receive from University and Memorial.

2. Compute the activity rate for each activity cost pool.

3. Compute the total activity costs that would be assigned to University and Memorial.

4. Compute Worley’s customer margin for University and Memorial. (Hint: Do not overlook the $34,000 cost of goods sold that Worley incurred serving each hospital.)

In: Accounting

1. Using the 'pulp' data from the faraway package in R, determine whether there are any...

1. Using the 'pulp' data from the faraway package in R, determine whether there are any differences between the operators. What is the nature of these differences? (Note; You must do multiple comparisons). Please use R or R studio code. Thanks!

In: Math

Why is diarrhoea an adverse effect of some medications?

Why is diarrhoea an adverse effect of some medications?

In: Biology