Python
#Note: use print() to add spaces between items and when needed
in the receipt
#(e.g. between user entries and between the entries and the
receipt)
#1 Ask the user for a number using the prompt: NUMBER?
# Convert the user entered number to an integer
# Calculate the square of the number and display the result on
screen with the following text before it: Your number squared
is
#2 Ask the user for a first number using the prompt: first
number?
# Ask the user for a second number using the prompt: second
number?
# Convert the two numbers to integers
# Multiply the first number by the second number and display the
result on screen with the following text before it: Result:
"""
#3 Develop a simple food receipt
a. Ask the user for inputs about two food items using the following
prompts in turn. Do not forget to assign each user
entry to a unique variable name:
Item1 name?
Item1 price?
Item1 quantity?
Item2 name?
Item2 price?
Item2 quantity?
b. Convert the price and quantity variables to integers
c. Calculate the total cost for the order by calculating each
item's total price by
multiplying price and quantity for each item and then adding up the
total prices for the two items
d. Display the results using the format:
RECEIPT
You ordered: [item1 name] and [item2 name]
Total cost: $ [total price for both items calculated in 3c
above]
"""
#Start your code below
"""
Enhance your simple food receipt
a. Ask the user for inputs about two food items using the following
prompts in turn. Do not forget to assign each user
entry to a unique variable name:
First item name?
First item price?
First item quantity?
Second item name?
Second item price?
Second item quantity?
Third item name?
Third item price?
Third item quantity?
b. Convert the price and quantity variables to integers
c. Calculate the total cost for the order by calculating each
item's total price by
multiplying price and quantity for each item and then adding up the
total prices for the three items
d. Calculate the total cost plus tax for the order by multiplying
the total cose calculated in c by the tax rate of .09
then adding the tax to the total cost
e. Display the results using the format:
RECEIPT
You ordered: [First item name] [Second item name] [third item
name]
Total cost: $ [total price for all items calculated in 3c
above]
Total cost plus tax: $ {total cost plus tax calculated in 3d
above}
"""
#Start your code below
In: Computer Science
Python
#Note: use print() to add spaces between items and when needed
in the receipt
#(e.g. between user entries and between the entries and the
receipt)
#1 Ask the user for a number using the prompt: NUMBER?
# Convert the user entered number to an integer
# Calculate the square of the number and display the result on
screen with the following text before it: Your number squared
is
#2 Ask the user for a first number using the prompt: first
number?
# Ask the user for a second number using the prompt: second
number?
# Convert the two numbers to integers
# Multiply the first number by the second number and display the
result on screen with the following text before it: Result:
"""
#3 Develop a simple food receipt
a. Ask the user for inputs about two food items using the following
prompts in turn. Do not forget to assign each user
entry to a unique variable name:
Item1 name?
Item1 price?
Item1 quantity?
Item2 name?
Item2 price?
Item2 quantity?
b. Convert the price and quantity variables to integers
c. Calculate the total cost for the order by calculating each
item's total price by
multiplying price and quantity for each item and then adding up the
total prices for the two items
d. Display the results using the format:
RECEIPT
You ordered: [item1 name] and [item2 name]
Total cost: $ [total price for both items calculated in 3c
above]
"""
#Start your code below
Enhance your simple food receipt
a. Ask the user for inputs about two food items using the following
prompts in turn. Do not forget to assign each user
entry to a unique variable name:
First item name?
First item price?
First item quantity?
Second item name?
Second item price?
Second item quantity?
Third item name?
Third item price?
Third item quantity?
b. Convert the price and quantity variables to integers
c. Calculate the total cost for the order by calculating each
item's total price by
multiplying price and quantity for each item and then adding up the
total prices for the three items
d. Calculate the total cost plus tax for the order by multiplying
the total cose calculated in c by the tax rate of .09
then adding the tax to the total cost
e. Display the results using the format:
RECEIPT
You ordered: [First item name] [Second item name] [third item
name]
Total cost: $ [total price for all items calculated in 3c
above]
Total cost plus tax: $ {total cost plus tax calculated in 3d
above}
"""
#Start your code below
In: Computer Science
Shoaib, Qamar and Azhar are partners of a firm (Platinum Trading LLC) that deals in used cars, car parts, services, renting cars for private and public sectors and maintenance service including on call services. Their business is running successfully, and they are planning to expand the business in similar verticals to gain larger market share. Everything was going well but after the sudden demise of Shoaib things are difficult to manage for them. Shoaib wife has been appointed as his legal representatives to receive his share. Sharing profit and losses in the ratio of 3:2:1. Qamar and Azhar collect the below details of Assets, liabilities and Capital balances but some information is missed. Name of Accounts OMR Name of Accounts OMR Cash at Bank 41,963 Shoaib Capital 142,311 Sundry Debtors 31,016 Qamar Capital 114,031 Stock 32,841 Azhar Capital 72,068 Lease Hold Premises 45,612 General Reserve A/c ? Machinery 136,837 Sundry Creditors 27,367 Building 91,225 Mr. Shoaib died on 31st March 2020. The legal representative of the deceased partner entitled to receive his share after the following adjustments. a. Goodwill be valued at 3 year’s purchase of the average profit of the last four years, Which were 2016 OMR 40,500; 2017 OMR 50,000; 2018 OMR 54,000; 2019 OMR 60,500. b. Building to be appreciated by 25%. c. Provision for doubtful debts to be made at 4% on Sundry Debtors. d. The assets are to be valued as, Machinery be valued at OMR 120,000 and Stock at OMR 20,000. e. For the purpose of calculating Shoaib’s share in the profit of 2020, the profit in 2020 should be taken to have been earned on the same as in 2019. f. A sum of OMR15,000 is to be paid immediately to the executors of Shoaib and the balance transferred to his loan account. You are required to pass necessary Journal entries with narrations to record the above transactions, prepare the Revaluation Account and Shoaib executors account.
In: Accounting
| Carolina Products | ||||
| Income Statement | ||||
| Years Ended 12/31/2016 & 12/31/2015 | ||||
| Horizontal Analysis | ||||
| 2016 | 2015 | $ Change | % Change | |
| Sales | $272,500 | $270,010 | ||
| Cost of Goods Sold | $157,472 | $154,589 | ||
| Gross Profit | $115,028 | $115,421 | ||
| Operating Expenses: | ||||
| Selling Expense | $49,675 | $48,500 | ||
| Salary Expense | $30,000 | $28,000 | ||
| Administrative Expense | $15,500 | $15,400 | ||
| Advertising Expense | $3,400 | $3,200 | ||
| Utilities Exp | $1,100 | $1,000 | ||
| Depreciation Exp | $1,620 | $1,450 | ||
| Total Operating Expenses | $101,295 | $97,550 | ||
| Net Income | $13,733 | $17,871 | ||
In: Accounting
| Carolina Products | ||||
| Balance Sheet | ||||
| 12/31/2016 & 12/31/2015 | ||||
| Horizontal Analysis | ||||
| Assets | 2016 | 2015 | $ Change | % Change |
| Cash | $108,886 | $107,455 | ||
| Accounts Receivable | $105,650 | $112,420 | ||
| Prepaid Insurance | $1,100 | $1,000 | ||
| Inventory | $205,000 | $189,350 | ||
| Prepaid Expenses | $1,200 | $1,050 | ||
| Land | $80,000 | $80,000 | ||
| Office Equipment | $10,500 | $10,500 | ||
| Accum Depr-Office Equip | ($2,000) | ($2,200) | ||
| Total Assets | $510,336 | $501,590 | ||
| Liabilities | ||||
| Accounts Payable | $72,090 | $70,005 | ||
| Sales Tax Payable | $3,500 | $3,450 | ||
| Interest Payable | $860 | $825 | ||
| Total Liabilities | $76,450 | $74,280 | ||
| Stockholders Equity | ||||
| Common Stock | $60,000 | $58,000 | ||
| Paid in Capital in Excess of Par | $260,000 | $254,500 | ||
| Retained Earnings | $113,886 | $114,810 | ||
| Total Stockholders Equity | $433,886 | $427,310 | ||
| Total Liabilities & Stockholders Equity | $510,336 | $501,590 | ||
In: Accounting
[Chebyshev inequality] For any random variable X and any \( a > 0 \), we have
\( P(|X-E(X)|\geq a)\leq\frac{V(X)}{a^2} \)
In: Statistics and Probability
Post a one-page essay sharing your position on the following video clip:
Professor' Kaku's talk on The Future of Technology (https://www.youtube.com/watch?v=59Ejxp1tRss)
In: Mechanical Engineering
What is the cell potential of the following cell at 25 oC?
Standard Reduction table
Cr / Cr3+ (0.053 M) // Ag1+ (0.52 M) / Ag
E=____________ V
In: Chemistry
A resistor of unknown resistance and a 22 Ω resistor are connected across a 20 V emf in such a way that a 2.0 A current is observed in the emf. What is the value of the unknown resistance?
In: Physics
In: Advanced Math