What is the output of the code corresponding to the following pseudocode? Declare Dash As Character Declare
Question:
What is the output of the code corresponding to the following pseudocode?
Transcribed Image Text:
Declare Dash As Character Declare A, B, C As Integer Set Dash For (A = 1; A <=3; A++) Write A For (B = 1; B <= A; B++) Write B End For(B) For (C = 1; C <= A; C++) Write Dash + Dash + Dash End For(C) End For (A)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (4 reviews)
1 1 2...View the full answer
Answered By
Somshukla Chakraborty
I have a teaching experience of more than 4 years by now in diverse subjects like History,Geography,Political Science,Sociology,Business Enterprise,Economics,Environmental Management etc.I teach students from classes 9-12 and undergraduate students.I boards I handle are IB,IGCSE, state boards,ICSE, CBSE.I am passionate about teaching.Full satisfaction of the students is my main goal.
I have completed my graduation and master's in history from Jadavpur University Kolkata,India in 2012 and I have completed my B.Ed from the same University in 2013. I have taught in a reputed school of Kolkata (subjects-History,Geography,Civics,Political Science) from 2014-2016.I worked as a guest lecturer of history in a college of Kolkata for 2 years teaching students of 1st ,2nd and 3rd year. I taught Ancient and Modern Indian history there.I have taught in another school in Mohali,Punjab teaching students from classes 9-12.Presently I am working as an online tutor with concept tutors,Bangalore,India(Carve Niche Pvt.Ltd.) for the last 1year and also have been appointed as an online history tutor by Course Hero(California,U.S) and Vidyalai.com(Chennai,India).
4.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
What is the output of code corresponding to the following pseudocode if the users name is Sammy? Declare Dash As Character Declare Count As Integer Declare Number As Integer Declare Name As String...
-
What is the output of code corresponding to the following pseudocode if the user inputs 2, 3, 4, 5? = 0 Write Sums [Count] Set Count = Count - 1 End While
-
What is the output of this program if code corresponding to this pseudocode is run? Main Declare X As Integer, Y As Integer Set X = 1 Set Y = 2 Call Sub(X, Y) Write X Write Y End Program Subprogram...
-
Swift - iOS Xcode 9.4 Write a function that: - takes in an array of integers and separates each element ofthe array into odd and even numbers - then splits the array into lists that are sorted in...
-
An ideal set of gears is shown in Table 2.5, item 10. Neglect the inertia and friction of the gears and assume that the work done by one gear is equal to that of the other. Derive the relationships...
-
Compare and contrast the two selection strategies used by the organizations discussed in the case.
-
Give two reasons why overhead might be underapplied in a given year.
-
Vivian Milroy Callaway (photo on page 216), vice president for the Center for Learning and Experimentation at General Mills, retells the story for the indulgent, delicious, and gooey Warm Delights....
-
P 27-7A (LO1/3) 2. Retained Earnings, Dec. 31: $99,095 FINANCIAL STATEMENTS The adjusted trial balance columns of Braiden Com- pany's spreadsheet are shown on the next page. Additional information...
-
The trial balance of Valdez Fashion Center contained the following accounts at November 30, the end of the companys fiscal year. Adjustment data: 1. Supplies on hand totaled $2,000. 2. Depreciation...
-
Suppose that the first statement in Exercise 30 is changed as follows: Set HelloCount = 2 What is the output now?
-
What is the output of code corresponding to the following pseudocode? Declare Dash As Character Declare A As Integer Declare B As Integer Declare C As Integer Set Dash Set A = 1 While A
-
The vector u = (3240, 1450, 2235) gives the numbers of hamburgers, chicken sandwiches, and cheeseburgers, respectively, sold at a fast-food restaurant in one week. The vector v = (2.25, 2.95, 2.65)...
-
Explain why economic grown is largely irrelevant to forecasting share prices. Would the same apply to growth in a particular industry?
-
The question: 1 Audrey Sanborn has just arranged to purchase a $550,000 vacation home in the Bahamas with a 20 percent down payment. The mortgage has a 6.1 percent stated annual interest rate,...
-
Mountain Man, a sporting goods store, is trying to figure out continuous review order policy for infuser water bottle. The bottle has following characteristics: Length of a year 52 weeks Demand per...
-
A statement claimed that teens aged 15-18 spend a total of 36 hours on social media per week. A random sample of 15 teens aged 15-18 is selected, and the mean time spent on social media is 40 hours...
-
Find the after-tax cost of debt with 10% coupon and 12% yield to maturity, if the firm's marginal tax rate is 35%.
-
You throw a softball straight up into the air at a velocity of 30 feet per second. You release the softball at a height of 5.8 feet and catch it when it falls back to a height of 6.2 feet. (a) Use...
-
$10,000 was borrowed at 3.5% on July 17. The borrower repaid $5000 on August 12, and $2000 on September 18. What final payment is required on November 12 to fully repay the loan?
-
Consider the extended LAN connected using bridges B1 and B2 in Fig. 4-41(b). Suppose the hash tables in the two bridges are empty. List all ports on which a packet will be forwarded for the following...
-
It is mentioned in Section 4.8.3 that some bridges may not even be present in the spanning tree. Outline a scenario where a bridge may not be present in the spanning tree.
-
To make VLANs work, configuration tables are needed in the bridges. What if the VLANs of Fig. 4-47 used hubs rather than switches? Do the hubs need configuration tables, too? Why or why not? Figure...
-
Reimel Furniture Company, Inc. incurred the following costs during 20x2. Direct material used Direct labor Manufacturing overhead $174,000 319,000 160,000 During 20x2, products costing $121,000 were...
-
Helix Corporation uses the weighted-average method in its process costing system. It produces prefabricated flooring in a series of steps carried out in production departments. All of the material...
-
Groucho, Harpo, and Chico form a partnership on January 1, 2021. Groucho contributes $270,000, Harpo $210,000, and Chico $120,000 to a business called Marx Brothers' Partnership. On a monthly basis,...
Study smarter with the SolutionInn App