Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Lab Assignment- Nested Loops

Make sure to use a nested loop for each of these projects.

1. Create a class that asks the user for the number of rows and the number of columns, and prints out a design (your choice - * or [] or whatever) in that number of rows and columns given by the user.

Ex.
Rows: 3
Cols: 2

**
**
**

2. Create a class that prints the multiplication table that uses the numbers from 1 - 12 on the top row and leftmost column. Make sure to print out the products in the correct spaces. Adjust your spacing so that everything lines up - utilize \t for tabs.

    1    2    3    4     5      6 ...
1  1    2    3    4     5      6...
2  2    4    6    8     10    12...
3  3    6    9    12   15    18...
4  4     8   12   16   20   24... ...

3. Create a class that will ask the user for a positive integer input, then print out the following pattern based on the int input.

Ex if input is 5:
        5
      45
    345
  2345
12345

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92757690

Have any Question?


Related Questions in Computer Engineering

Question 1 page referencesthat respond to the following

Question: 1 page / references That respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use exam ...

What is unified threat management utm and the services it

What is Unified Threat Management (UTM) and the services it combines into one device. Does UTM holds true to the principle of defense-in-depth

Sql using oraclethe task is to remove suffix from last name

SQL using Oracle. The task is to remove suffix from last name column (e.g. Smith Sr. or Stevens Jr.) and put into the preexisting suffix column in the DB. Final result needs to be in the last name column: Smith or Steven ...

String c is considered to be an interleaving of strings a

String C is considered to be an interleaving of strings A and B if it contains all (and only) the characters of both A and of B and their respective order is preserved in C. For example, C = aacabbaa is an interleaving o ...

Your task in this assignment is to create a threaded class

Your task in this assignment is to create a threaded class that "races" by counting and displaying the numbers from 1 to 10. Each of the instances of this thread class should have a unique ID (i.e. the first instance sho ...

Question after 1 year of launch ride sharing increased a

Question: After 1 year of launch, ride sharing increased a lot resulting in a lot of insertion requests to the database. Consider there is no room to further increase the size of server and changing database is not an op ...

Question suppose you transferred three packets each

Question : Suppose you transferred three packets each containing 1000 bytes of data from one system to another. The entire process took 1 minute and 20 seconds. What is the data rate (bits/sec) of this transmission? Can ...

Question suppose a task consists of 40 cpu access 20 memory

Question : Suppose a task consists of 40% CPU access, 20% memory access and 40% disk access. A CPU with 8 cores provides an effective speedup of only 4 over a singlecore CPU. What is system speed up (as defined by Amdahl ...

Describe 2 variables a government will look at to predict

Describe 2 variables a government will look at to predict where the economy will be in the next six months.

Research parallel computing and prepare an informal paper 2

Research parallel computing and prepare an informal paper 2 -3 pages in length, single spaced with a blank line beltween paragraphs. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As