Write a program which outputs the numbers from 1 to 80

Assignment Help Computer Engineering
Reference no: EM132211512

Question :

Write a program, using nested loops, which outputs the numbers from 1 to 80 in 8 columns and 10 rows.

Your output should look something like this. (The sample programs should help you figure out how to do this):

Now modify it so it outputs the table like this. Note that the numbers go down the columns now (but you still have to output row by row...).

You may need to do some thinking to figure out how to do this; it might help to do it on paper first, and figure out what you need to add as you go across the columns, and as you go down to the next row.

(Hint: for each row, what is the value at the beginning of the row, and what do you need to add to each column to get the value for the next column of the current row?)

Now modify it so it prompts you for the maximum number to output, and the number of rows. (Keep it simple...no need for error checking on the input.)

How many numbers to output? 80 how many rows?

Reference no: EM132211512

Questions Cloud

Display the seating chart of a theater : Write a program that can be used by a small theater to sell tickets for performances.Display the seating chart of a theater.
Write a program that takes two words as input from keyboard : Write a program that takes two words as input from the keyboard, representing a password and the same password again.
Perform the addition of two byte sized numbers : Write a program in TASM that performs the addition of two byte sized numbers that are initially stored in memory locations 'num1' and 'num2'.
Write a prolog recursive predicate that tells us : This knowledge base holds facts about towns you can travel between by taking a direct train, e.g., from union station to san bernardino.
Write a program which outputs the numbers from 1 to 80 : Write a program, using nested loops, which outputs the numbers from 1 to 80 in 8 columns and 10 rows.
Write a program using python that asks the user to enter air : Write a program using python that asks the user to enter air, water, and steel abd the distance that a sound wave will travel in the medium.
Write a program with an array of four payroll objects : Design a PayRoll Class that has data members for an employee's hourly pay rate, number of hours worked,and total pay for the week.
Find optimal number of clusters using elbow method : Find optimal number of clusters using Elbow Method and then Apply K-Means clustering. Finally do visualization for K-Means Clustering.
Write a program of wordsearch puzzle : Write a program of wordSearch puzzle that use the following text file as an input. The output should be like this: PIXEL found (left) at (0,9).

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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