In PYTHON OF JUPIDER NOTEBOOK
Write a program that prompts the user to enter his/her
nationality (French/french, Italian/italian, or Spanish/spanish).
Then ask his/her name using a prompt message in his/her own
language (use Google Translate if you need). After getting the
name, again greet him/her using a greeting message in his/her own
language.
If the user is not from any of the above nationalities just use
English to prompt for name and to greet the user.
Example 1:
Nationality? french
quel est votre nom? Patrick
Bonjour Patrick , mon nom est Python!
Example 2:
Nationality? Canadian
What is your name? Alex
Hello Alex , my name is Python!
In: Computer Science
using python3
Write a Python program that lets a user search through the 'data.txt' file for a given first name, last name, or email address, and print all the matches/results.
Test your program.
In: Computer Science
(C++) You are given a file consisting of students’ names in the following form: lastName, firstName middleName. (Note that a student may not have a middle name.)
Write a program that converts each name to the following form: firstName middleName lastName. Your program must read each student’s entire name in a variable and must consist of a function that takes as input a string, consists of a student’s name, and returns the string consisting of the altered name. Use the string function find to find the index of ,; the function length to find the length of the string; and the function substr to extract the firstName, middleName, and lastName.
Here are the names:
Miller, Jason Brian
Blair, Lisa Maria
Gupta, Anil Kumar
Arora, Sumit Sahil
Saleh, Rhonda Beth
Spilner, Brody
In: Computer Science
#promt the user to enter student name for i in range(0, 3): print ("Enter student's first and last name") #variable for name name = input() #prompt the user to enter number of book purchased print ("Enter the number of book the student purchased this month") #varibale for number of book book_number = input() book_number = int (book_number) #point = int (point) if (book_number <=0): points = 0 elif (book_number <=3): points = 5 elif (book_number <=6): points = 10 elif (book_number <=8): points = 15 elif (book_number ==9): points = 20 else : points = 25 print (name , "earned" ,points)
this is my python code but it is not printing all the names and points, just printing the last one.
In: Computer Science
Exercise 240 On January 1, 2020, the Oriole Company had $2,990,000 of $10 par value common stock outstanding that was issued at par and Retained Earnings of $1,150,000. The company issued 146,000 shares of common stock at $16 per share on July 1. On December 15, the board of directors declared a 10% stock dividend to stockholders of record on December 31, 2020, payable on January 15, 2021. The market value of Oriole Company stock was $17 per share on December 15 and $17 per share on December 31. Net income for 2020 was $580,000. Journalize the issuance of stock on July 1 and the declaration of the stock dividend on December 15. (Credit account titles are automatically indented when the amount is entered. Do not indent manually. Record journal entries in the order presented in the problem. If no entry is required, select "No Entry" for the account titles and enter 0 for the amounts.) Date Account Titles and Explanation Debit Credit choose a transaction date Prepare the stockholders' equity section of the balance sheet for Oriole Company at December 31, 2020. ORIOLE COMPANY Balance Sheet (Partial) December 31, 2020 select an opening section name select an opening section name select an opening section name select an opening section name $enter a dollar amount select an opening section name enter a dollar amount select an opening section name enter a subtotal of the two previous amounts select an opening section name enter a dollar amount select an opening section name enter a total amount for this subsection select an opening section name enter a dollar amount select an opening section name $enter a total amount for this section Need this part please. Prepare the stockholders' equity section of the balance sheet for Oriole Company at December 31, 2020.
In: Accounting
Consolidated Balance Sheet Working Paper, Bargain PurchaseOn January 1, 2016, Paxon Corporation acquired all of the outstanding common stock of Saxon Company for $1.8 billion cash. Paxon uses the complete equity method to report its investment. The trial balances of Paxon and Saxon at December 31, 2016, are shown below:
| Dr(Cr) | ||
|---|---|---|
| (in millions) | Paxon | Saxon |
| Cash and receivables | $3,100 | $800 |
| Inventory | 2,260 | 940 |
| Long-term investments | -- | -- |
| Investment in Saxon | 2,158 | -- |
| Land | 650 | 300 |
| Buildings and equipment (net) | 3,600 | 1,150 |
| Current liabilities | (2,020) | (1,200) |
| Long-term debt | (5,000) | (450) |
| Common stock, par value | (500) | (100) |
| Additional paid-in capital | (1,200) | (350) |
| Retained earnings, January 1 | (2,410) | (845) |
| Dividends | 500 | 100 |
| Sales revenue | (30,000) | (10,000) |
| Equity in net income of Saxon | (258) | -- |
| Gain on sale of securities | -- | (10) |
| Gain on acquisition | (200) | -- |
| Cost of goods sold | 26,000 | 8,000 |
| Depreciation expense | 300 | 40 |
| Interest expense | 250 | 25 |
| Other operating expenses | 2,770 | 1,600 |
| Totals | $0 | $0 |
Several of Saxon's assets and liabilities had fair values different from their book values at the acquisition date, as follows:
| (in millions) | Fair Value less Book Value |
|---|---|
| Inventory (FIFO) | $100 |
| Long-term investments (sold in 2016) | (50) |
| Land | 245 |
| Buildings and equipment, net (20 years, straight-line) | 300 |
| Long-term debt (overvalued), (5 years, straight-line) | (110) |
Required
(a) Prepare a schedule to compute equity in net income of Saxon for 2016, and the December 31, 2016, balance for Investment in Saxon, as reported on Paxon's books.
Enter all answers in millions. Round all answers to the nearest million, when appropriate.
Use negative signs with answers that reduce equity in net income.
| Calculation of Equity in
Net Income for 2016 (in millions) |
|
|---|---|
| Saxon's reported net income for 2016 | $Answer |
| Revaluation write-offs: | |
| Inventory | Answer |
| Long-term investments | Answer |
| Buildings and equipment | Answer |
| Long-term debt | Answer |
| Equity in net income of Saxon | $Answer |
Calculation of investment balance for December 31, 2016 (in millions).
1. Calculate gain on acquisition
When appropriate, use negative signs with your excess of fair value over book value answers (left column only). Do not use negative signs with your answers in the right column.
| Acquisition cost | $Answer | |
| Book value | Answer | |
| Excess of acquisition cost over book value | Answer | |
| Excess of fair value over book value: | ||
| Inventory | $Answer | |
| Long term investments | Answer | |
| Land | Answer | |
| Buildings and equipment | Answer | |
| Long-term debt (discount) | Answer | Answer |
| Gain on acquisition | $Answer | |
2. Prepare the journal entry made by Paxon to record the acquisition (in millions).
| General Journal | ||
|---|---|---|
| Description | Debit | Credit |
| AnswerInvestment in SaxonGain on acquisitionGoodwillEquity in net income for Saxon | Answer | Answer |
| Cash | Answer | Answer |
| AnswerInvestment in SaxonGain on acquisitionGoodwillEquity in net income for Saxon | Answer | Answer |
Use negative signs with answers that reduce the investment balance.
| Calculation of Investment Balance, December 31, 2016 | |
|---|---|
| (in millions) | |
| Investment balance, January 1, 2016 | $Answer |
| Equity in net income for 2016 | Answer |
| Dividends for 2016 | Answer |
| Investment balance, December 31, 2016 | $Answer |
(b) Use a working paper to consolidate the trial balances of Paxon and Saxon at December 31, 2016.
Remember to use negative signs with your credit balance answers in the Consolidated Balances column.
| Consolidation Working Paper | |||||||
|---|---|---|---|---|---|---|---|
| Accounts Taken From Books | Eliminations | ||||||
| (in millions) | Paxon Dr (Cr) |
Saxon Dr (Cr) |
Debit | Credit | Consolidated
Balances Dr (Cr) |
||
| Cash and receivables | $3,100 | $800 | $Answer | ||||
| Inventory | 2,260 | 940 | (R) | Answer | Answer | (O-1) | Answer |
| Long term investments | - | - | (O-2) | Answer | Answer | (R) | Answer |
| Investment in Saxon | 2,158 | - | Answer | (C) | Answer | ||
| Answer | (E) | ||||||
| Answer | (R) | ||||||
| Land | 650 | 300 | (R) | Answer | Answer | ||
| Buildings and equipment, net | 3,600 | 1,150 | (R) | Answer | Answer | (O-3) | Answer |
| Current liabilities | (2,020) | (1,200) | Answer | ||||
| Long-term debt | (5,000) | (450) | (R) | Answer | Answer | (O-4) | Answer |
| Common stock | (500) | (100) | (E) | Answer | Answer | ||
| Additional paid-in capital | (1,200) | (350) | (E) | Answer | Answer | ||
| Retained earnings, Jan. 1 | (2,410) | (845) | (E) | Answer | Answer | ||
| Dividends | 500 | 100 | Answer | (C) | Answer | ||
| Sales revenue | (30,000) | (10,000) | Answer | ||||
| Equity in net income of Saxon | (258) | (C) | Answer | Answer | |||
| Gain on sale of securities | - | (10) | Answer | (O-2) | Answer | ||
| Gain on acquisition | (200) | - | Answer | ||||
| Cost of goods sold | 26,000 | 8,000 | (O-1) | Answer | Answer | ||
| Depreciation expense | 300 | 40 | (O-3) | Answer | Answer | ||
| Interest expense | 250 | 25 | (O-4) | Answer | Answer | ||
| Other operating expenses | 2,770 | 1,600 | - | - | Answer | ||
| Total | $0 | $0 | $Answer | $Answer | $Answer | ||
(c) Prepare the consolidated balance sheet at December 31, 2016, and the consolidated income statement for 2016.
For all your answers below, do not use negative signs.
| Consolidated Income Statement | ||
|---|---|---|
| Year Ended December 31,2016 | ||
| (in millions) | ||
| Sales | $Answer | |
| Cost of goods sold | Answer | |
| Gross margin | Answer | |
| Operating expenses: | ||
| Depreciation expense | $Answer | |
| Interest expense | Answer | |
| Other operating expenses | Answer | Answer |
| Income before other gains | Answer | |
| Gain on sale of securities | Answer | |
| Gain on acquisition | Answer | |
| Net income | $Answer | |
|
Consolidated Balance Sheet December 31, 2016 |
||
|---|---|---|
| (in millions) | ||
| Assets | ||
| Cash and receivables | $Answer | |
| Inventory | Answer | |
| Land | Answer | |
| Buildings and equipment, net | Answer | |
| Total assets | $Answer | |
| Liabilities and Stockholders' Equity | ||
| Current liabilities | $Answer | |
| Long-term debt | Answer | |
| Common stock | Answer | |
| Additional paid-in capital | Answer | |
| Retained earnings | Answer | |
| Total liabilities and stockholders' equity | $Answer | |
In: Accounting
Eureka Company issued $290,000 in bonds payable on January 1, 2016. The bonds were issued at face value and carried 4-year term to maturity. They had a 5% stated rate of interest that was payable in cash on January 1st of each year beginning January 1, 2017. Based on this information, the amount of total liabilities appearing on the December 31, 2016 balance sheet would be:
$290,000. $288,550. $304,500. $14,500.
In: Accounting
According to the Federal Election Commission, 53.6% of all registered voters in 2012 voted in the US presidential elections in 2012. A political study conducted in January 2016 surveyed 1,251 eligible voters and found that 86% said they planned to vote in the 2016 presidential election. Based on this information, match each term to its value.
1. 1,251 2. 53.6% 3. 86%
a. statistic b. sample size c. parameter
In: Statistics and Probability
Viking Inc. owned all of Quest Co. The subsidiary had bonds payable outstanding on January 1, 2016, with a book value of $265K. The parent acquired the bonds on that date for $288K. Subsequently, Viking reported interest income of $25K in 2016 while Quest reported interest expense of $29K. Consolidated financial statements were prepared for 2017. What adjustment would be required for the retained earnings balance as of January 1, 2017?
In: Accounting
The profits of a firm for the last five years were as follows.
|
Year |
Profit (OMR) |
|
2015 |
10,000 |
|
2016 |
20,000 |
|
2017 |
30,000 |
|
2018 |
20,000 |
|
2019 |
18,000 |
In: Accounting