1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Wittaler [7]
4 years ago
6

#You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign di

fferent values to the variables. #There's an easy way to do this exercise, and a hard way. For #a hint on the easier way, revisit the sample answers for the #previous coding exercise. # #Above we've created a variable called mystery_string. Write #some code that will print the first letter of the string on #the first line, the first two letters on the second line, #the first three letters on the third line, etc., until it #prints the entire string on the last line. #
Computers and Technology
1 answer:
Musya8 [376]4 years ago
8 0

Answer:

The solution code is written in Python:

  1. mystery_string = "Programming"
  2. output = ""
  3. for x in mystery_string:
  4.    output += x  
  5.    print(output)

Explanation:

Firstly, create a variable mystery_string to hold a random string (Line 1).

Create an output variable to hold an output string (Line 2).

Create a for-loop to traverse the mystery_string character by character (Line 4). In the iteration, get a character from the mystery_string, and concatenate it with output string (Line 5). Print the output string (Line 6) before proceed to the next iteration.

You might be interested in
What are the 5 general terms of the fair use rule
Andrews [41]

the purpose and character of your use.

the nature of the copyrighted work.

the amount and substantiality of the portion taken, and.

the effect of the use upon the potential market

In its most general sense, a fair use is any copying of copyrighted material done for a limited and “transformative” purpose, such as to comment upon, criticize, or parody a copyrighted work. Such uses can be done without permission from the copyright owner

the nature of the copyrighted work; the amount and substantiality of the portion used in relation to the copyrighted work as a whole; and. the effect of the use upon the potential market for or value of the copyrighted work

uwu hope dis halpz!

5 0
3 years ago
Match each command group under Picture Tools to the appropriate tasks.
FrozenT [24]

Answer:

look at the attachment for correct answers.

6 0
3 years ago
QUICK HELP ME PLEASE
Sholpan [36]

Answer: Cable Internet access requires the setting up of fiber cables. It is the fastest type of Internet access technology. that's the answer

4 0
3 years ago
Which of the following devices is used to connect multiple devices to a network and sends all traffic to all connected devices?
Stels [109]

Answer: HUB

Explanation:

A Hub is a network device, that acts only in layer 1 (Physical layer) forwarding all traffic that reaches to the input port, to all output ports at once, without processing the received data in any way that could modify them.

It behaves like it were a multiport repeater (which has only one output port).

5 0
3 years ago
A company pays its salespeople on a commission basis. The salespepople receive $200 per week plus 9% of their gross sales for th
Maurinko [17]

Answer:

using System;

     

public class Program

{

public static void Main()

{

 Console.Write("Enter gross sales: ");

 double sales = Convert.ToDouble(Console.ReadLine());

 double payment = 200 + (sales*0.09);

 Console.Write("total payment for this week is: "+payment);

}

}

Explanation:

May I suppose that you want a program in C# to calculate the week payment? in that case let review a solution:

using System;

     

public class Program

{

public static void Main()

{

//input the gross sales of the week

 Console.Write("Enter gross sales: ");  

//convert the string data to double

 double sales = Convert.ToDouble(Console.ReadLine());

//use described algorithm to calculate the payment

 double payment = 200 + (sales*0.09);

//show the value in console

 Console.Write("total payment for this week is: "+payment);

}

}

6 0
3 years ago
Other questions:
  • PHOTOSHOP QUESTION:
    14·1 answer
  • Properly worn safety belts help prevent
    7·2 answers
  • Find the maximum value and minimum value in below mention code. Assign the maximum value to maxMiles, and the minimum value to m
    11·1 answer
  • Which is a type of display monitor? HDD CPU SSD LCD
    6·1 answer
  • A user has requested a field that counts the number of child record associated with a custom object. These custom objects have a
    9·1 answer
  • In ________ for final fields and methods the value is assignedlater but in ______ you assign the value during declaration.
    15·1 answer
  • Write an expression that evaluates to true if and only if the string variable s does not equal the string literal end.
    5·1 answer
  • Janice’s grandmother stayed at home and took care of her family while her grandfather worked. Today Janice lives on her own and
    15·2 answers
  • What is a BUG in terms of computer programming?
    7·1 answer
  • Type the correct answer in the box. Spell all words correctly. Kenny is designing a document for the employee motivation campaig
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!