C Programming The score table will be printed by reading the match information made between the...

C Programming

The score table will be printed by reading the match information made between the teams.

It is not known how many teams. The team information will be kept in a dynamically changed memory area as the new team enters. The match list should also be kept in a dynamic area that is recorded as new match information is entered.

There should be 2 structs in the program.

Mac struct: Consists of 1st team name, 2nd team name, 1st team goal, 2nd team goal information.

Team struct: consists of team name (one word, 20), number of wins, number of draws, number of defeats, number of goals scored, number of goals eaten, point.

Example input: abc xyz 3 1 (Information will be entered completely and correctly.)

A single line of match information, with a space between them, 1 Team name, 2 Team name, 1.

The goal scored by the team will be entered as the goal scored by the 2nd team. In the case where the above example is the first match information entered for these teams, two teams will be identified in the abc and xyz names, and will be added to the team list, since there are no teams defined in these names yet. At the same time, a match struct will be defined, this match struct will be added to the match list, and all information of both teams in the team struct will be updated with this match information.

If the above example is not the first match information entered about the abc and xyz teams, since both teams will be defined before, these teams will be found in the teams list and their relevant information will be updated.

In summary, for the above entry, if the team has not yet been identified in these names, both teams will be identified and added to the team list. The number of victories of the ABC team will be increased by one, the number of goals scored will be increased by 3, the number of goals scored will be increased by 1, and the score will be increased by 3. The xyz team's number of defeats will be increased by 1, the goal scored will be increased by 1, the goal it has scored will be increased by 3, its score will be reduced by 1. (wins 3 points, draw 1 point, defeat -1 point). The match struct will be added to the match list.

After entering the match information, the scoreboard will be printed.

Scoreboard: The information in the team struct will be printed one after the other in the order given in the description. The scoreboard should be in descending order according to the score. In case of score equality, the team with a high average score (goals scored and goals scored) should be on the top. It can be assumed that the score and average will not be equal teams.

After the scoreboard is printed, the user will receive a sequence number from 1-teamnumber, and the matches of the team in the row entered will be listed. Unless -1 is entered, the sequence number will be read again after printing the information of a tool, and the program will end when -1 is entered. If a number between 1-teamnumber or an entry other than -1 has been made, an appropriate message will be given and the entry will be waited again.

In: Computer Science

Convert the following switch statement into if-else statements: int month = input.nextInt(); switch (month) { case...

Convert the following switch statement into if-else statements:

int month = input.nextInt();
switch (month) {

case 1: System.out.println(“January”);

case 2: System.out.println(“February”); break;

case 3: System.out.println(“March”); break;

case 4: System.out.println(“April”);

case 5: System.out.println(“May”); break;

default: System.out.println(“Invalid”); break;

}

example:

if (month == 1) {

System.out.println("January");

System.out.println("February"); }
if (month == 2)
{ System.out.println("February");
  
}
}
}

Please continue the code! Thanks

In: Computer Science

Passage require analysis and breakdown We all know the Corona Virus has affected destroyed the country...

Passage require analysis and breakdown






We all know the Corona Virus has affected destroyed the country and our economy. All businesses including the healthcare industry have taken a huge loss. The organization I work for has seen a dramatic decrease in the number of patients being admitted. Due to this, the organization isn’t making as much revenue as we normally would under any normal circumstances. Two key strategic decisions made by my organization include shutting down those units with little to no patients, which includes the layoff of several employees, and minimizing the number of supplies being used. Although, the organization did not want to enforce these decisions, they were strategically necessary to keep the hospital profitable.
One optimization model discussed in the text is linear programming. “Linear programming is a problem-solving approach developed to help managers make decisions” (Anderson, Sweeney, Williams, Camm, Cochran, Fry, & Ohlmann , p.250). Linear programming includes maximizing or minimizing some quantity as the objective. In the example provided above, my organization was trying to minimize the amount of expenses and maximize their profits. All linear programming problems also have a second property: restrictions or constraints that limit the degree to which the objective can be pursued. A constraint faced by the organization is the possibility of an influx of patients and not having enough staff or supplies to safely care for the patients. By developing a problem formulation, the organization can develop a mathematical model. “Problem formulation is the process of translating a verbal statement of a problem into a mathematical statement. The mathematical statement of the problem is referred to as a mathematical model” (Anderson, Sweeney, Williams, Camm, Cochran, Fry, & Ohlmann, p.252). This allows the organization to identify their objective, their constraint, and identify their best course of action. Had the organization done this to begin with, maybe there could have been another course of action taken to limit expenses and maximize profits that would not have involved laying off so many employees.


question ---critically analyze this passage

In: Operations Management

IV. More practice with momentum and collisions A. A skater of mass 45.0 kg standing on...

IV. More practice with momentum and collisions A. A skater of mass 45.0 kg standing on ice throws a stone of mass 7.65 kg with a speed of 20.9 m/s in a horizontal direction. Find: 1. The speed of the skater after throwing the stone. 2. The distance over which the skater will move in the opposite direction if the coefficient of kinetic friction between his skates and the ice is 0.03. Include an energy bar chart in your solution. B. A tall man walking at 1.25 m/s accidentally bumps his head of mass 2.95 kg on a steel doorframe. His head stops in 0.011 s. 1. What is the magnitude of the average force exerted by the doorframe on the man's head? 2. Explain why putting padding on the doorframe would help reduce this force.

In: Physics

how was cognitive therapy developed?

how was cognitive therapy developed?

In: Psychology

Thermal Rising, Inc., makes paragliders for sale through specialty sporting goods stores. The company has a...

Thermal Rising, Inc., makes paragliders for sale through specialty sporting goods stores. The company has a standard paraglider model, but also makes custom-designed paragliders. Management has designed an activity-based costing system with the following activity cost pools and activity rates:

Activity Cost Pool Activity Rate
Supporting direct labor $ 22 per direct labor-hour
Order processing $ 188 per order
Custom design processing $ 263 per custom design
Customer service $ 436 per customer

Management would like an analysis of the profitability of a particular customer, Big Sky Outfitters, which has ordered the following products over the last 12 months:

Standard
Model
Custom
Design
Number of gliders 10 3
Number of orders 2 3
Number of custom designs 0 3
Direct labor-hours per glider 27.50 31.00
Selling price per glider $ 1,600 $ 2,320
Direct materials cost per glider $ 458 $

576

The company’s direct labor rate is $18 per hour.

Required:

Using the company’s activity-based costing system, compute the customer margin of Big Sky Outfitters. (Round your intermediate calculations and final answer to the nearest whole dollar amount. Loss amounts should be entered with a minus sign.)

In: Accounting

Explain what the following Scheme code is doing: (define (make-stream n f) (define (next m) (cons...

Explain what the following Scheme code is doing:

(define (make-stream n f)
  (define (next m)
    (cons m (lambda () (next (f m)))))
  (next n))

(define head car)

(define (tail stream)
  ((cdr stream)))

(define (nth stream n)
  (if (= n 0) (head stream)
    (nth (tail stream) (- n 1))))

(define even (make-stream 0 (lambda (n) (+ n 2))))

Try it out in Scheme48 and check the values of the following expressions:

even
(head even)
(head (tail even))
(head (tail (tail even)))
(head (tail (tail (tail even))))
(nth even 5)
(nth even 1000)

Explain what the lambda in make-stream is good for, where this function is called, and how tail and nth work. To see what’s going on, trace manually through the execution of

(head (tail (tail even)))

In: Computer Science

Iron deficiency anemia is an important nutricional health problem in the US. Adietary assessment was performed...

Iron deficiency anemia is an important nutricional health problem in the US. Adietary assessment was performed on 51 boys 9 to 11 yrs of age whos families were bellow the proverty level. the mean daily iron intake among these bous was found to be 12.50mg with standar deviation 4.75mg. Suppose the daily intake among all income is 14.44mg.

A) Conduct a 5-step significance test (alpa= .01) whether the mean iron intake among the low income group is significantly lower from that of the general population.
B)Sketch and label the sampling distribution and include the test statistic and the rejection region.
C) explain the P-value
D) Conduct a 99% confidence interval.

In: Math

Background: The advantage of wireless signals is that they radiate out in all directions, even penetrating...

Background: The advantage of wireless signals is that they radiate out in all directions, even penetrating walls to a certain extent. Of course, the very ability of wireless signals also causes problems.

Answer the following questions:

  • Describe a situation where we would want to block a wireless signal
  • Describe a method to block the signal and provide a link to a source for your method or materials
  • Give at least one reason why someone might find your solution impractical

In: Computer Science

A gas expands from an initial volume of 4.88 L to a final volume of 6.33...

A gas expands from an initial volume of 4.88 L to a final volume of 6.33 L against an external pressure of 810. mmHg. During the expansion the gas absorbs 10. J of heat. What is the change in the internal energy of the gas?

In: Chemistry

An organic liquid is a mixture of methyl alcohol (CH3OH) and ethyl alcohol (C2H5OH). A 0.220-g...

An organic liquid is a mixture of methyl alcohol (CH3OH) and ethyl alcohol (C2H5OH). A 0.220-g sample of the liquid is burned in an excess of O2(g) and yields 0.347 g CO2(g) (carbon dioxide).

Set up two algebraic equations, one expressing the mass of carbon dioxide produced in terms of each reagent and the other expressing the mass of sample burned in terms of each reagent.

What is the mass of methyl alcohol (CH3OH) in the sample?

In: Chemistry

There has been considerable debate about whether children raised with more than one language initially acquire...

There has been considerable debate about whether children raised with more than one language initially acquire a single system and gradually learn to separate the linguistic codes to which they are exposed or whether languages are differentiated from a very early stage. In a clearly written essay, summarize the claims of the proponents of the different positions and the evidence used to support those claims.

In: Economics

List the allowed quantum numbers ml and ms for the following subshells and determine the maximum...

List the allowed quantum numbers ml and ms for the following subshells and determine the maximum occupancy of the subshells. a) 2p b) 3d c) 4f d) 5g

In: Chemistry

Vancouver manufacturing Ltd. manufactures a variety of high quality electronic components. Data from the last three...

Vancouver manufacturing Ltd. manufactures a variety of high quality electronic components. Data from the last three months are presented below:

July

August

September

Direct materials partial productivity

0.76

0.77

0.78

Overtime hours worked

60

65

62

Defect rate

1.00%

0.95%

0.92%

On time delivery

97.0%

97.3%

97.0%

Set up time (average in hours)

5.90

5.85

5.80

Number of machine breakdowns

3

2

2

Downtime (hours)

15.0

11.5

11.0

Number of products returned

5

4

3

Throughput time (hours)

10.0

9.8

9.5

You are the controller for Vancouver manufacturing and you are reviewing the performance over the last 3 months. In addition, the controller notes that the company, although it has many detailed performance measures, is considering implementing a balanced scorecard and asks you to identify the measures you think would be most appropriate to include in the balanced scorecard.

Required:

Evaluate the performance of the company and prepare a detailed Balanced Scorecard.

In: Accounting

IN PSEUDOCODE AND JAVA SOURCE CODE PLEASE: Program 0 (Warm-up, 40 pts): Deoxyribonucleic acid, or DNA,...

IN PSEUDOCODE AND JAVA SOURCE CODE PLEASE:

Program 0 (Warm-up, 40 pts): Deoxyribonucleic acid, or DNA, is comprised of four bases: (G)uanine, (C)ytosine, (A)denine and (T)hymine. Ribonucleic acid, or RNA, is different than DNA in that it contains no Thymine; thymine is replaced with something called (U)racil. For this assignment, you will create an array of 255 characters. You must start by filling the array with random characters of G, C, A and T.   You must then print out the array. Next, replace all the instances of Thymine with Uracil. Finally, you must print out the array again. In your solution, you must write at least one function that contributes to the solution. You must use the length attribute of the array in your answer.

Sample run

CATGGCGTCTTGCCAAGGCGGTTCCTTGTCTTGATGATGGCTGCGAGTTCCGAGTCGCCTTTTCTATGAGTCGCGAAGTATGCGGTCAAATTATGCTTGTCCGCTGTACTAGGCCCACGGATCTCCTCAGACAGCGTCGATGTCGGAATTCGCGGGGAGGAATACTAAACATGCTGAAGTTGATACATGTACAATTGCCGCGAACCAGGTGCACAGGGTGCCCAACGATCCATGTGGAACGAGAGCGATCTAGCC

CAUGGCGUCUUGCCAAGGCGGUUCCUUGUCUUGAUGAUGGCUGCGAGUUCCGAGUCGCCUUUUCUAUGAGUCGCGAAGUAUGCGGUCAAAUUAUGCUUGUCCGCUGUACUAGGCCCACGGAUCUCCUCAGACAGCGUCGAUGUCGGAAUUCGCGGGGAGGAAUACUAAACAUGCUGAAGUUGAUACAUGUACAAUUGCCGCGAACCAGGUGCACAGGGUGCCCAACGAUCCAUGUGGAACGAGAGCGAUCUAGCC

In: Computer Science