Questions
Programming Project #6: Bowling Team need to use python Problem Expected Duration: 3-4 hours Prerequisites: None...

Programming Project #6: Bowling Team

need to use python

Problem

Expected Duration: 3-4 hours

Prerequisites: None

Knowing that you are a budding programmer, your friends have asked you to create a scoring program for your Saturday bowling league. Your program should take a name, team number, and score for each player, and should deal with any number of players, but have 3 people to a team.
Your program should ignore invalid inputs, and not crash. Your program should print the following lists in columns:

  1. the individual names, team and scores in descending order with high scorer at the top
  2. the individual names, team and scores in alphabetical order
  3. If anyone scores a perfect game, put an asterisk in front of their name.
  4. The top 3 teams with the highest total scores and their score
  5. Display a congratulatory message showing the individual high score and list who got it.
  6. Display a sympathetic message showing the individual low score and who got it.

Last, your program should write each of the lists and the summary information
to a text file called game_results.txt in the same format it is displayed on the screen.

Note: You have the option of using pandas Dataframes in your program. Just make sure the console and file output
has the required structure and format.

In: Computer Science

example of a successful business person you admire (other than Bill Gates, Warren Buffet or Steve...

example of a successful business person you admire (other than Bill Gates, Warren Buffet or Steve Jobs) and why and the professional traits you feel they possess.

150 words

In: Operations Management

We can all agree that we never want to go through a bankruptcy. However, it is...

We can all agree that we never want to go through a bankruptcy. However, it is in all of our best interests to truly understand the bankruptcy law and process. For this assignment, I would like you to read the following case and answer the questions presented. This may require that you do some research on bankruptcy. Remember, any sources you use must be cited and I do not want you to copy answers from the internet. Think about the situation and apply your knowledge, gained from your readings, to the questions. One to two paragraphs for each question.

Jane Doe, a teacher, obtained a master’s degree at Somewhere University (names have been changed). But when Doe asked for a transcript—which was required to receive an increase in salary from her school district—the university refused because she owed more than $6,000 in tuition. Doe offered to pay the nominal transcript fee, but not the tuition. She then filed a petition in a federal bankruptcy court, listing the university as her only creditor, and while the case was pending, again asked for a transcript. The university again refused unless she paid the tuition. Doe complained to the court, which ordered the university to provide a transcript. A federal district court affirmed the order. The university appealed.


The U.S. Court of Appeals for the Seventh Circuit affirmed. Doe had a right to a copy of her transcript, and the university’s refusal to honor that right until she paid her tuition was an act to collect a debt, in violation of the automatic stay. Property interests are created and defined by the law. Nothing in the Bankruptcy Code or other federal law creates or affects property rights in grades or the right to a transcript. No state statute applies either, but under the state’s common law, property rights may arise from custom. In the state, universities have consistently provided certified transcripts at or around cost. This indicates that providing a transcript is an implied part of the “educational contract,” covered by the tuition and other fees. Because a transcript is part of the package of goods and services that a college offers in exchange for tuition, a student has a property right to a certified copy. In this case, Doe was willing to pay the cost. The university’s only reason for refusing to provide the transcript was to induce Doe to pay her unpaid tuition. But the automatic stay prohibits a creditor from acting to collect a claim against a debtor that arose before the filing of a bankruptcy petition.

  1. What actions might a college take to collect unpaid tuition that would not violate the Bankruptcy Code?

  1. Does the longstanding existence of a custom—in this case, the nominal amount of the fee charged by a college for a transcript—mean that it cannot change?

  1. To avoid conflicts such as the one in this case, could a college charge a student a high fee for a transcript—for example, one that would equal the amount of any unpaid tuition?
  2. Suppose that instead of offering to pay for a transcript, Doe had tried to obtain one on credit. Would the university’s refusal to provide one on that basis have led to the same result? Why or why not?
  3. Some might say that higher education institutions should be able to use all methods possible to collect unpaid tuition, including withholding certified grade transcripts. What ethical issues would this approach raise?

In: Operations Management

In a random sample of 19 residents of the state of Montana, the mean waste recycled...

In a random sample of 19 residents of the state of Montana, the mean waste recycled per person per day was 1.4 pounds with a standard deviation of 0.7 pounds. Determine the 90% confidence interval for the mean waste recycled per person per day for the population of Montana. Assume the population is approximately normal. Step 1 of 2 : Find the critical value that should be used in constructing the confidence interval. Round your answer to three decimal places.

In: Math

Task use c++ and Create Base class task with virtual method Create a pair of derivative...

Task use c++ and Create Base class task with virtual method Create a pair of derivative classes of architecture, scientist, economist - Define a salary in each of these classes and create a method that prints the salary for each job Create a working object Use dynamic_cast Use typeid Create an object for each job that it will include the number of employees of that type and the method of printing these numbers

In: Computer Science

1. Design a class based on a modified Customer Structure. Use private and public definitions. 2....

1. Design a class based on a modified Customer Structure. Use private and public definitions.

2. Create class methods (Setters and Getters) that load the data values. The Setter methods will validate the input data based on the criteria below and load the data into the class if valid.

       For character arrays, the data must be within the specified data size. (See #3 below)

   For zipCode, the number must be between 0 and 99999.

       City and State need to be converted and stored in uppercase.

To get started loading the c-strings.

Getters

The book does not seem to provide a good example of what a (getter) method that returns a char array should look like. Section 9.9 is very close but uses string as examples instead of c-strings.

The best approach is to return a pointer to the c-string- Described as below:

   char* getName(); // declaration - also known as prototype

// Customer is my Class name 
char* Customer::getName() {  // defined member function - Return a pointer to the c-string
    return name;
}

cout << YOUR_INSTANCE_HERE.getName() << endl;

Setters

As for creating a setter method - you can define unsized char arrays in the method header

bool Customer::setName(char inputName[]) {

// code here..

}

3. Write a program that will allow me to enter data for the class and create and call a method that displays the data for the class.

During the input process, pass the input data to the setter method and confirm that the data entered is valid based on the class method return value. If not valid,prompt for me to re-enter the data until it does pass the class method's validation.(A do-while loop works well for this situation) I only need to enter the data for 1 instance of the class. The best way to do this is for the setter methods to return bool instead of void. If the data is valid, return true. Otherwise return false.

There is no need to loop for multiple instances of the object. Do not use cin statements inside the class method definitions.

Below is the original structure to use to create your class definition.

const int NAME_SIZE = 20;
const int STREET_SIZE = 30;
const int CITY_SIZE = 20;
const int STATE_CODE_SIZE = 3;

struct Customer {
    long customerNumber;
    char name[NAME_SIZE];
    char streetAddress_1[STREET_SIZE];
    char streetAddress_2[STREET_SIZE];
    char city[CITY_SIZE];
    char state[STATE_CODE_SIZE];
    int zipCode;
};

Hints: The const variables need to be defined outside of the class definition.

          All access to the data in the class must use public methods that you define. DO NOT DIRECTLY ACCESS the customer data items.

          The class level input methods should return a boolean to confirm the data was loaded and passed any size or data ranges. The customerNumber setter does not need to return a value - It can be a void setter.

          Set the customerNumber to 1 via the code - not user input. There is no input loop so only 1 set of customer's data is to be entered.

In: Computer Science

1)Draw a chromosome and indicate where urban centers,deserts,genes,promoters and terminators would be located. 2)Name the two...

1)Draw a chromosome and indicate where urban centers,deserts,genes,promoters and terminators would be located.
2)Name the two major molecules that are found in a chromosome
3)Describe how DNA is packed into a chromosome using the following terms:
a)DNA double helix
b)Histones
c)Nucleosomes

3)Define and contrast chromosomes and gene;
4)State the function of a gene.
5)Describe how Gene's are distributed along a chromosome (urban centers and deserts), and which base pairs tend to be most prevalent in coding and non-coding regions.

In: Biology

Question 2: Consider the following activities and their durations and requirements for a construction project. Activity...

Question 2: Consider the following activities and their durations and requirements for a construction project.

Activity

Predecessors

Activity Duration (days)

Optimistic

Most likely

Pessimistic

A

-

2

7

9

B

-

3

6

9

C

-

3

5

8

D

A

15

19

20

E

B, C

6

9

10

F

C

2

4

6

G

A, E

4

8

13

H

G

1

2

4

Part a) Draw the project network and determine the critical path in the project network using most likely activity durations. (Show the network, total flow of each activity, and critical path)

Part b) How many days activity F could be delayed its early start date without delaying the start date of other activities? (Explanations and calculations)

Part c) If company’s president wants to have a 95% chance of completing the project before July 30, when should the project began? (Explanations and calculations)

In: Operations Management

Write a python program to evaluate polynomials in general and test it on the following polynomial:...

Write a python program to evaluate polynomials in general and test it on the following polynomial: ? 4 − 3? 3 − 39? 2 + 47? + 90 = 0

a) Develop and test a function named polyCalc() that evaluates a polynomial at a given value of the variable. The function receives two arguments: a list of the polynomial coefficients, and the value of the variable. It returns the result of the evaluation as a float. Use your function to evaluate the polynomial at ? = -5.4, -5.2, -1.2, -1.0, 2.0, 2.2, 7.2 and 7.4. What do you conclude about the solutions to the equation above?

b) Write a second function named polySolve() that seeks a solution of the polynomial between two values of the variable where the function has changed sign. This function should receive the list of coefficients, the two values of the variable between which there is a solution. It should return the value of the variable at which a solution was found. This function may be based on an exhaustive search, a bisection search, or on Newton-Raphson’s method. Select a method with some justification.

In: Computer Science

The Question: A communication technology appeared that was not classified as the second or third generation,...

The Question: A communication technology appeared that was not classified as the second or third generation, and some have known it as the 2.5 generation, and it has become widely known and used widely in cellular communications.

What is the 2.5G?

- What are the technologies used in 2.5G?


Notes:

Copying from the Internet is prohibited by more than 30%.

Not to use Wikipedia

In: Computer Science

A company which produces a single product has definite orders for this product over the next...

A company which produces a single product has definite orders for this product over the next four quarters as follows:

Quarter 1 2 3 4
Demand 460 600 340 500

The company ended the previous year with an inventory of 300 units, and the final quarter production level was 420 units. The company wishes to end this year with an inventory of at least 280 units.

It costs $30 per unit to increase the production level from one quarter to the next, and $56 per unit to decrease it. The cost of holding inventory from one quarter to the next is $40 per unit per quarter. No shortages are permitted. The company wishes to minimize the sum of production level change costs and inventory costs over the four quarter planning horizon.

Formulate (but do not solve) a model for this situation.

In: Operations Management

THREES ELECTRONICS COMPANY Threes Electronics is a mid-sized electronics manufacturer located in Santa Monica, California. The...

THREES ELECTRONICS COMPANY Threes Electronics is a mid-sized electronics manufacturer located in Santa Monica, California. The company president is Jack Tripper, who inherited the company. The company originally repaired radios and other household appliances when it was founded over 70 years ago. Over the years, the company has expanded, and it is now a reputable manufacturer of various specialty electronic items. One of the major revenue-producing items manufactured by Threes Electronic is a Personal Digital Assistant (PDA). Threes Electronics currently has one PDA model on the market and sales have been excellent. The PDA is a unique item in that it comes in a variety of tropical colors and is preprogrammed to play Jimmy Buffet music. However, as with any electronic item, technology changes rapidly, and the current PDA has limited features in comparison with newer models. Threes Electronic spent $750,000 to develop a prototype for a new PDA that has all the features of the existing one, but adds new features such as cell phone capability. The company has spent a further $200,000 for a marketing study to determine the expected sales figures for the new PDA. Threes Electronic can manufacture the new PDA for $86 each in variable costs. Fixed costs for the operation are estimated to run $3 million per year. The estimated sales volume is 70,000, 80,000, 100,000, 85,000, and 75,000 per each year for the next five years, respectively. The unit price of the new PDA will be $250. The necessary equipment can be purchased for $15 million and will be depreciated on a 7-year MACRS schedule. It is believed the value of the equipment in five years will be $3 million. Net working capital for the PDAs will be 20 percent of sales and will occur with the timing of the cash flows for the year (i.e., there is a no initial outlay for NWC). Changes in NWC will thus first occur in Year 1 with the first year’s sales. Threes Electronic has a 35 percent (federal & state) corporate tax rate. Threes Electronic plans to finance by a combination of 1/3 debt and 2/3 internal equity (i.e., retained earnings). The beta of the firm’s stock is 1.75. The firm uses a risk-free rate of 4% and the market risk premium of 7%. Threes has 15,000 9 percent semi-annual coupon bonds outstanding, $1,000 par value per bond, 15 years to maturity, selling for 108 percent of par. Threes Electronic can issue bonds for $5 ~ $6 million in the similar terms. Construct a project cash flow statement; estimate the cost of capital; and provide NPV, IRR, payback period (our target PB is 3 years) and profitability index of this project.

In: Finance

800 mL of a 2 M lactic acid buffer at pH=4.2 is mixed with 600 mL...

800 mL of a 2 M lactic acid buffer at pH=4.2 is mixed with 600 mL of a 1 M lactic acid buffer at pH=3.9. After the two buffer solutions are combined, 300 mL of 1.5 M sodium hydroxide is added to the buffer solution. What is the pH of the solution after the sodium hydroxide has been added? (lactic acid pKa = 3.86)

In: Chemistry

Write 3 detailed samples of scary text-based computer games. The location of your game could be...

Write 3 detailed samples of scary text-based computer games. The location of your game could be a place that truly exists (possibly include research). Exclude graphic content. Remember to give choices to the player during the game.

In: Computer Science

Teloxy Engineering has received a one-time contract to design and build 10,000 units of a new...

Teloxy Engineering has received a one-time contract to design and build 10,000 units of a new product. During the proposal process, management felt that the new product could be designed and manufactured at a low cost. One of the ingredients necessary to build the product was a small component that could be purchased for $60 in the marketplace, including quantity dis- counts. Accordingly, management budgeted $650,000 for the purchasing and handling of 10,000 components plus scrap.

During the design stage, your engineering team informs you that the final design will require a somewhat higher-grade component that sells for $72 with quantity discounts. The new price is substantially higher than you had budgeted for. This will create a cost overrun.

You meet with your manufacturing team to see if they can manufacture the component at a cheaper price than buying it from the outside. Your manufacturing team informs you that they can produce a maximum of 10,000 units, just enough to fulfill your contract. The setup cost will be $100,000 and the raw material cost is $40 per component. Since Teloxy has never manu- factured this product before, manufacturing expects the following defects:

Percent defective 0 10 20 30 40 Probability of 10 20 30 25 15

occurrence
All defective parts must be removed and repaired at a cost of $120 per part.

  1. Using expected value, is it economically better to make or buy the component?
  2. Strategically thinking, why might management opt for other than the most economical
    choice?

In: Operations Management