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...
-
Kristina took out a bank loan for $60 000 that must be repaid with regular monthly payments of $1100. The bank charges her an interest rate of 3.0%, compounded monthly. a) How many payments will...
-
.Which of the following is false regarding the Sarbanes-Oxley act? a. It requires that external auditors report to the company president. b. It applies to publicly traded companies. C. It requires...
-
The following information is from White Mountain Furniture Showrooms financial records. Collections from customers are normally 70 percent in the month of sale, 20 percent in the month following the...
-
28. Winston Company has a debt-to-equity ratio of 1.5. Current cost of equity is 12%. The corporate tax rate is 40%. What is Winston Company's unleveraged cost of equity (risk-free interest rate =...
-
Salamander Inc. is a food processing company that operates divisions in three major lines of food products: cereals, frozen fish, and candy. On 13 September 20X1, the Board of Directors voted to put...
-
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.
-
Glycerin at 20C is to be pumped through a horizontal smooth pipe at 3.1 m3/s. It is desired that (1) the flow be laminar and (2) the pressure drop be no more than 100 Pa/m. What is the minimum pipe...
-
Find literature values for room temperature magnetic susceptibility for graphite, manganese zinc ferrite, germanium, and iron. Are they within the same order of magnitude? Why or why not?
-
Mickley Company s plantwide predetermined overhead rate is $ 2 1 . 0 0 per direct labor - hour and its direct labor wage rate is $ 1 1 . 0 0 per hour. The following information pertains to Job A - 5...
-
Suppose a consumer has $120/week to spend on two consumer goods, good x and good y. (a) Illustrate the weekly budget lines (with x on the horizontal and y on the vertical axis) under two price...
-
Factor the following completely: 9x - 49. 2
-
How did XYZ Electronics allocate its marketing budget to ensure the successful execution of its strategy?
-
Marie has weekly budget of $24 which she like to spend on magazines and pies. If the price of a pie is $12, what is the maximum number of pies she could buy in a week?
-
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...
-
American Blossom management is planning to make a $3.7 million loan to a French firm. Currently, LIBOR is at 0.55 percent. American management considers a default risk premium of 1.10 percent, a...
-
The following account balances are for Ping Chung, Certified Public Accountant, as of April 30, 20X1. Cash Accounts receivable $120,000 48,000 Maintenance expense 21,400 Advertising expense 17,060...
-
Abbott Equipment leased a protein analyzer to Werner Chemical, Inc., on September 30, 2021. Abbott purchased the machine from NutraLabs, Inc., at a cost of $5 million. The five-year lease agreement...
Study smarter with the SolutionInn App