Previously, you wrote a program named Admission for a college admissions office in which the user enters a numeric high school grade point average and an admission test score. The program displays Accept or Reject based on those values. Now, create a modified program named AdmissionModularized in which the grade point average and test score are passed to a method that returns a string containing Accept or Reject.
CODE:
using System;
using static System.Console;
class Admission
{
static void Main()
{
double gpa;
int testScore;
const double MINGPA = 3.0;
const int ADMIN1 = 60, ADMIN2 = 80;
string inputString;
WriteLine("Enter grade point average ");
inputString = ReadLine();
gpa = Convert.ToDouble(inputString);
WriteLine("Enter test score ");
inputString = ReadLine();
testScore = Convert.ToInt32(inputString);
if(gpa >= MINGPA)
if(testScore >= ADMIN1)
WriteLine("Accept");
else
WriteLine("Reject");
else
if(testScore >= ADMIN2)
WriteLine("Accept");
else
WriteLine("Reject");
}
public static string AcceptOrReject(double gpa, int testScore)
{
// Write your AcceptOrReject method here.
}
}
In: Computer Science
NFL Green Bay Packers play on Lambeau field in Wisconsin. The total cost of operations and maintenance for each year is $27 million and 6 home games are played per year. The cost to pay the players is $10,000,000 per year.
Each games operating cost is $2,833,333.33
Estimate the cost of running your stadium on game day. (Include the cost of utilities ($708,333.33), security ($708,333.33), maintenance on and off the field ($708,333.33), employees ($708.333.33), etc. Ignore concession and merchandise stands.
Also, assume the stadium is paid for meaning there is no outstanding debt.)
Estimate the average ticket price based on professional or school website research. ($35.54 per ticket). 81,441 tickets sold per game
Provide your reasoning/assumptions for your estimates (explain how you came up with the figures you include in your estimates).
Calculate the breakeven point in tickets using the unit breakeven formula from the textbook. Show your calculations in your posting.
Based on your breakeven calculation compare that breakeven tickets number to the stadium’s capacity. Is your breakeven point reasonable?
In: Accounting
A team of visiting polio eradication workers were informed during their orientation session that population-wide studies done in their host country showed that the risk of polio in villages of that country was strongly epidemiologically associated with the village’s economic/human development circumstances, which ranged greatly from village to village. In some villages, residents lived in hand-constructed huts with no running water, no latrines or sewage disposal areas, and no electricity. In other places, residents lived in wooden or adobe homes which, though modest by Western standards, had all of the above services in place and whose street side craft shops and food markets did a brisk business, catering both to locals and visitors.
Knowing this information, the team went into several villages and attempted to assign a “human development rating” to each family. This was based on that family’s income situation, access to running water, access to elementary school for their children, and the condition of the home. To their surprise, they found that families in all the villages had no difference in polio risk based on the family’s human development rating.
In: Math
Consider your behavior for the past two weeks and make a note of any or all of the following:
- Appointments or classes for which you were late or missed altogether
I was late to classes because I coud not find parking
- Slips of the tongue
I said something mean to my little sister when she frustrated me and I was stressed about school work
- Memory lapses
I saw something on TV that made me think of an awful past relationship I had.
- Any “accidents” you had
I was so hungry I skimmed reading the directions to frozen gardein meatballs and did not see that they needed to have sauce on top. My whole house was soon filled with smoke and it still smells awful almost 2 weeks later.
- Any jokes you heard and found amusing
Jokes that my little sister and dad told me this holiday weekend.
Analyze these everyday experiences with the idea they may reflect the contents of your unconscious mind. Summarize your conclusions from a Freudian perspective.
In: Psychology
Question 2 [50 Marks] – macroeconomic economic indicators Most developing countries such as South Africa, Zambia, Tanzania, Mozambique, Nigeria etc., are battling to contain inflation at desirable levels. On the other hand, some developed economies are battling with deflation. Using relevant macroeconomic theories to support your arguments: a. Write a detailed review of the challenges posed by deflation within an economy. Your answer should cover all sectors including the business, government and the society as well as other macroeconomic indicators (GDP, unemployment, interest rate, etc.,). [25 Marks] b. As an economist, write a policy brief to the parliament of a country that is attempting to find the correct policy mix to take the country out of a deflationary period. Your policy brief should demonstrate a clear understanding of relevant macroeconomic PBA4801 Economics for Managers Jan 2020 S1 Page 30 of 32 © UNISA Graduate School of Business Leadership models/theories and must cover both fiscal and monetary policies focusing on all actors of the economy (business, public sector, government, society etc.,). [25 Marks]
In: Economics
The purpose of this assignment is to have you become familiar with polymorphism and be able to design classes with inheritance
The purpose of this assignment is to have you become familiar with polymorphism and be able to design classes with inheritance. Task The School Library has many items available for its students; some can be checked out and others cannot. Among those that can be checked out are journal (i.e., a literary journal) and digital video disk (i.e., a DVD). These two types have many attributes in common such as title, publisher, and dewey decimal classification. Design a class to represent the library item that would capture the common features among journals and DVDs. Then, design journal and digital video classes that are derived from the library item base class.
The library item class does not need more attributes (you can use the ones provided if you like), but you should add at least 2 methods to the class. The journal and digital video classes should have at least 3 attributes and at least 2 methods.
I need a java code for this.
In: Computer Science
1.) Explain why there is an inverse relationship between committing a Type I error and committing a Type II error. What is the best way to reduce both kinds of error?
2.) Define the sampling distribution of the mean
3.) A random sample of size 144 is taken from the local population of grade-school children. Each child estimates the number of hours per week spent watching TV. At this point, what can be said about the sampling distribution? (b) Assume that a standard deviation, σ, of 8 hours describes the TV estimates for the local population of schoolchildren. At this point, what can be said about the sampling distribution? (c) Assume that a mean, µ, of 21 hours describes the TV estimates for the local popula-tion of schoolchildren. Now what can be said about the sampling distribution? (d) Roughly speaking, the sample means in the sampling distribution should deviate, on average, about ___ hours from the mean of the sampling distribution and from the mean of the population. (e) About 95 percent of the sample means in this sampling distribution should be between ___ hours and ___ hours.
In: Math
Summary of DIRTY HARRY CLIP
In the Dirty Harry clip, Harry tortures the guy by shooting him in
the leg to obtain information on where the girl was. Cop
Harry Callahan (Clint Eastwood) attempts to track down a
psychopathic rooftop killer before a kidnapped girl dies. When he
is found Harry abuses the murderer's civil rights putting him back
on the streets. Once he is released he hijacks a school bus and
Harry must go after him again. The only way to stop this vicious
killer is in cold blood.
NOW ANSWER THE FOLLOWING QUESTIONS AGREEING HOW ITS NOT OKAY TO TORTURE TO AQUIRE INFORMATION OR CONFESSIONS
Given a life or death situation (as in Dirty
Harry),
-Explain why its not justified for police officers to use torture
or other means to obtain information from a suspect to save a
life?
-When would it be acceptable and when would it not be
acceptable?
-Or, should officers never use any means necessary to obtain a
confession and always follow the law and protect the Constitutional
rights of an accused?
In: Psychology
In recent years, public universities have experienced major budget cuts due to reduced funding from their state governments. These budget cuts usually occur at the most inopportune time—during the school year when contractual commitments with faculty and staff had been signed, programs had been planned, and students were enrolled and taking classes.
Required:
In: Accounting
The National Collegiate Athletic Association (NCAA) requires Division II athletes to score at least 820 on the combined mathematics and reading parts of the SAT in order to compete in their first college year. The scores of the 1.5 million high school seniors taking the SAT last year are approximately Normal with mean 1026 and standard deviation 209. For an SRS size 200
1) Find the mean and standard deviation of x bar
2) What is the distribution of x bar?
3) What is the probability that a sample mean value exceeds 1028?
4) The highest 2.5% of sample mean value are higher than ____
5) Has the average score increased since last year? To answer this, do the followings:
I. A SRS size 200 gives a sample mean of 1028. State hypotheses, find the test statistic, pvalue, and express your conclusion using a significance level of α=2.5%.
a. Hypotheses (Use notations)
b. test statistic
c. pvalue
d. Conclusion? Include practical terms.
II. Find a 95% confidence interval for the mean SAT score.
In: Math