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% (6 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...
-
Explain: convertible securities from firm and investor
-
What is strategic planning?
-
At December 31, 2012, before any year-end adjustments, the Accounts Receivable balance of Stenners Electronics is $180,000. The Allowance for Doubtful Accounts has an $11,600 credit balance. Stenners...
-
E3-6B (L03) (Adjusting Entries) Cheng, D.D.S., opened a dental practice on January 1, 2017. During the first month of oper-ations the following transactions occurred. 1. Performed services for...
-
Secure Homes is pondering an opportunity to produce and sell a new smart home monitoring system that can be managed remotely using a smartphone app. The company has gathered the following data on...
-
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
-
(a) Which ion is smaller, Co3+ or Co4+? (b) In a lithium ion battery that is discharging to power a device, for every Li+ that inserts into the lithium cobalt oxide electrode, a Co4+ ion must be...
-
The following table contains the monthly operating costs of a company. Salary is not included. Determine the variance and standard deviation of the costs. Enero Febrero Marzo Abril Mayo Junio Julio...
-
Becker & Smith, CPAs, performs a financial statement review for BAM Markets ( BAM ) . Caroline, the manager on the job, learns that Don, a member of the review team, violated the independence rules....
-
Presented here are selected transactions for Sheridan Inc. during August of the current year. Sheridan uses a perpetual inventory system. It estimates a return rate of 10%, based on past experience....
-
. Complete both parts (a) and (b) below. ). In1 (a) Let X11, X12, ..., X be a random sample of size n from a population with mean and variance . Let X21, X22,..., X2n2 be a random sample of size n...
-
41. Let S be the cone z = x + y, z 2, oriented with outward unit normal. Use Stokes' theorem to evaluate the flux integral for the vector field SJ (V x F). ndS F(x, y, z) = (x y)i + 2zj + xk. -
-
Is it correct to say that scalar quantities are abstract, idealized quantities with no precise counterparts in the physical world, whereas vector quantities properly represent reality because they...
-
Reread the discussion leading to the result given in (7). Does the matrix sI - A always have an inverse? Discuss.
-
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...
-
Cash from Operating Activities: ______________ Cash from Investing Activities: ______________ Cash from Financing Activities: ______________ Problem 2: Financial Ratios The GAP Macys 1 Current Ratio...
-
On January 1, 2021, Winky Enterprises issued 12% bonds dated January 1, 2021, with a face amount of $2,800,000. The bonds mature in 2030 (10 years). For bonds of similar risk and maturity, the market...
-
Using the following accounts and balances, prepare the stockholders' equity vection of the balance sheet. Pilty thousand shares of common stock are authorised, and 1,000 shares have been recoured,...
Study smarter with the SolutionInn App