# computer science

posted by .

Python 3
For this option, you will first ask "how
many rows?", and get a positive integer from them. Next, you will ask
"how many columns?", and get another positive integer from them. The next step is to ask for an alignment of
each column. They will enter "L", "C", or "R" for each column. You will then accept rows times columns entries
(don't require them to be any particular type). Finally, print out the items into a table such that:
• each column's items aligned as requested – left, center, or right. Fill blanks with the space character.
• a single space, followed by a tab, is the exact distance between a column's longest element and the next
column. Items in a column that are not longest will need extra spacing to achieve identical spacing
between themselves and the next column.
• Right-aligned columns will be just long enough for the longest item, and then all items' last characters will
then have the space and tab after them.
• The last column should have no extra spacing beyond the longest item – each column should thus be the
exact same width, exactly up to the last character requested by the user (e.g., if they left- or center-align,
then the longest item; if they right-align, then all items' last characters).

## Similar Questions

1. ### math, algebra

2a+2ab+2b I need a lot of help in this one. it says find two consecutive positive integers such that the sum of their square is 85. how would i do this one i have no clue i know what are positive integers.but i don't know how to figure …
2. ### Algebra

Find two consecutive positive integers such that the sum of the square is 85..(show your work) If X is the first integer, then X+1 is the next; therefore, the sum of those squares will be 85. X^2 + (X+1)^2 = 85 Solve for X, then add …
3. ### algebra

Find two consecutive positive integers such that the sum of their squares is 85. n^2+(n+1)^2+2n = 85 n^2+n^2+2n+1=85 2n^2+2n=84 n^2+n=42 n^2+n-42=0 (n-6)(n+7)=0 n=6 n=-7 Is my work and answer correct?
4. ### Math

When you add a positive integer and a negative integer, you sometimes get a negative result and sometimes get a positive result. Is the same true when you multiply a positive integer and a negative integer?
5. ### Discrete Math

Theorem: For every integer n, if x and y are positive integers with max(x, y) = n, then x = y. Basic Step: Suppose that n = 1. If max(x, y) = 1 and x and y are positive integers, we have x = 1 and y = 1. Inductive Step: Let k be a …
6. ### MATH

Find the only positive integer whose cube is the sum of the cubes of three positive integers immediately preceding it. Find this positive integer. Your algebraic work must be detailed enough to show this is the only positive integer …
7. ### DISCRETE MATHS

We need to show that 4 divides 1-n2 whenever n is an odd positive integer. If n is an odd positive integer then by definition n = 2k+1 for some non negative integer, k. Now 1 - n2 = 1 - (2k+1)2 = -4k2-4k = 4 (-k2-4k). k is a nonnegative …
8. ### PROGRAMMING

1. Make a C program that will input two integers and then to enter an option as follows: • 1 = to add the two integers. • 2 = to subtract the second integer from the first. • 3 = to multiply the integers • 4 = to divide the …