What is the output of code corresponding to the following pseudocode if the users name is Sammy?
Question:
What is the output of code corresponding to the following pseudocode if the user’s name is Sammy?
Declare Dash As Character
Declare Count As Integer
Declare Number As Integer
Declare Name As String
Set Dash = "–"
Set Count = 1
Transcribed Image Text:
Write "What's your name?" Input Name Set Number = Length_0f (Name) While Count <= Number Write Dash Set Count = Count + 1 End While Write Name Set Count = 1 While Count <= Number Write Dash Set Count = Count + 1 End While
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (9 reviews)
Answered By
Antony Mutonga
I am a professional educator and writer with exceptional skills in assisting bloggers and other specializations that necessitate a fantastic writer. One of the most significant parts of being the best is that I have provided excellent service to a large number of clients. With my exceptional abilities, I have amassed a large number of references, allowing me to continue working as a respected and admired writer. As a skilled content writer, I am also a reputable IT writer with the necessary talents to turn papers into exceptional results.
4.50+
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? Declare N As Integer Declare X As Integer Set N = 4 Set X = 10/N Write X Set X = Int(X) Write X
-
What is the output of code corresponding to the following pseudocode, assuming N and X are integer variables? Set N = 4 %3D Set X = 0 %3D While N < 12 Set X = 12 / N Write X Set X = Floor (X) Write X...
-
What is the output of the organization?
-
The AFL-CIO has undertaken a study of the yearly salaries (in thousands of dollars) of 30 administrative assistants. The organization wants to predict salaries from several other variables. The...
-
A damping device is used to reduce the undesired vibrations of machines. A viscous fluid, such as a heavy oil, is placed between the wheels, as shown in Figure P2.40. When vibration becomes...
-
How are understandability and comparability enhanced when knowing who is responsible for the budgeting process?
-
When conducting an incremental analysis, what step must always be taken immediately prior to beginning the pairwise comparisons? a. Order the alternatives from highest to lowest initial investment b....
-
All Eyes Security Services Company provides security monitoring services. It employs four security specialists. Each specialist works an average of 180 hours a month. The companys controller has...
-
You are the owner of Poptastic. For the past few years, to help supplement your familys income, you have sold premium, homemade popsicles from your food truck and a few local businesses in Pensacola,...
-
What are some of the classic signs of an unfocused operation?
-
Create flowcharts for Exercises 32 and 33 and compare them. Are they the same or different? Data from Exercise 32 Data from Exercise 33 Declare Dash As Character Declare A, B, C As Integer Set Dash...
-
Input a list of positive numbers, terminated by 0, into an array Numbers[]. Then display the array and the largest and smallest number in it.
-
Capital Budgeting In evaluating the Cayenne, what do you think Porsche needs to assume regarding the substantial profit margins that exist in this market? Is it likely they will be maintained as the...
-
Nearly everyone in the modern world is influenced to some degree by advertising and other forms of promotion. Organizations in both the private and public sectors have learned that the ability to...
-
how is a financial institution exposed to liquidity, interest rate and credit risks when it makes loan commitments ? Explain
-
A dog in an open field runs 10.0 m east and then 28.0 m in a direction 55.0 west of north. In what direction must the dog then run to end up 10.0 m south of her original starting point? Express your...
-
About: Life core fitness 1. Title page 2. Table of contents 3. Executive Summary Document Contents - 80 marks Analysis: SWOT Analysis marketing mix Customer personnel and market segmentation...
-
You have $100,000 to invest over the next two years. a.Compute the future value of your investment under the following options: i.Invest in a bond that provides a 3% annual rate of return, compounded...
-
Consider the lamina S of constant density k bounded by the cardioid r = a(1 + sin (), as shown in Figure 7. Find its center of mass and moment of inertia with respect to the x-axis. r: atl + sin ) -a...
-
Reread the discussion leading to the result given in (7). Does the matrix sI - A always have an inverse? Discuss.
-
A token bucket scheme is used for traffic shaping. A new token is put into the bucket every 5 sec. Each token is good for one short packet, which contains 48 bytes of data. What is the maximum...
-
The network of Fig. 5-34 uses RSVP with multicast trees for hosts 1 and 2 as shown. Suppose that host 3 requests a channel of bandwidth 2 MB/sec for a flow from host 1 and another channel of...
-
A router can process 2 million packets/sec. The load offered to it is 1.5 million packets/ sec on average. If a route from source to destination contains 10 routers, how much time is spent being...
-
Klumper Corporation is a diversified manufacturer of industrial goods. The company's activity-based costing system contains the following six activity cost pools and activity rates: Activity Cost...
-
Step-by-step guide to HW3b 1. The goal is to determine (a) the effectiveness of marketing mix activities and (b) the optimal budget and its allocation. 2. To this end, we use the data posted on the...
-
Problem 2. Statement of Costs of Goods Manufactured and Income statement. The following information are gathered from the accounting records of Genet Inc. for the current month: Inventory information...
Study smarter with the SolutionInn App