5. Most of all, have fun! We are looking for people who have a core passion...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
5. Most of all, have fun! We are looking for people who have a core passion to solve puzzles and to make the world better by applying their engineering talents. By evaluating the way a person writes code and communicates, it is easy to determine if the person truly enjoys his/her profession. Write a program that does the following: Given a string variable: StrRates StrRates is a string with delimited list of numbers. This list can be of arbitrary length. The pattern of this list is: Rate1"," Price 1,1 "," ... Raten "," Price1,n ":L" LockPeriod1 ";" ... Rate2"," Pricem, 2 "," Raten"," Pricem,n ":L" LockPeriodm ";" The Objective of the Program is to transform this string into the following two-dimensional matrix and display it as an html page. So the output should look like this: Rate₁ Rate2 Rate3 ... Raten Lock₁ Price1.1 Price1,2 Price1,3 5.0 5.5 6.0 Price1,n Lockz Price2,1 10 100 101 102 Price2,2 Price2.3 Price2.n 20 99 Lock3 Price3,1 Price 3,2 Price 3,3 100 101 Price3.n Here is an example input value: "5.0,100,5.5,101,6.0,102: L10;5.0,99,5.5,100,6.0,101: L20;" The result will be an HTML page with a table that looks something like this: Lockm Pricem,1 Pricem, 2 Pricem,3 Pricem. *** 5. Most of all, have fun! We are looking for people who have a core passion to solve puzzles and to make the world better by applying their engineering talents. By evaluating the way a person writes code and communicates, it is easy to determine if the person truly enjoys his/her profession. Write a program that does the following: Given a string variable: StrRates StrRates is a string with delimited list of numbers. This list can be of arbitrary length. The pattern of this list is: Rate1"," Price 1,1 "," ... Raten "," Price1,n ":L" LockPeriod1 ";" ... Rate2"," Pricem, 2 "," Raten"," Pricem,n ":L" LockPeriodm ";" The Objective of the Program is to transform this string into the following two-dimensional matrix and display it as an html page. So the output should look like this: Rate₁ Rate2 Rate3 ... Raten Lock₁ Price1.1 Price1,2 Price1,3 5.0 5.5 6.0 Price1,n Lockz Price2,1 10 100 101 102 Price2,2 Price2.3 Price2.n 20 99 Lock3 Price3,1 Price 3,2 Price 3,3 100 101 Price3.n Here is an example input value: "5.0,100,5.5,101,6.0,102: L10;5.0,99,5.5,100,6.0,101: L20;" The result will be an HTML page with a table that looks something like this: Lockm Pricem,1 Pricem, 2 Pricem,3 Pricem. ***
Expert Answer:
Answer rating: 100% (QA)
The Python program to transform the string into the twodimensional matrix and display it as an H... View the full answer
Related Book For
Organizational Behaviour Concepts Controversies Applications
ISBN: 978-0132310314
6th Canadian Edition
Authors: Nancy Langton, Stephen P. Robbins, Timothy A. Judge, Katherine Breward
Posted Date:
Students also viewed these programming questions
-
what are some of the globalizing strategies used by companies? How do you understand glocalization? What is algorithmic cosmopolitanism?
-
In spite of womens impressive performance at the workplace, educational, and community level, the numberof women in leadership positions is still low. Studies indicate that, from corporate boards to...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Figlio (1999) found that legislators are more likely to mirror their constituents preferences during election years than in earlier years of their terms. This is particularly true for relatively...
-
What is the indirect effect of a change in accounting principle? Briefly describe the reporting of the indirect effects of a change in accounting principle.
-
A steel box without a lid having volume 60 cubic feet is to be made from material that costs $4 per square foot for the bottom and $1 per square foot for the sides. Welding the sides to the bottom...
-
Krista was a passenger in a rented van. She sustained injuries when the driver of the van slammed into a tree after the vans brakes failed. The driver of the van was not an authorized driver pursuant...
-
Mark Goldsmiths broker has shown him two bonds. Each has a maturity of 5 years, a par value of $1,000, and a yield to maturity of 12%. Bond A has a coupon interest rate of 6% paid annually. Bond B...
-
3. A particle of mass m is moving in the xy-plane such that its velocity at a point (x, y) is given as v = a(yx+2xy), where a is a non-zero constant. What is the force F acting on the particle? (A) F...
-
A Job at East Coast Yachts, Part 2 Input area. 10-year annual Bledsoe Large Company Stock Fund 12.15% Standard deviation 24 43% Bledsoe Bond Fund 6.93% 9.96% Risk-free rate Correlation 3.20% 0.15...
-
(a) (b) (c) Figure Q3(a) shows the input signal of a sensor to an Analog to Digital Converter (ADC). Based on your understanding, discuss the process of the Analog to Digital Converter. V Analog to...
-
An elderly rancher died and left her estate to her three children. She bequeathed her 17 prize horses in the following manner: \(1 / 2\) to the eldest, \(1 / 3\) to the second child, and \(1 / 9\) to...
-
A fair apportionment of dividing a leftover piece of cake between two children is to let child \#1 cut the cake into two pieces and then to let child \#2 pick which piece he or she wants. Consider...
-
The width-to-height ratio of paper in the ISO format is the square root of 2 to 1 . Format A0 has an area of 1 square meter. Format A1 is A0 cut with a vertical line into two equal halves, A2 is A1...
-
Write a program Permutations that takes an integer command-line argument \(n\) and prints all \(n\) ! permutations of the \(n\) letters starting at a (assume that \(n\) is no greater than 26). A...
-
It can be shown that \[1+2+3+\cdots+m=\frac{m(m+1)}{2}\] Use this formula to determine how many total points there would be in a Borda count with \(n\) voters and \(m\) candidates.
-
Which of the following explains why sugar dissolves easily inwater? A. Sugar is nonpolar solute and water is polar solvent. B. Both sugar and water are polar molecules C. Sugar is polar solute and...
-
Graph one period of each function. y = 4 cos x
-
What might Rogers have done differently as president of the board?
-
Ben Kaufman is the CEO of Kluster, a web-based company that invites individuals and companies to send in ideas for new products. At age 17, Kaufman started his career as a web designer, but soon...
-
This case focuses on the changing workplace where power and politics are used to influence rather than pressure, to get results. Employees are not simply told or ordered what to do, but persuaded in...
-
Using a financial calculator, solve for the unknowns in each of the following situations. a. On June 1, 2024, Holly Golightly purchases lakefront property from her neighbor, George Peppard, and...
-
Stan rented an office building to Clay for \($3,000\) per month. On December 29, 2022, Stan received a deposit of \($4,000\) in addition to the first and last months rent. Occupancy began on January...
-
In 2017, Harry and Mary purchased Series EE bonds, and in 2023 redeemed the bonds, receiving \($500\) of interest and \($1,500\) of principal. Their income from other sources totaled \($30,000.\)...
Study smarter with the SolutionInn App