computer science
posted by sand .
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.
• Rightaligned 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 centeralign,
then the longest item; if they rightalign, then all items' last characters).
Respond to this Question
Similar Questions

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 … 
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 … 
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+n42=0 (n6)(n+7)=0 n=6 n=7 Is my work and answer correct? 
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? 
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 … 
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 … 
DISCRETE MATHS
We need to show that 4 divides 1n2 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 = 4k24k = 4 (k24k). k is a nonnegative … 
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 … 
7th grade math
The sum of an integer and the next greater integer is at the most 13. Write an inequality to find the lesser integer and solve for the lesser integer. My answer n+n+1 <_ 13 n<_6 
maths
the non decreasing sequence of odd integers {a1, a2, a3, . . .} = {1,3,3,3,5,5,5,5,5,...} each positive odd integer k appears k times. it is a fact that there are integers b, c, and d such that, for all positive integers n, añ = …