make this matlab program work . Problem Statement: Using a repetition, write a program that will ask
Fantastic news! We've Found the answer you've been seeking!
Question:
make this matlab program work .
Transcribed Image Text:
Problem Statement: Using a repetition, write a program that will ask the user to enter a character from left or right. Then, the user will enter a number. The program should generate a ladder of an integer from 1-9 only, wherein the level depends on the number entered, and the character should dictate whether it faces right or left. Sample Output: Input a Character: R Input a Number: 3 il Output 1 22 333 Input a Character: R Input a Number: 6 1 2 1 22 333 4444 Criteria Proper output for a triangle facing left Proper output for a triangle facing right 55555 666666 Input a Character: L Input a Number: 5 1 21 321 4321 54321 Laboratory Exercise Score Sheet Total 50 50 100 Score Problem Statement: Using a repetition, write a program that will ask the user to enter a character from left or right. Then, the user will enter a number. The program should generate a ladder of an integer from 1-9 only, wherein the level depends on the number entered, and the character should dictate whether it faces right or left. Sample Output: Input a Character: R Input a Number: 3 il Output 1 22 333 Input a Character: R Input a Number: 6 1 2 1 22 333 4444 Criteria Proper output for a triangle facing left Proper output for a triangle facing right 55555 666666 Input a Character: L Input a Number: 5 1 21 321 4321 54321 Laboratory Exercise Score Sheet Total 50 50 100 Score
Expert Answer:
Answer rating: 100% (QA)
The problem statement asks you towrite a program that will ask the user to enter a character from left or right Then the user will enter a number The ... View the full answer
Related Book For
The Science And Engineering Of Materials
ISBN: 9781305076761
7th Edition
Authors: Donald R. Askeland, Wendelin J. Wright
Posted Date:
Students also viewed these programming questions
-
Commercial Mortgage Investing after the 2008 Financial Crisis 1) Construct the promised cash flows to directly lending $5.8 million in commercial mortgages using the information contained in Exhibit...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
) Explain the collision detection mechanism applied in standard wired medium access control associated with CSMA and indicate why this might be unsuitable for wireless networks. [2 marks] (ii)...
-
1. Let f(x) = 2x+6 if x < -1 3x+2 if x -1 (a) What is lim, -1- f(x)? Your answer will depend on b. (b) What is lim,-1+ f(x)? (c) For what values of b does limx-1 f(x) exist? 2. Suppose that f and g...
-
Bill is looking for original taillights for his 1932 Ford. The prices vary depending on the condition. He finds these prices: $450, $100, $180, $600, $300, $350, $300, and $400. a. Find the four...
-
The A-36 steel circular tube is subjected to a torque of 10 kN # m. Determine the shear stress at the mean radius Ï = 60 mm and calculate the angle of twist of the tube if it is 4 m long and...
-
Compute and use operating leverage factor (Learning Objective 5) Suppose Kay sells 800 posters. Use the original data ( \(\$ 35\) sales price, \(\$ 21\) variable cost, \(\$ 7,000\) fixed expenses) to...
-
Critique this situation with respect to Bartons job. What recommendations would you have for him? Should the company get involved with the research? Explain your answers. Barton Boomer, director of...
-
List the critical values of the related function. Then solve the inequality. 2 4 x2 - 8x + 15 2 -25
-
The following is the statement of financial position of TT and Co. (see Self-Assessment Question 3.1 on page 113) at the end of its first year of trading: Statement of financial position as at 31...
-
The cash budget for the first three quarters of the HICASH-634 company is given below (000 omitted). The company requires a minimum cash balance of $5,000 to start each quarter. f necessary, the...
-
On October 1, 2025, Jewelry Specialists, Inc. made a loan to one of its customers. The customer signed a 9-month note for $140,000 at 13%. Calculate the total interest earned on the note. (Round any...
-
List four common risks you would need to consider when encouraging and supporting clients to exercise their rights and maintain their well-being.
-
A survey of all 35 employees at a small company of them like the recent changes to the company's benefits. Is this percentage a parameter or a statistic and why? Parameter as it represents the...
-
Marigold, Inc. is facing a problem with their 4th quarter absorption costing net operating income on December 25. Their net operating income target is $350,000 and the data so far is as follows: ...
-
Scotts Miracle-Gro has a competitive advantage over competitors in the lawn care industry, and has maintained this advantage for almost 150 years. Describe how their resources have combined to give...
-
109) For statements A through F identify which situation is most accurate. In both situations assume inherent risk is at a high level. Situation 1: While obtaining an understanding of internal...
-
Express these numbers in standard notation. a. 2.87 10-8 b. 1.78 1011 c. 1.381 10-23
-
Describe the hardness and microstructure in a eutectoid steel that has been heated to 800C, quenched to 300C and held for 10 s, quenched to room temperature, and then reheated to 400C before finally...
-
Define engineering stress and engineering strain.
-
A 0.2-mm-thick wafer of silicon is treated so that a uniform concentration gradient of antimony is produced. One surface contains 1 Sb atom per 10 8 Si atoms and the other surface contains 500 Sb...
-
Taking into account differential labor costs abroad, transportation, tax advantages, and so forth, U. S. corporations can maximize long-run profits. There are also nonprofit behavioral and strategic...
-
When money is tight, interest rates are generally high. This means that near-cash assets have high returns; hence, it is expensive to hold idle cash balances. Firms tend to economize on their cash...
-
a. Better synchronization of cash inflows and outflows would allow the firm to keep its transactions balance at a minimum, and would therefore lower the target cash balance. b. Improved sales...
Study smarter with the SolutionInn App