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
kumpel [21]
2 years ago
6

Open IDLE. Create a new script file (File-->New File, Ctrl n on Windows, Cmd n on macOS). On the first line, place your name

in a comment. Create a program that does the following: Requests an integer number from the user This number will determine the number of rows that will be displayed Print out a header row Displays the current row number, that number multiplied by ten, then multiplied by 100, then multiplied by 1000, in tabular format Repeat this until the required number of rows have been displayed This program must account for the user having stated zero (0) rows should be displayed Your output should resemble the following: Python Output 5
Computers and Technology
1 answer:
Lorico [155]2 years ago
6 0

Answer:

program:

#your name

print("{:10} {:10} {:10}".format("Number","Square","Cube"))

print("{:<10} {:<10} {:<10}".format(0,0,0))

print("{:<10} {:<10} {:<10}".format(1,1,1))

print("{:<10} {:<10} {:<10}".format(2,2**2,2**3))

print("{:<10} {:<10} {:<10}".format(3,3**2,3**3))

print("{:<10} {:<10} {:<10}".format(4,4**2,4**3))

print("{:<10} {:<10} {:<10}".format(5,5**2,5**3))

print("{:<10} {:<10} {:<10}".format(6,6**2,6**3))

print("{:<10} {:<10} {:<10}".format(7,7**2,7**3))

print("{:<10} {:<10} {:<10}".format(8,8**2,8**3))

print("{:<10} {:<10} {:<10}".format(9,9**2,9**3))

print("{:<10} {:<10} {:<10}".format(10,10**2,10**3))

output:

Number Square Cube

0 0 0

1 1 1

2 4 8

3 9 27

4 16 64

5 25 125

6 36 216

7 49 343

8 64 512

9 81 729

10 100 1000

You might be interested in
Which statement is true about laptops? Laptops use fewer components than desktops use. Most of the internal components that are
elena-14-01-66 [18.8K]

Answer:

Option 2 is correct.

Explanation:

Option 2 is correct because most of the components used in laptop is far different from Desktops. They are not able to fix in desktops. They are designed specially for laptops.

8 0
3 years ago
Read 2 more answers
On an ssd, a dashed arrow usually represents what?​
levacccp [35]
SSD stands for system sequence diagrams. SSd diagrams <span>model the interactions between objects in a single use case and illustrate how the different parts of a </span>system<span> interact with each other </span>
On an SSD, a dashed arrow usually represents an object. SSD <span>depicts the </span>objects<span> and classes involved in the scenario and the </span>sequence<span> of messages exchanged between the </span><span>objects.</span>
4 0
3 years ago
Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the method in a pr
antoniya [11.8K]

Answer:

   public static int maxMagnitude(int a, int b){

       int max;

       if (a>b){

           max = a;

       }

       else{

           max = b;

       }

       return max;

   }

The complete program calling the method is given in the explanation section

Explanation:

import java.util.Scanner;

public class ANot {

   public static void main(String[] args) {

     Scanner in = new Scanner(System.in);

       System.out.println("Please Enter two numbers");

       int num1= in.nextInt();

       int num2 = in.nextInt();

       System.out.println("The largest magnitude number is: "+maxMagnitude(num1,num2));

   }

   public static int maxMagnitude(int a, int b){

       int max;

       if (a>b){

           max = a;

       }

       else{

           max = b;

       }

       return max;

   }

}

The maxMagnitude() method uses if/else statement to compare two ints and return the larger one

7 0
2 years ago
He said,'I am learning French these days' convert to indirect Speech​
Paha777 [63]

Answer:

Indirectl Speech:

He said that he is learning French these days•

4 0
3 years ago
Subject: TLE (Technology and Livelihood Education)
Leviafan [203]

Answer

First term (t₁) = a = 3, Common difference (d) = 8 - 3 = 5 and last term (tₙ) = 78

78 = 3 + (n - 1)5

⇒ 78 = 3 + 5n - 5

⇒ 78 = -2 +5n

⇒ 78 + 2 = 5n

⇒ 80 = 5n

⇒ n = 16

Therefore, 78 is 16th term of A.P: 3, 8, 13, 18...

5 0
2 years ago
Other questions:
  • What piece of software tells the operating system how to use a specific hardware device?
    14·1 answer
  • Which media device uses the characteristic continuous?
    10·1 answer
  • Linda is searching for a new job. Which information would her potential employers likely review in her social profile?
    14·2 answers
  • The Sleeping-Barber Problem:
    15·1 answer
  • Label provides the code that executes if no case label is matched ​
    6·1 answer
  • The use of a concept or product from one technology to solve a problem in an unrelated one
    11·1 answer
  • Whats the flow in this code, and whats the risk that its creating and what can i do to fix it? (c language)
    10·1 answer
  • Given two objects represented by the tuples (22, 1, 42, 10) and (20, 0, 36, 8):
    6·1 answer
  • There is a development team delivering a new software package with agile and devops frameworks. in one of the releases, the auto
    11·2 answers
  • A(n) _____ is a local connection point-of-presence that connects a variety of high-performance networks, and its main function i
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!