A program that creates a number grid based on user input

Assignment Help Computer Engineering
Reference no: EM132113588

(Python) Write a program that creates a number grid based on user input

There are four (4) parts to this program:

1. Initialize the necessary variables

2. Prompt the user for the number of rows and columns in the number grid

3. Create for loops based on the size of the grid

4. Print the integers, (starting with 1), in the number grid as specified

Using the IDLE Python editor, enter the following comments in your Python program identifying each part. Make sure to leave blank spaces between each comment section.

# Initialize any necessary variables

# Prompt the user for the number of rows and columns

# Create for loops based on the size of the grid

# Print the integers in the number grid as specified

Write the appropriate Python code to complete each block. Make sure to keep the commands within the corresponding comment blocks. These print() function parameters might be useful:

print()=advances to a new, blank line

print("some text", end= "")=prints "some text", doesn't advance to a new line

print("some text", end= "\t")=adds a TAB character, doesn't advance to a new line

Example:

This program create a number grid

number of rows: 5

number of columns: 3

1 2 3

4 5 6

7 8 9

10 11 12

13 14 15

Reference no: EM132113588

Questions Cloud

Calculate the overall risk of hip dysplasia : (a) Calculate the overall risk of hip dysplasia. (b) Calculate the risk of hip dysplasia for Golden Retrievers.
Simulate the insertion into an initially empty hash table : Consider a linear hash table that uses 4-bit hash keys and stores two records per bucket.
What is the probability that both are non-smokers : A male student and a female student from the college are randomly selected for a survey. What is the probability that both are non-smokers?
Find the probability that a person in china : According to the WHO MONICA Project the mean blood pressure for people in China is 128 mmHg with a standard deviation of 23 mmHg
A program that creates a number grid based on user input : Write a program that creates a number grid based on user input. Prompt the user for the number of rows and columns in the number grid.
Create a minimax function that evaluates the best possible : Create a minimax function that evaluates the best possible move for depth of 5, where AI moves want to be maximized and USER moves want to be mimized.
Find the z-score corresponding to the area : Find the z-score corresponding to the given area. Remember, z is distributed as the standard normal distribution with mean of 0 and standard deviation of 1.
Write a python program that contains a main function : Write a PYTHON program that contains a main function and a custom, void function namedshow_larger that takes two random integers as parameters.
Asks the user for the number of males and number of females : Write a program that asks the user for the number of males and the number of females registered in a class using two separate inputs.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Benefits and negative effects by workplace automation

State at least three advantages and three negative effects brought about by the workplace automation. A multinational corporation transfers a foreign employee to United States on an L-1 visa. The foreign employee is a computer programmer, working ..

  Provide a formula for the likelihood function

Now provide a formula for the likelihood function and the gradient for a general RMN.

  Develop a structure chart for segment of the holiday travel

Develop a structure chart for this segment of the Holiday Travel Vehicles system. What type of structure chart have you drawn, a transaction structure or a transform structure? Why?

  Which is true of today''s cios

The traditional set of IS responsibilities includes all of the following except.

  Application showing files name-size and last modifiaction

Make a file by utilizing any word-processing program or the text editor. Write down an application which shows the file's name, size, and time of the last modification.

  Write a program that keeps asking the user for a password

Write a program that keeps asking the user for a password until they correctly name it. Once they correctly enter the password, the program congratulates user.

  Program to generate professor rating class

Write down the program which generates a Professor Rating class containing of the professor ID and three ratings. The three ratings are utilized to evaluate the easiness, helpfulness, and clarity.

  What would be your recommendation for future improvement

For the last written assignment for this course, I would like to do a little introspection. I would like you to write a 3 page report that addresses.

  Describe the basic activities that must be managed by bcp

Develop a business continuity plan for your organization. Describe the basic activities that must be managed by the BCP.

  Discuss what is the data mining

Online Discussion forum: Post your proposed topic and chosen dataset as well as a short plan for the project. Explain if it falls into the supervised.

  What is artificial intelligence

What is Artificial intelligence - Which is not the commonly used programming language for AI?

  Write a sub procedure that plays the game ro-sham-bo

IE 212 Homework: Programming Structures. Write a sub procedure that plays game Ro-Sham-Bo (a.k.a., Rock, Paper, Scissors) for player and computer opponent

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd