Program a math quiz on Python
Specifications:
- The program should ask the user a question and allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.
- the program should use three functions, one function to generate addition questions, one for subtraction questions, and one for multiplication questions.
- the program should store the questions and answers in a dictionary or list.
- the program should keep a count of the number of correct and incorrect responses.
In: Computer Science
The controller of Dash Shoes Inc. instructs you to prepare a monthly cash budget for the next three months. You are presented with the following budget information:
March | April | May | ||||
Sales | $147,000 | $185,000 | $247,000 | |||
Manufacturing costs | 62,000 | 80,000 | 89,000 | |||
Selling and administrative expenses | 43,000 | 50,000 | 54,000 | |||
Capital expenditures | _ | _ | 59,000 |
The company expects to sell about 12% of its merchandise for cash. Of sales on account, 70% are expected to be collected in the month following the sale and the remainder the following month (second month following sale). Depreciation, insurance, and property tax expense represent $10,000 of the estimated monthly manufacturing costs. The annual insurance premium is paid in July, and the annual property taxes are paid in November. Of the remainder of the manufacturing costs, 80% are expected to be paid in the month in which they are incurred and the balance in the following month.
Current assets as of March 1 include cash of $56,000, marketable securities of $79,000, and accounts receivable of $164,400 ($129,000 from February sales and $35,400 from January sales). Sales on account for January and February were $118,000 and $129,000, respectively. Current liabilities as of March 1 include a $74,000, 12%, 90-day note payable due May 20 and $10,000 of accounts payable incurred in February for manufacturing costs. All selling and administrative expenses are paid in cash in the period they are incurred. It is expected that $4,400 in dividends will be received in March. An estimated income tax payment of $22,000 will be made in April. Dash Shoes' regular quarterly dividend of $10,000 is expected to be declared in April and paid in May. Management desires to maintain a minimum cash balance of $44,000.
Required:
1. Prepare a monthly cash budget and supporting schedules for March, April, and May. Input all amounts as positive values except overall cash decrease and deficiency which should be indicated with a minus sign. Assume 360 days per year for interest calculations.
Dash Shoes Inc. | |||
Cash Budget | |||
For the Three Months Ending May 31, 2016 | |||
March | April | May | |
Estimated cash receipts from: | |||
Cash sales | $ | $ | $ |
Collection of accounts receivable | |||
Dividends | |||
Total cash receipts | $ | $ | $ |
Estimated cash payments for: | |||
Manufacturing costs | $ | $ | $ |
Selling and administrative expenses | |||
Capital expenditures | |||
Other purposes: | |||
Note payable (including interest) | |||
Income tax | |||
Dividends | |||
Total cash payments | $ | $ | $ |
Cash increase or (decrease) | $ | $ | $ |
Cash balance at beginning of month | |||
Cash balance at end of month | $ | $ | $ |
Minimum cash balance | |||
Excess or (deficiency) | $ | $ | $ |
In: Accounting
The budget director of Gourmet Grill Company requests estimates of sales, production, and other operating data from the various administrative units every month. Selected information concerning sales and production for July is summarized as follows:
a. Estimated sales for July by sales territory:
Maine: | |
Backyard Chef | 310 units at $700 per unit |
Master Chef | 150 units at $1,200 per unit |
Vermont: | |
Backyard Chef | 240 units at $750 per unit |
Master Chef | 110 units at $1,300 per unit |
New Hampshire: | |
Backyard Chef | 360 units at $750 per unit |
Master Chef | 180 units at $1,400 per unit |
b. Estimated inventories at July 1:
Direct materials: | |
Grates | 290 units |
Stainless steel | 1,500 lbs. |
Burner subassemblies | 170 units |
Shelves | 340 units |
Finished products: | |
Backyard Chef | 30 units |
Master Chef | 32 units |
c. Desired inventories at July 31:
Direct materials: | |
Grates | 340 units |
Stainless steel | 1,800 lbs. |
Burner subassemblies | 155 units |
Shelves | 315 units |
Finished products: | |
Backyard Chef | 40 units |
Master Chef | 22 units |
d. Direct materials used in production:
In manufacture of Backyard Chef: | |
Grates | 3 units per unit of product |
Stainless steel | 24 lbs. per unit of product |
Burner subassemblies | 2 units per unit of product |
Shelves | 4 units per unit of product |
In manufacture of Master Chef: | |
Grates | 6 units per unit of product |
Stainless steel | 42 lbs. per unit of product |
Burner subassemblies | 4 units per unit of product |
Shelves | 5 units per unit of product |
e. Anticipated purchase price for direct materials:
Grates | $15 per unit |
Stainless steel | $6 per lb. |
Burner subassemblies | $110 per unit |
Shelves | $10 per unit |
f. Direct labor requirements:
Backyard Chef: | |
Stamping Department | 0.50 hr. at $17 per hr. |
Forming Department | 0.60 hr. at $15 per hr. |
Assembly Department | 1.00 hr. at $14 per hr. |
Master Chef: | |
Stamping Department | 0.60 hr. at $17 per hr. |
Forming Department | 0.80 hr. at $15 per hr. |
Assembly Department | 1.50 hrs. at $14 per hr. |
Required:
1. Prepare a sales budget for July.
Gourmet Grill Company Sales Budget For the Month Ending July 31 |
||||
---|---|---|---|---|
Product and Area | Unit Sales Volume |
Unit Selling Price |
Total Sales | |
Backyard Chef: | ||||
Maine | $ | $ | ||
Vermont | ||||
New Hampshire | ||||
Total | $ | |||
Master Chef: | ||||
Maine | $ | $ | ||
Vermont | ||||
New Hampshire | ||||
Total | $ | |||
Total revenue from sales | $ |
2. Prepare a production budget for July. For those boxes in which you must enter subtracted or negative numbers use a minus sign.
Gourmet Grill Company Production Budget For the Month Ending July 31 |
||
---|---|---|
Units | ||
Backyard Chef | Master Chef | |
3. Prepare a direct materials purchases budget for July. For those boxes in which you must enter subtracted or negative numbers use a minus sign.
Gourmet Grill Company Direct Materials Purchases Budget For the Month Ending July 31 |
|||||
---|---|---|---|---|---|
Grates (units) |
Stainless Steel (lbs.) |
Burner Sub- assemblies (units) |
Shelves (units) |
Total | |
Required units for production: | |||||
Backyard Chef | |||||
Master Chef | |||||
Desired inventory, July 31 | |||||
Total | |||||
Estimated inventory, July 1 | |||||
Total units to be purchased | |||||
Unit price | $ | $ | $ | $ | |
Total direct materials to be purchased | $ | $ | $ | $ | $ |
4. Prepare a direct labor cost budget for July.
Gourmet Grill Company Direct Labor Cost Budget For the Month Ending July 31 |
||||||||
---|---|---|---|---|---|---|---|---|
Stamping Department |
Forming Department | Assembly Department | Total | |||||
Hours required for production: | ||||||||
Backyard Chef | ||||||||
Master Chef | ||||||||
Total | ||||||||
Hourly rate | $ | $ | $ | |||||
Total direct labor cost | $ | $ | $ | $ |
In: Accounting
Consider the following ER diagram, which models an online bookstore.
As per the attached picture in the attached link :
https://www.google.com/imgres?imgurl=https://media.cheggcdn.com/study/45a/45a5708f-f2b8-4864-99a3-284d8c13e235/5924-7-20EEI1.png&imgrefurl=https://www.chegg.com/homework-help/consider-e-r-diagram-figure-729-models-online-bookstore-lis-chapter-7-problem-20e-solution-9780073523323-exc&tbnid=q173_TY0HXF25M&vet=1&docid=hPpMlzEq8SYJYM&w=756&h=688&hl=en&source=sh/x/im
A. List the entity sets and their primary keys.
B. Map the ER to appropriate schema showing the different relations.
In: Computer Science
discuss why knowledge of information technology applications are mandatory for managers?
In: Operations Management
what are the Descriptive Assumptions in the Death Penalty Article? Descriptive assumptions are also unstated.
They are the glue that binds the reasons to the conclusions. The descriptive assumption is the main underlying assumption the article. What must we assume about individuals convicted of murder? Dont over think this. If you would support the death penalty with the intensity of the author, what would you believe in your heart of hearts?
In: Psychology
In php:
After completed, the website should hide all messages before the user click submit button OR show either the error message or success message if the user click submit button.
//code
<?php
if(isset($_GET['submit'])){
//sanitize the input
/* Check the error from the input:
if input from user is empty
-> get an error string variable
if input is not empty
-> use preg_match() to match the pattern
$pattern = "/^[1-9][0-9]{2}(\.|\-)[0-9]{3}(\.|\-)[0-9]{4}$/";
-> if it's a matched, get a success string variable
*/
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,
initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous">
<link rel="stylesheet" href="">
<title>Lab 2-Part1</title>
</head>
<body>
<form action="" class="main-form
needs-validation">
<div class="form-group">
<label for="numbers">Phone Number</label>
<input type="text" id="numbers" class="form-control"
value=<?php //use PHP to print out the value the use typed in if
any ?>>
<small class="form-text text-muted">xxx.xxx.xxx or
xxx-xxx-xxxx</small>
<!-- Set a condition
if there is an error string variable, print out the string in
PHP
if there is a success string variable, print out the string in
PHP
-->
<div class="alert
alert-danger">
Must enter a valid
phone number! <!-- should be from an error string variable
-->
</div>
<div class="alert
alert-success">
Phone number is valid!
<!-- should be from an error string variable -->
</div>
</div>
<button type="submit" class="btn btn-primary"
>Submit</button>
</form>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS
-->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
</body>
</html>
In: Computer Science
How your identity impact your life? Sociology
In: Psychology
1)Discuss and give examples of Hofstede’s 5 dimensions of culture.
2)Define: enculturation, acculturation, consumer ethnocentrism
3)Compare/contrast USA vs. Asian culture in terms of:
Time
Space
Relationships
Agreement
4)What are BRIC markets and why are they important?
5)What is Chindia and why is it important
6)What is Glocalization?
In: Psychology
Write a Python program that reads an integer and prints how many digits the number has, by checking whether the number is ≥10,≥100,≥1000, and so on (up to 1,000,000). Your program should also identify if a number is negative.
In: Computer Science
Please review the following scenario and place yourself in the position of the new Human Resource Manager for Acme Manufacturing. Once you understand the circumstances of the problems in this organization, please respond to the questions that the General Manager has posed.
Scenario: You just started work as the new Human Resources Manager for Acme Manufacturing, a Fortune 1,000 company. The job was vacant for 6 months prior to your hiring. You have wondered about this, especially since reading about employee harassment incidents and fights recently in the news.
The General Manager (GM) calls you into his office the minute you arrive. He shuts the door after saying a quick word of welcome and begins to tell you about an incident that happened last week that needs your immediate attention. The company's manufacturing operation runs three shifts of production workers so that the plant is operating 24/7. Over the past 6 months, hostilities have arisen between employees on the third and first shifts. What started out as jeering and criticisms by the first shift, claiming they have to clean up the mess and complete all of the work left undone by the third shift, has escalated to physical confrontations and altercations. Although the GM says that aggressive bantering back and forth is common for shift workers in manufacturing, he admits that he is worried about further violent escalation. The GM says he needs your help.
Write a 5–7-page memo to the GM that provides your responses to his questions above. Be sure to cite any references used in proper APA format.
In: Operations Management
A Four bar mechanism with a frame length of 200 mm, crank length of 100 mm, coupler length of 300 mm and follower length of 250 mm, if the mechanism is assembled in open cpen configuration and the input angle is 45o .
what is:
1-The coupler angle for open and crossed configuration ?
2-The output angle for open and crossed configuration ?
In: Mechanical Engineering
Create a webpage with HTML and JAVA Script that takes a user's 4 inputs (first name, last name, phone number, and sex[using checkbox, must set on load and change whenever the checkbox is selected, only 1 box can be selected, selecting the other automatically deselects the latter])
The first button saves all the inputs into LOCAL STORAGE
The Second button retrieves all the data in LOCAL STORAGE and displays them on the same page. Alert box to inform the user the button was selected.
The third button to clear the sex designation key/value pair in LOCAL STORAGE. Alert Box to inform the use the button was selected.
In: Computer Science
//code
if(isset($_GET['submit'])){
//sanitize the input
/* Check the error from the input:
if input from user is empty
-> get an error string variable
if input is not empty
-> use preg_match() to match the pattern
$pattern = "/^[1-9][0-9]{2}(\.|\-)[0-9]{3}(\.|\-)[0-9]{4}$/";
-> if it's a matched, get a success string variable
*/
}
?>
Lab 2-Part1
Phone Number
>
xxx.xxx.xxx or xxx-xxx-xxxx
Must enter a valid
phone number!
Phone number is
valid!
Submit
In: Computer Science