Write a C++ app to read both files, store them into parallel vectors, sort the list of people in alphabetical order, display the new sorted list of names with their corresponding descriptions. Use the Bubble Sort strategy to rearrange the vector(s).
File 1:
Marilyn Monroe
Abraham Lincoln
Nelson Mandela
John F. Kennedy
Martin Luther King
Queen Elizabeth II
Winston Churchill
Donald Trump
Bill Gates
Muhammad Ali
Mahatma Gandhi
Margaret Thatcher
Mother Teresa
Christopher Columbus
Charles Darwin
Elvis Presley
Albert Einstein
Paul McCartney
Queen Victoria
Pope Francis
Jawaharlal Nehru
Leonardo da Vinci
Vincent Van Gogh
Franklin D. Roosevelt
Pope John Paul II
Thomas Edison
Rosa Parks
Lyndon Johnson
Ludwig Beethoven
Oprah Winfrey
Indira Gandhi
Eva Peron
Benazir Bhutto
George Orwell
Desmond Tutu
Dalai Lama
Walt Disney
Neil Armstrong
Peter Sellers
Barack Obama
Malcolm X
J.K.Rowling
Richard Branson
Pele
Angelina Jolie
Jesse Owens
John Lennon
Henry Ford
Haile Selassie
Joseph Stalin
Lord Baden Powell
Michael Jordon
George Bush Jnr
Vladimir Lenin
Ingrid Bergman
Fidel Castro
Leo Tolstoy
Greta Thunberg
Pablo Picasso
Oscar Wilde
Coco Chanel
Charles de Gaulle
Amelia Earhart
John M Keynes
Louis Pasteur
Mikhail Gorbachev
Plato
Adolf Hitler
Sting
Mary Magdalene
Alfred Hitchcock
Michael Jackson
Madonna
Mata Hari
Cleopatra
Grace Kelly
Steve Jobs
Ronald Reagan
Lionel Messi
Babe Ruth
Bob Geldof
Leon Trotsky
Roger Federer
Sigmund Freud
Woodrow Wilson
Mao Zedong
Katherine Hepburn
Audrey Hepburn
David Beckham
Tiger Woods
Usain Bolt
Carl Lewis
Prince Charles
Jacqueline Kennedy Onassis
C.S. Lewis
Billie Holiday
J.R.R. Tolkien
Billie Jean King
Anne Frank
Simon Bolivar
File 2:
(1926 - 1962) American actress, singer, model
(1809 - 1865) US President during American civil war
(1918 - 2013) South African President anti-apartheid
campaigner
(1917 - 1963) US President 1961 - 1963
(1929 - 1968) American civil rights campaigner
(1926 - ) British monarch since 1954
(1874 - 1965) British Prime Minister during WWII
(1946 - ) Businessman, US President.
(1955 - ) American businessman, founder of Microsoft
(1942 - 2016) American Boxer and civil rights campaigner
(1869 - 1948) Leader of Indian independence movement
(1925 - 2013) British Prime Minister 1979 - 1990
(1910 - 1997) Macedonian Catholic missionary nun
(1451 - 1506) Italian explorer
(1809 - 1882) British scientist, theory of evolution
(1935 - 1977) American musician
(1879 - 1955) German scientist, theory of relativity
(1942 - ) British musician, member of Beatles
( 1819 - 1901) British monarch 1837 - 1901
(1936 - ) First pope from the Americas
(1889 - 1964) Indian Prime Minister 1947 - 1964
(1452 - 1519) Italian, painter, scientist, polymath
(1853 - 1890) Dutch artist
(1882 - 1945) US President 1932 - 1945
(1920 - 2005) Polish Pope
( 1847 - 1931) American inventor
(1913 - 2005) American civil rights activist
(1908 - 1973) US President 1963 - 1969
(1770 - 1827) German composer
(1954 - ) American TV presenter, actress, entrepreneur
(1917 - 1984) Prime Minister of India 1966 - 1977
(1919 - 1952) First Lady of Argentina 1946 - 1952
(1953 - 2007) Prime Minister of Pakistan 1993 - 1996
(1903 - 1950) British author
(1931 - ) South African Bishop and opponent of apartheid
(1938 - ) Spiritual and political leader of Tibetans
(1901 - 1966) American film producer
(1930 - 2012) US astronaut
(1925 - 1980) British actor and comedian
(1961 - ) US President 2008 - 2016
(1925 - 1965) American Black nationalist leader
(1965 - ) British author
(1950 - ) British entrepreneur
(1940 - ) Brazilian footballer, considered greatest of 20th
century.
(1975 - ) Actress, director, humanitarian
(1913 - 1980) US track athlete, 1936 Olympics
(1940 - 1980) British musician, member of the Beatles
(1863 - 1947) US Industrialist
(1892 - 1975) Emperor of Ethiopia 1930 - 1974
(1879 - 1953) Leader of Soviet Union 1924 - 1953
(1857 - 1941) British Founder of scout movement
(1963 - ) US Basketball star
(1946 - ) US President 2000-2008
(1870 - 1924) Leader of Russian Revolution 1917
(1915 - 1982) Swedish actress
(1926 - ) President of Cuba 1976 - 2008
(1828 - 1910) Russian author and philosopher
(2003 - ) Environmentalist activist)
(1881 - 1973) Spanish modern artist
(1854 - 1900) Irish author, poet, playwright
(1883 - 1971) French fashion designer
(1890 - 1970) French resistance leader and President 1959 -
1969
(1897 - 1937) Aviator
(1883 - 1946) British economist
(1822 - 1895) French chemist and microbiologist
(1931 - ) Leader of Soviet Union 1985 - 1991
(423 BC - 348 BC) Greek philosopher
(1889 - 1945) leader of Nazi Germany 1933 - 1945
(1951 - ) British musician
(4 BCE - 40CE) devotee of Jesus Christ
(1899 - 1980) English / American film producer, director
(1958 - 2009) American musician
(1958 - ) American musician, actress, author
(1876 - 1917) Dutch exotic dancer, executed as spy
(69 - 30 BCE) Queen of Egypt
(1929 - 1982) American actress, Princess of Monaco
(1955 - 2012) co-founder of Apple computers
(1911 - 2004) US President 1981-1989
(1987 - ) Argentinian footballer
(1895 - 1948) American baseball player
(1951 - ) Irish musician, charity worker
(1879 - 1940) Russian Marxist revolutionary
(1981 - ) Swiss Tennis player
(1856 - 1939) Austrian psychoanalyst
(1856 - 1924) US president 1913 - 1921
(1893 - 1976) Leader of Chinese Communist revolution
(1907 - 2003) American actress
(1929 - 1993) British actress and humanitarian
(1975 - ) English footballer
(1975 - ) American golfer
(1986 - ) Jamaican athlete and Olympian
(1961 - ) US athlete and Olympian
(1948 - ) Heir to British throne
(1929 - 1994) American wife of JF Kennedy
(1898 - 1963) British author
(1915 - 1959) American jazz singer
(1892 - 1973) British author
(1943 - ) American tennis player and human rights activist
(1929 - 1945) Dutch Jewish author who died
(1783 - 1830) Venezuelan independence activist in South America
In: Computer Science
What are the narratives of Harriet Jacobs and Amanda America discussing?
What actions, if any, were displayed by Harriet Jacobs and Amanda American (or her mother Julia) that exhibited their mental and physical strength to endure their environment?
How does this information, add too or change, your understanding of slavery, specifically the female slave?
In: Psychology
Assume that the market of medical supplies is in perfect competition.
In early April, Trump administration proposed export bans on medical supplies. Suppose America is large economy and large exporter of medical goods.
Analyze the impact of the export bans on comsumer surplus, producer surplus, government revenue, and national welfare in the US. Use a graph to assist your analysis.
In: Economics
Nicholas Matveev wants to take a year-long cycling trip through South America in three years. He will have to pay $5,000 costs at the start of the trip and then $1,000 per month for 12 months. Assume the monthly payments are at the end of the month. He has $1,000 saved now. How much must he save each month until the trip if he earns 0.2% interest per month?
In: Finance
Assume you are the owner of a very large soybean farm in
Argentina, a country located in South-Eastern South America.
Soybean is a commodity which is traded globally. 70% of all
soybeans are used as chicken and pig feed. It has been widely
recognised as a very efficient source of protein and energy.
Another use for soybeans is splitting (or crushing) it up into
soybean meal and soybean oil – 80% becomes the meal and 20% the
oil. Much soybeans are grown in South America (~31% of world total
in Brazil, ~18% in Argentina), and demandfor the soybean, soybean
meal and soybean oil is growing very fast in Asia (especially
China). One day, you received an unexpected and peculiar call from
Zambia (a landlocked nation in Africa). The person over the line
identified himself as a procurement officer of Livingstone
International. He spoke fluent Spanish and asked if you can sell
him two shipments of unprocessed soybeans. His request is large
enough to clear out 80% of your annual harvest. The issue is you
have never sold on the international front as you have always sold
your harvest to the domestic merchants. Question 1 As the owner of
the soybean farm in Argentina, you have never sold on the
international front.
1. Research and briefly explain all the possible risks involved if
your soybean farm is expanding into global trade. [Hint: Please
organise all your research materials into FIVE (5) categories of
risks. It is expected to be between 1 and 2 pages for this
question.]
In: Operations Management
Assume you are the owner of a very large soybean farm in
Argentina, a country located in South-Eastern South America.
Soybean is a commodity which is traded globally. 70% of all
soybeans are used as chicken and pig feed. It has been widely
recognised as a very efficient source of protein and energy.
Another use for soybeans is splitting (or crushing) it up into
soybean meal and soybean oil – 80% becomes the meal and 20% the
oil. Much soybeans are grown in South America (~31% of world total
in Brazil, ~18% in Argentina), and demandfor the soybean, soybean
meal and soybean oil is growing very fast in Asia (especially
China). One day, you received an unexpected and peculiar call from
Zambia (a landlocked nation in Africa). The person over the line
identified himself as a procurement officer of Livingstone
International. He spoke fluent Spanish and asked if you can sell
him two shipments of unprocessed soybeans. His request is large
enough to clear out 80% of your annual harvest. The issue is you
have never sold on the international front as you have always sold
your harvest to the domestic merchants. Question 1 As the owner of
the soybean farm in Argentina, you have never sold on the
international front. 1. Research and briefly explain all the
possible risks involved if your soybean farm is expanding into
global trade. [Hint: Please organise all your research materials
into FIVE (5) categories of risks. It is expected to be between 1
and 2 pages for this question.]
Note: financial risk, credit risk, country risk, etc.
In: Operations Management
A.) Weatherwise is a magazine published by the American Meteorological Society. One issue gives a rating system used to classify Nor'easter storms that frequently hit New England and can cause much damage near the ocean. A severe storm has an average peak wave height of ? = 16.4 feet for waves hitting the shore. Suppose that a Nor'easter is in progress at the severe storm class rating. Peak wave heights are usually measured from land (using binoculars) off fixed cement piers. Suppose that a reading of 33 waves showed an average wave height of
x = 16.5 feet. Previous studies of severe storms indicate that ? = 3.5 feet. Does this information suggest that the storm is (perhaps temporarily) increasing above the severe rating? Use ? = 0.01.
What is the level of significance?
What is the value of the sample test statistic? (Round your answer to two decimal places.)
B.) A random sample of 46 adult coyotes in a region of northern Minnesota showed the average age to be x = 2.05 years, with sample standard deviation s = 0.82 years. However, it is thought that the overall population mean age of coyotes is ? = 1.75. Do the sample data indicate that coyotes in this region of northern Minnesota tend to live longer than the average of 1.75 years? Use ? = 0.01.
What is the level of significance?
What is the value of the sample test statistic? (Round your answer to three decimal places.)
C.) Bill Alther is a zoologist who studies Anna's hummingbird (Calypte anna). Suppose that in a remote part of the Grand Canyon, a random sample of six of these birds was caught, weighed, and released. The weights (in grams) were as follows.
|
The sample mean is x = 3.75 grams. Let x be a random variable representing weights of hummingbirds in this part of the Grand Canyon. We assume that x has a normal distribution and ? = 0.70 gram. Suppose it is known that for the population of all Anna's hummingbirds, the mean weight is ? = 4.45 grams. Do the data indicate that the mean weight of these birds in this part of the Grand Canyon is less than 4.45 grams? Use ? = 0.10.
What is the level of significance?
Compute the z value of the sample test statistic.
(Round your answer to two decimal places.)
Find (or estimate) the P-value. (Round your answer to four
decimal places.)
D.) Pyramid Lake is on the Paiute Indian Reservation in Nevada. The lake is famous for cutthroat trout. Suppose a friend tells you that the average length of trout caught in Pyramid Lake is ? = 19 inches. However, a survey reported that of a random sample of 46 fish caught, the mean length was x = 18.4 inches, with estimated standard deviation s = 3.5 inches. Do these data indicate that the average length of a trout caught in Pyramid Lake is less than ? = 19 inches? Use ? = 0.05.
What is the level of significance?
What is the value of the sample test statistic? (Round your answer to three decimal places.)
E.) Unfortunately, arsenic occurs naturally in some ground water. A
mean arsenic level of
? = 8.0 parts per billion (ppb) is considered safe for agricultural use. A well in Texas is used to water cotton crops. This well is tested on a regular basis for arsenic. A random sample of 36 tests gave a sample mean of x = 7.1 ppb arsenic, with s = 2.1 ppb. Does this information indicate that the mean level of arsenic in this well is less than 8 ppb? Use ? = 0.01.
What is the level of significance?
What is the value of the sample test statistic? (Round your answer to three decimal places.)
F.) Gentle Ben is a Morgan horse at a Colorado dude ranch. Over the past 8 weeks, a veterinarian took the following glucose readings from this horse (in mg/100 ml).
91 | 89 | 82 | 104 | 99 | 108 | 82 | 91 |
The sample mean is x ? 93.3. Let x be a random variable representing glucose readings taken from Gentle Ben. We may assume that x has a normal distribution, and we know from past experience that ? = 12.5. The mean glucose level for horses should be ? = 85 mg/100 ml. Do these data indicate that Gentle Ben has an overall average glucose level higher than 85? Use ? = 0.05.
What is the level of significance?
Compute the z value of the sample test statistic.
(Round your answer to two decimal places.)
Find (or estimate) the P-value. (Round your answer to four
decimal places.)
G.) Let x be a random variable that represents hemoglobin count (HC) in grams per 100 milliliters of whole blood. Then x has a distribution that is approximately normal, with population mean of about 14 for healthy adult women. Suppose that a female patient has taken 10 laboratory blood tests during the past year. The HC data sent to the patient's doctor are as follows.
14 | 19 | 16 | 19 | 15 | 11 | 15 | 16 | 17 | 12 |
(i) Use a calculator with sample mean and standard deviation keys to find x and s. (Round your answers to two decimal places.)
x | = | |
s | = |
(ii) Does this information indicate that the population average HC
for this patient is higher than 14? Use ? = 0.01.
What is the level of significance?
What is the value of the sample test statistic? (Round your answer to three decimal places.)
H.) Let x be a random variable that represents red blood cell count (RBC) in millions of cells per cubic millimeter of whole blood. Then x has a distribution that is approximately normal. For the population of healthy female adults, suppose the mean of the x distribution is about 4.64. Suppose that a female patient has taken six laboratory blood tests over the past several months and that the RBC count data sent to the patient's doctor are as follows.
4.9 | 4.2 | 4.5 | 4.1 | 4.4 | 4.3 |
(i) Use a calculator with sample mean and standard deviation keys to find x and s. (Round your answers to two decimal places.)
x | = | |
s | = |
(ii) Do the given data indicate that the population mean RBC count
for this patient is lower than 4.64? Use ? = 0.05.
What is the level of significance?
What is the value of the sample test statistic? (Round your answer to three decimal places.)
In: Statistics and Probability
The cash account for Coastal Bike Co. at October 1, 20Y9, indicated a balance of $5,140. During October, the total cash deposited was $39,175, and checks written totaled $40,520. The bank statement indicated a balance of $8,980 on October 31, 20Y9. Comparing the bank statement, the canceled checks, and the accompanying memos with the records revealed the following reconciling items: A. Checks outstanding totaled $5,560. B. A deposit of $1,050 representing receipts of October 31, had been made too late to appear on the bank statement. C. The bank had collected for Coastal Bike Co. $2,120 on a note left for collection. The face of the note was $2,000. D. A check for $370 returned with the statement had been incorrectly charged by the bank as $730. E. A check for $310 returned with the statement had been recorded by Coastal Bike Co. as $130. The check was for the payment of an obligation to Rack Pro Co. on account. F. Bank service charges for October amounted to $25. G. A check for $880 from Bay View Condos was returned by the bank due to insufficient funds. Instructions 1. Prepare a bank reconciliation as of October 31, 20Y9. Refer to the Amount Descriptions list provided for the exact wording of the answer choices for text entries. For those boxes in which you must enter subtracted or negative numbers use a minus sign. 2. Journalize the necessary entries. Refer to the Chart of Accounts for exact wording of account titles. 3. If a balance sheet were prepared for Coastal Bike Co. on October 31, 20Y9, what amount should be reported as cash? Amount Descriptions Adjusted balance Bank error in charging check as $370 instead of $730 Bank error in charging check as $730 instead of $370 Bank service charges Check returned because of insufficient funds Company error in recording note collected by bank Deposit of October 31, not recorded by bank Error in recording check Outstanding checks Proceeds of note collected by bank, including $120 interest Total adjustments
In: Accounting
Logistical Logistics Inc. (Logistical Logistics or the “Company”) provides transportation and logistics services to customers throughout a network of offices in North America, South America, and Asia. The Company contracts fleets of shipping vessels, trucks, and aircraft to provide regional, long-haul, and international shipments of customer goods. In addition, the Company contracts warehouse operators across North America for use of their facilities as distribution centers that temporarily store goods in transit. Assume the Company has adopted the new leasing standard, ASC 842, Leases.
The Company has entered into the following contracts with the vendors identified below.
Logistical Logistics enters into a contract with See Boat Inc. (See Boat) to use its shipping vessels to transport customer goods from North America to Asia. See Boat has a fleet of 25 multi-use shipping vessels, each of which has the capacity to hold 1,000 shipping containers.
Logistical Logistics enters into a contract with Fly-By-Air Inc. (Fly-By-Air) to use its aircraft to transport customer goods from South America to North America. Fly-By-Air has a fleet of 50 multi-use aircraft, each of which has the capacity to hold 500 shipping pallets of customer goods.
Logistical Logistics enters into a contract with Trucking Co. Inc. (Trucking Co.) to use its trucks to transport customer goods from distribution centers to retail stores across North America.
Trucking Co. has a fleet of 1,500 multi-use long-haul trucking carriers, each of which has the capacity to hold 100 shipping pallets of goods.
Logistical Logistics enters into a contract with Warehouse Co. Inc. (Warehouse Co.) to store up to 18,000 shipping pallets of customer goods at one of Warehouse Co.’s locations. Warehouse Co. has the capacity to store 20,000 shipping pallets of goods.
The terms of the shipping contracts are as follows:
• See Boat
o See Boat is responsible for the safe passage of the cargo, as well as operation and maintenance of SB0829. The crew determines the ship’s route, speeds, and date of departure from Los Angeles. In addition, Logistical Logistics cannot, under any circumstances, replace See Boat’s crew.
The contract term is five years
o FBA1231, a commercial aircraft in Fly-By-Air’s fleet, is dedicated to delivering Logistical Logistics’ shipping pallets during the term of the contract.
o Logistical Logistics determines (1) the airports from and to which goods are shipped and received and (2) the order in which deliveries are made to the airports. Fly-By-Air provides the aircraft’s pilot and crew, and Logistical Logistics instructs Fly-By-Air accordingly.
o While Logistical Logistics determines what cargo will be transported throughout the term of the contract, certain restrictions prevent the Company from shipping flammable materials.
o Logistical Logistics has the right to send the aircraft regardless of whether its cargo levels meet the full storage capacity of the aircraft. If FBA1231 is below capacity, Fly-By-Air cannot use the excess storage space to ship products of its othercustomers.
• Trucking Co.
• Warehouse Co.
Logistical Logistics can store up to 18,000 shipping pallets at one specified Warehouse Co. location. Logistical Logistics will be charged for storage of 18,000 shipping pallet
The CFO of Logistical Logistics recognizes that the new leasing standard contains certain provisions that may affect how the Company treats contracts of this nature.
Note that you have been provided with Handout 1, which contains the risks of material misstatement (RoMMs) matrix, and Handout 2, which is Logistical Logistics’ control matrix.
Handout 1
RoMM No. |
RoMM Description |
1 |
Right-of-use (ROU) assets and lease liabilities are not valued correctly, on the basis of the underlying assumptions (e.g., lease terms, discount rate, lease payments) and classification of the lease (i.e., operating or financing). |
2 |
Lease expense recorded does not represent valid expense. |
3 |
Contracts or arrangements containing a lease are not identified as a lease. |
4 |
The lease is not appropriately classified on the basis of the criteria under ASC 842. |
5 |
The entity identifies ROU assets and lease liabilities for which it does not have the rights or obligations to. |
6 |
Contracts or arrangements are determined to be a lease when the criteria under ASC 842 have not been met. |
7 |
Impairment indicators may exist for ROU assets, but are not known to management. |
8 |
Lease expense is not recorded (1) at correct amounts, (2) in the proper accounts, or (3) in the proper period. |
Handout 2
Control No. |
Control Title |
Control Description |
L 1 |
Contract Review — Contract database is reviewed by each department leader. |
On a quarterly basis, each department leader (e.g., Sales, Treasury, Human Resources, IT, Tax), with appropriate knowledge of the contracts entered into by his or her department, reviews the database to verify that (1) all contracts (i.e., new, existing, or modified), in accordance with the entity’s accounting policies, have been included in the database and (2) all events or circumstances requiring reassessment have been identified. Each department leader provides representation to the Lease Accountant of the completeness and accuracy of the database, as well as, the contracts identified that require reassessment to the best of his or her knowledge. |
L 2 |
Lease Terms Review — Controller reviews and approves the key contract terms entered into the lease software. |
The Controller, with appropriate knowledge of the entity’s lease arrangements and the accounting framework and principles under the requirements of ASC 842, reviews the contract listing (e.g., contract database extract) to verify that all the key contract terms for the entity’s lease arrangements were entered by the Lease Accountant into the lease software. The Controller will verify the completeness and accuracy of the contract listing (e.g., contract database extract) by reviewing key terms against the lease contracts. Any differences identified as a result of the Controller’s review are investigated and resolved, and all questions are addressed. The Controller then approves and signs off on the contract listing (e.g., contract database extract). |
L 3 |
Review of Reconciliations — Controller reviews and approves all general ledger reconciliations for the lease specific accounts. |
The Controller reviews the lease account balance reconciliations, on a quarterly basis, along with the detailed lease analysis supporting the amounts recorded, as prepared by the Lease Accountant. After performing the review, any differences identified as a result of the review are investigated and resolved, and all questions are addressed. The Controller then approves and signs off on the lease account balance reconciliations. |
In: Accounting
In: Finance