subject
Computers and Technology, 20.04.2020 19:10 hazelg

You're enjoying learning programming so much, you've decided to run your own class teaching programming basics. You've got plenty of students signing up, and now you need to make logins for each of them. Since usernames (but not first names) have to be unique, you decide to write a program to help generate them. You should read in the classlist. txt which contains on each line. Your program should print out a list of usernames based on the following rules:

Username should be a students' first and, if applicable, middle name(s), with no spaces, converted to lower case.
If there already exists a student with that username, use their firstname plus first letter of last name converted to lower case.
If that already exists, use firstname plus first letter of lastname, plus a number, starting at 1 and counting up as required.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:30
4.11 painting a wall (1) prompt the user to input integers for a wall's height and width. calculate and output the wall's area (integer). note that in this case there is a new line after each prompt. (submit for 1 point). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet (2) extend to also calculate and output the amount of paint in gallons needed to paint the wall (floating point). assume a gallon of paint covers 350 square feet. store this value in a variable. output the amount of paint needed using the %f conversion specifier. (submit for 2 points, so 3 points total). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet paint needed: 0.471429 gallons (3) extend to also calculate and output the number of 1 gallon cans needed to paint the wall. hint: use a math function to round up to the nearest gallon. (submit for 2 points, so 5 points total). enter wall height (feet): 11 enter wall width (feet): 15 wall area: 165 square feet paint needed: 0.471429 gallons
Answers: 3
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Ideally, the backrest is tilted back slightly, so when you turn the wheel your shoulders are the seat.
Answers: 2
You know the right answer?
You're enjoying learning programming so much, you've decided to run your own class teaching programm...
Questions
Questions on the website: 13722363