Questions
In Python The following code is intentionally done in poor style but runs as intended. def...

In Python

The following code is intentionally done in poor style but runs as intended.
def main():

c = 10

print("Welcome to Roderick's Chikkin and Gravy")

e = False

while not e:

x = input("Would you like some chikkin?")

if x == "Y" or x == "y":

c = f(c)

else:

e = True

if c == 0:

e = True

print("I hope you enjoyed your chikkin!")

def f(c):

if c > 0:

print("Got you some chikkin! Enjoy")

return c-1

else:

print("No chikkin left. Sorry")

return 0

main()

1.Fix it *then* add the functions mentioned (Including totally deleting these comments at the top and replacing them with)
What should be here as well as changing the repl name!?

2.Fix the style of this program so it is clear what it is doing.

3.Add to the code so that, if you want chikkin, you are asked if you want gravy. If you say yes, the (only) output for that order should be, "You get some chikkin and gravy then!" If not, it should give the same output as the original program. In both cases, it will then ask you again if you want any chikkin.

4.Add to the code so that, if you want chikkin, you are asked if you want gravy. If you say yes, the (only) output for that order should be, "You get some chikkin and gravy then!" If not, it should give the same output as the original program. In both cases, it will then ask you again if you want any chikkin. (You can do whatever you would like to get this to happen - adding a new function is not required but don't delete the old function entirely). Assume you have infinite gravy so no tracking how much gravy there is.

5.Write a simple function named startingChikkin() that has no parameters and just asks the user for how much chikkin we start with. If the user types a positive integer, then return that value. If not, prompt again repeatedly until they enter a positive integer which you then return (see earlier sections on input validation) - the loop should be inside of your function. Call startingChikkin() at the start of the main() program and store the value returned into whatever you called your variable for tracking the number of chikkins left.

In: Computer Science

Arnold runs a plumbing company. He and Lucy agree on a price for Arnold to install...

Arnold runs a plumbing company. He and Lucy agree on a price for Arnold to install the plumbing in a new guest house that Lucy is building in her backyard.

As he's working the job, Arnold discovers that he didn't include a sufficient charge for labor in his original price. He tells Lucy that unless he receives an additional $2,500, he can't complete the job. Lucy agrees to pay.

Arnold finishes the plumbing work and submits his bill to Lucy. Lucy pays the amount due under the original contract but refuses to pay the additional $2,500. Arnold sues for breach of contract, claiming that Lucy's failure to pay the $2,500 breached the second contract they entered into.

Which of the following is the most likely result of their dispute?

1.

Lucy is going to have to pay, but only one half of what Arnold is asking. This is due to the calculations involved in the contract adjustment process of equity.

2.

Lucy is going to have to pay. This is a typical bilateral contract and she got the benefit of the bargain. It would be inequitable for her to accept the benefit without having to pay for it.

3.

Lucy won't be required to pay. Arnold relied on past consideration when he bargained for the $2,500 contract. Past consideration is no consideration.

4.

Lucy won't be required to pay. Arnold has a preexisting duty to complete the plumbing work under the original contract, so his promise to perform in return for her promise to pay $2,500 is without consideration.

In: Operations Management

Write a C program that runs on ocelot for a mini calculator using only the command...

Write a C program that runs on ocelot for a mini calculator using only the command line options. You must use getopt to parse the command line.
Usage: minicalc [-a num] [-d num] [-m num] [-s num] [-e] value
• The variable value is the starting value.
• Value should be validated to be an integer between 1 and 99. Error message and usage shown if not.
• -a adds num to value.
• -d divides value by num.
• -m multiplies value by num.
• -s subtracts num from value.
• -e squares value. (Note: no num is needed.)
• Output should have exactly 2 decimal places no matter what the starting values are.
• If –e is included, it is executed first.
• Use standard order of operations for all operations.
Code should be nicely indented and commented. Create a simple Makefile to compile your program into an executable called minicalc.The Makefile should be called Makefile with no extension. I should be able to type make at the command line to compile your program.

In: Computer Science

Create a set of use cases for the following system: A video store (AVS) runs a...

Create a set of use cases for the following system: A video store (AVS) runs a series of fairly standard video stores. Before a video can be put on the shelf , it must be catalogued and entered into the video database. Every customer must have a valid AVS customer card in order to rent a video. Customers rent videos for 3 days at a time. Every time a customer rents a video the system must ensure that the customer doesn't have any overdue videos. If so the overdue videos must be returned and overdue fee paid before the customer can rent any more videos. Likewise if the customer has returned overdue videos , but has not paid the overdue fee, the fee must be paid before any new videos can be rented. Every morning the store manager prints a report that lists overdue videos, if a video is 2 or more days overdue then the manager calls the customer to remind them to return the video. If a video is returned in damaged condition the manager removes it from the video database and may sometimes charge the customer.

Please help me! CREATE USE CASE DIAGRAM for the situation in exercise F – Use MS Word to draw it using Insert and Shapes menu) – 1p. Consider that for a customer to have a valid video store card the customer must create an account. Also consider that as a step after renting a video (or videos) the customer must pay for the rental(s). The assumption is that a customer pays only using credit card

In: Computer Science

The number of sick days due to colds and flu last year was recorded by a...

The number of sick days due to colds and flu last year was recorded by a sample of 13 employees.

The data are 0, 1, 3, 5, 5, 5, 7, 8, 8, 9, 12, 13, 15 .

What is the interquartile range (IQR)?

Select one:

5

7

6

4

In: Statistics and Probability

A larger and more modern main post office is to be constructed at a new location...

A larger and more modern main post office is to be constructed at a new location in​ Davis, California. Growing suburbs caused a shift in the population density from where it was 40 years​ ago, when the current facility was built. Annette​ Werk, the​ postmaster, asked her assistants to draw a grid map of the seven points where mail is picked up and delivered in bulk. The coordinates and trips per day to and from the seven mail source points and the current main post​ office, M, are shown in the following table. M will continue to act as a mail source point after relocation.  

Mail Source Point

Round trips per day

​x, y, Coordinates​ (miles)

1

4

​(7​,

2​)

2

2

​(3​,

8)

3

2

​(18​,

14)

4

13

​(9​,

8)

5

6

​(13​,

9​)

6

5

​(16​,

6​)

7

7

​(8,

11)

M

8

​(12​,

12)

a. Calculate the center of gravity as a possible location for the new facility. ​(Enter your responses rounded to the nearest whole​ number.)

The center of gravity​ "X" coordinate​ =

The center of gravity​ "Y" coordinate​ =

b. Compare the​ load-distance scores for the location in part​ (a) and the current​ location, using rectilinear distance. ​(Round all intermediate calculations to the nearest whole​ number.)

The​ load-distance score to​ "M" is

​ (Enter your response as an​ integer.)

The​ load-distance score to the center of gravity is

​(Enter your response rounded to the nearest whole​ number.)

In: Operations Management

Deep Value, Inc.’s annual stock returns for the last ten years are: –5%, 15%, 11%, 18%,...

Deep Value, Inc.’s annual stock returns for the last ten years are: –5%, 15%, 11%, 18%, –8%, 9%, 16%, –3%, 3%, and 35%. The Market Index’s annual returns for the same ten years are: 10%, 22%, 9%, 13%, –7%, 8%, 15%, –13%, –12%, and 18%. What is Deep Value’s beta coefficient? Enter your answer rounded to two decimal places. For example, if your answer is 12.345 then enter as 12.35 in the answer box.

In: Finance

Deep Value, Inc.’s annual stock returns for the last ten years are: –5%, 15%, 11%, 18%,...

Deep Value, Inc.’s annual stock returns for the last ten years are: –5%, 15%, 11%, 18%, –8%, 9%, 16%, –3%, –2%, and 5%. The Market Index’s annual returns for the same ten years are: 10%, 22%, 9%, 13%, –7%, 8%, 15%, –13%, –12%, and 18%. What is Deep Value’s beta coefficient? Enter your answer rounded to two decimal places. For example, if your answer is 12.345 then enter as 12.35 in the answer box.

In: Finance

Deep Value, Inc.’s annual stock returns for the last ten years are: –5%, 15%, 11%, 18%,...

Deep Value, Inc.’s annual stock returns for the last ten years are: –5%, 15%, 11%, 18%, –8%, 9%, 16%, –3%, –2%, and 45%. The Market Index’s annual returns for the same ten years are: 10%, 22%, 9%, 13%, –7%, 8%, 15%, –13%, –12%, and 18%. What is Deep Value’s beta coefficient? Enter your answer rounded to two decimal places. For example, if your answer is 12.345 then enter as 12.35 in the answer box.

In: Finance

There is a movement in our country to prevent landlords from evicting tenants for non-payment of...

There is a movement in our country to prevent landlords from evicting tenants for non-payment of rent owing to the pandemic. 1. Is this a good idea? Why? 2. How many months should a family be allowed to live in an apartment or a house without paying rent? 3? 6? 12? “As long as it takes for the family to get back on its feet”? WHY???? 3. About 90% of all landlord-tenant agreements are private sector transactions—no direct involvement by our government…… Should landlords be compensated by our government (federal, state, or local) for the lost rent? Why? How much? One third of the lost rent? One half? Two thirds? ALL of it???? Why? 4. If landlords were not compensated at all, how could this affect entry in to the rental housing market by future landlords, in theory? (I HATE TO TELL YOU THIS: this may not be our last pandemic. In 1957, an influenza epidemic killed 110,000 Americans WHO WERE ALREADY SOMEWHAT ENGAGED IN SOCIAL DISTANCING OWING TO THE POLIO SCARE----SJMN, 3\21\20)

In: Economics