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 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Which law requires employers to provide safe working environments for their employees? a. civil rights act b. fair labor standards act c. occupational safety and health act d. wagner act
Answers: 1
question
Computers and Technology, 22.06.2019 20:10
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
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
Mathematics, 05.05.2020 17:58
Questions on the website: 13722367