A programming problem (a total of 3, 100 points)
1, create the first register and then login procedure, requirements:
(1) four variables, respectively save username when registering, password and login user name, password,
(2) use the if... Else statements to complete the user name, password,
Note: when registering users called his name and password for the student id, when the screenshots submitted need to display the user name and password,
(code + running effect screenshots submitted)
2, create a Einstein ladder program to solve problem, note: equipped with a step, every step across 2 order, the last more than 1 order; Each step across 3 order, over the last 2 order; Each step across 5 order, over the last four order; Each step across 6 order, over the last 5 order; Only every step across 7 order, just the ladder to the top,
How many step ladder at least? Requires the use of the while loop statements,
(code + running effect screenshots submitted)
3, create a Yang hui triangle output program, requirements:
(1) each row number of left and right sides is symmetrical, from 1 began to grow bigger, then shrinks, return to 1;
(2) except for 1 on both sides of each number is equal to the number of the corresponding Numbers on a line and a line of the sum of Numbers in front of;
(3) requires the use of data in a nested list save Yang hui triangle,
(code + running effect screenshots submitted)