Need this program Using Classes , Objects, Save to file, and Printbill Simple python assignment
Write a menu-driven program for Food Court. (You need to use functions!) Display the food menu to a user (Just show the 5 options' names and prices - No need to show the Combos or the details!) Ask the user what he/she wants and how many of it. (Check the user inputs) AND Use strip() function to strip your inputs. Keep asking the user until he/she chooses the end order option. (You can pass quantity1, quantity2, quantity3, quantity4 & quantity5 to save the quantities of the orders) Calculate the price. Ask the user whether he/she is a student or a staff. There is no tax for students and 9% tax for staffs. Add the tax price to the total price. Tax Cupertino 9.000% Santa Clara Display the bill to the user. The bill includes: The food items The quantities The cost of them The total before tax Tax amount Total price after tax You can have your own design but you need to have a main function and get started from the main function. For example: def main(): displayMenu() . . displayBill(..) main() or if __name__ == "__main__": main() The name of functions also up to your design but they should show what the functions do. Only display 2 decimal points when displaying all the numbers. Put at least two outputs (results after you run your code) at the end of your code as a multi-line comment. Don't forget to put your name and a short description of your code on the top on your code. Don't forget to test your code with Positive and Negative Testing! (For more information see this page Testing)
In: Computer Science
The project will be graded both for mathematical quality and for expository quality. Look at the six examples in section 4.7 of our text for good ideas about expository style. Notice how the author mixes the necessary mathematical equations with sentences of logic and explanation. Notice that the exposition is almost always in present tense. And, the author frequently uses we referring to the reader and author working together on the steps of solution. These are all standard conventions in mathematical writing.
The Problem. You are a landscape designer. A client has asked you to design a plan to enclose a rectangular garden having 10,000 m2 of area. The north and south sides are to be bounded by wooden fencing, which costs $20/m; the east and west sides are to be bounded by rhododendrons, which cost $50/m. Find the dimensions of the garden that minimize the total cost of the fencing and shrubbery. The client is getting estimates from several designers, so you need to prove that your plan is guaranteed to result in the lowest cost (given those per-meter costs for installing the fencing and the plants). Accordingly, when you write up your plan include a careful description of how you find these dimensions and how you verify that these dimensions actually minimize the cost.
Having finished your plan for the garden to be enclosed by rhododendrons and wooden fencing, you realize that rectangular gardens with different ”boundary material” on the north and south than on the east and west have become popular. To simplify the design process, you want to create a template for these problems. The general situation is as follows. A 10,000 m2 garden is to be enclosed on the north and south by material A, which costs a dollars per meter, and on the east and west by material B, which costs b dollars per meter. Find the dimensions that minimize the total cost of enclosing the garden. (The dimensions will be in terms of the constants a and b.) As before, in order to prove to your clients that your plan is the best possible, include a careful description of how you find these dimensions and how you verify that these dimensions actually minimize the cost.
What does your template tell you about the dimensions of the garden when a = b? When a = 4b? When a = (1/4)b? Does it agree with the dimensions you found for the rhododendron/wooden fence-enclosed garden? What happens if the area of the garden is to be something other than 10,000 m2?
The audience for your paper is the client, but assume this client is someone who is familiar with calculus. Begin with a brief introduction as a reminder of the problem. Incorporate into your report a computer-drawn graph of the cost function used in the first part of the analysis (with costs $20/m and $50/m). You will need to experiment with the window dimensions in order to include the important details of the function. The graph should exhibit the domain of the function and the minimum point.
In: Math
Discuss factors that contribute to cancer of the prostate and investigate the controversy concerning PSA testing.
Discuss patient education about a testicular self-exam and emphasize the importance of monthly exams.
Search entries or author
In: Nursing
1) How doseany author explain the shareholder theory requires no ethical reasoning? and why?
2) why does use of the shareholder theory prevent effective resolution of the 13 common business practices?
In: Operations Management
According to the author, what difficulties do Muslims face when attempting to overcome the problematic issues related to Globalization? How are these issues related to their beliefs as Muslims? Chapter 7 Subverting Greed--Islam
In: Psychology
What does the IPAT formula tell us about the causes of environmental degradation? Why does the author believe that this formula is only partially accurate? What factors need to be added to improve it? Explain...
In: Other
|
Positive Terminal |
Negative Terminal Copper |
Negative Terminal Magnesium |
Negative Terminal Iron |
Negative Terminal Aluminum |
Negative Terminal Zinc |
|
Copper |
XXXXXXXX |
1.528 V |
0.015 V |
0.012 V |
-0.006 V |
|
Magnesium |
0.012 V |
XXXXXXXX |
-0.003 V |
-0.003 V |
-0.007 V |
|
Iron |
-0.350 V |
1.120 V |
XXXXXXXX |
0.062 V |
0.594 V |
|
Aluminum |
-0.753 V |
0.713 V |
-0.358 V |
XXXXXXXX |
-0.009 V |
|
Zinc |
-1.001 V |
0.006 V |
0.007 V |
0.022 V |
XXXXXXXX |
Activity Series:
|
Metal |
Reduction Potential |
|
|
Lowest Reduction Potential: 1 |
Magnesium |
-1.528 V |
|
2 |
Iron |
-0.015 V |
|
3 |
Aluminum |
-0.012 V |
|
4 |
Copper |
0.000 V |
|
Highest Reduction Potential: 5 |
Zinc |
0.006 |
Question: Does your activity series agree with published data? If there are differences, what are they? What factors can cause a difference between experimental and reported values?
In: Chemistry
The Donner Party: Natural Selection in Action The Donner Party is the name of emigrants who travelled in covered wagons from Illinois to California in 1846 and became trapped in the Sierra Nevada Mountains when the region was hit by heavy snows in late October. By the time the survivors were rescued in April, 1847, 40 out of 87 had died from famine and exposure to severe cold. Some of those that survived did so by resorting to cannibalism, according to newspapers reporting at that time. Data on the survivorship of the party members may be used to gain some insight into human behavior and natural selection under extreme stress. For example, some questions of interest are whether males are better able to withstand harsh conditions than females and the extent to which the chances of survival vary with age. The data in the lab assignment come from Grayson, (1990), “Donner Party Deaths: A Demographic Assessment,” Journal of Anthropological Research, v.46. The data are also available in the StatCrunch file lab3.txt located on the STAT 151 Laboratories web site at http://www.stat.ualberta.ca/statslabs/stat151/index.htm (click Stat 151 link, and Data for Lab 3). The data are not to be printed in your submission. The following is a description of the variables in the data file: Variable Name Description of Variable NAME full name of the passenger, GENDER gender (female or male); FAMILY family name, POSITION member status within the family, AGE estimated age (in years) as of July 31, 1846; CHILD child (yes or no) SURVIVAL survived or died, ORDER order of death, ALONE Yes if travelling alone (no family, no close accompanying persons), GROUP SIZE Number of group members. 1. Is it an observational study or a randomized experiment? Can the data be generalized to a broader population? If females in the study turned out to be more apt to survive than males, could this be used as proof that, in general, females are better able than males to withstand harsh conditions? 4. In this question, you will examine the relationship between survival and gender. (a) Were the chances of survival different for females than for males? In order to answer the question, obtain the contingency table of survival by gender. Make sure that Row percent, Column percent, and Percent of Total as well as Chi-Square test for independence are selected. Paste the table into your report. (b) Using α = 0.05, test that there was no relationship between survival and gender. State the null and alternative hypotheses. Report the value of the appropriate test statistic, the distribution of the test statistic under the null hypothesis, and the P-value of the test to answer the question. State your conclusion. (c) Refer to the output in part (a) to answer the following questions: What percent of the survivors were females? What percent were female survivors? (d) Using α = 0.05, is there evidence that there was a difference in the survival rate for females and males? Carry out the appropriate two-sample proportion test. State the null and alternative hypotheses. Report the value of the appropriate test statistic, the distribution of the test statistic under the null hypothesis, and the P-value of the test to answer the question. State your conclusion. (e) What is the relationship between the tests in parts (b) and (d)? 3 (f) Obtain and interpret a 95% confidence interval for the difference in survival rates of females and males?
In: Math
A professor submitted a manuscript to a research journal for
review. Historically, 19% of submitted manuscripts are accepted for
publication in the journal. After the initial review, the
manuscript can be sent to the journal editor, sent to the associate
editors for additional review, or returned to the author for
revisions. Of the manuscripts that were accepted for publication in
the journal in the past, 47% were sent to the journal editor and
37% were sent to the associate editors for additional review. Of
the manuscripts that were not accepted for publication in the
journal in the past, 12% were sent to the journal editor and 32%
were sent to the associate editors for additional review.
After the initial review, the professor's manuscript is returned to
the author for revisions. Determine the probability that the
professor's manuscript will be published in the journal.
Please explain in detail.
In: Statistics and Probability
Create business rules for each of the exercises (below is an example of the format needed)
A writer may create many novels.
A novel is created by a writer.
A consumer may buy many novels.
A novel may be bought by may consumers.
Exercise A
United Broke Artists (UBA) is a broker for not-so-famous artists. UBA maintains a small database used to track artists, paintings, and galleries. A particular painting can be duplicated and exhibited in multiple galleries, provided the galleries have the space. UBA accepts work from artists, many of whom provide multiple
paintings to be presented at available galleries.
Exercise B
An insurance company sells home, auto, and life insurance. The company has three departments -- one for each type of insurance -- and every department has its own group of agents. A customer is assigned an agent based on the type of insurance he or she desires. The agent then creates a policy for the customer.
Exercise C
A publisher wants a database to store the books it publishes along with their authors. An author can write many books, and a book can have more than one author. When the publisher and author(s) agree to produce a book, a contract is created for the book, one for each author. The contract specifies the percentage of the profit the author will receive back.
Exercise D
A supermarket has many departments, each of which has employees. A few of the employees in each department manage it. An employee can only work in one department at any given time. A department has many products, some of which can
be offered in more than one department at the same time. For instance, batteries are offered in the electronics, toys, photo, groceries, and hardware departments.
Exercise E
A rapidly growing health care organization has a number of clinics across the state that offer outpatient services. Each doctor is assigned a specific clinic. A patient can schedule an appointment at a specific clinic or with a specific doctor. If the patient has no specific doctor in mind, one is assigned based on availability. As an outcome of the appointment, the doctor may choose to prescribe one or more medications for the patient. A given prescription is written for a specific medication and indicates the strength, daily dosage, and instructions for the patient.
In: Computer Science