subject

What is the python code for these problems (100 points): Ask the user to enter a name. If there is an ‘a’ in the name, print a message saying ‘The name contains at least one a.’ If there is no ‘a’, print “The name does not contain the letter a.” Extend the previous program and count the number of a’s that come in the name. Ask the user to enter a number. If the number is between 1 and 50, print “The number is too small.” If the number is between 50 and 100, print “The number is too big.” If the number is 50, print “You found me.” If the number is 100, print “You found a tip: The number is between 45 and 60.” The program should keep asking the user for the number until he enters 50. Use a for loop to print numbers from 10 to 40. Ask the user to enter a number. Print all the even numbers till that number using a for loop. Generate a random integer. It can be any number from 1 to 100. Print numbers from 1 to that number. Repeat question 4. Replace the for loop with a while loop. Thanks so much!!!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". any value that is the same as the immediately preceding value is considered a consecutive duplicate. in this example, there are three such consecutive duplicates: the 2nd and 3rd 5s and the second 6. note that the last 3 is not a consecutive duplicate because it was preceded by a 7. write some code that uses a loop to read such a sequence of non-negative integers , terminated by a negative number. when the code finishes executing, the number of consecutive duplicates encountered is printed. in this case, 3 would be printed. assume the availability of a variable, stdin, that references a scanner object associated with standard input. that is, stdin = new scanner(system.in); is given.
Answers: 1
question
Computers and Technology, 22.06.2019 09:50
What is a rush associated with alcohol?
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
in 2007, floridians died in alcohol-related collisions.a.  501b.  1,051c.  5,015d.  10,839
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
You know the right answer?
What is the python code for these problems (100 points): Ask the user to enter a name. If there is a...
Questions
question
Social Studies, 27.10.2019 04:43
question
Mathematics, 27.10.2019 04:43
question
Geography, 27.10.2019 04:43
question
Geography, 27.10.2019 04:43