1. Take the dating equation program from class and put it in a loop. Pretend you...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Take the dating equation program from class and put it in a loop. Pretend you have 3 different dating options so that loop runs three times. You can use either loop as long as you run it three times. Put a count in for the possible date number. Display the output as follows: (The output should be exactly as I have it meaning the blank lines in between. You can change the wording on the lines of "too creepy "or "good luck with your date." Possible Date #1: Enter your age. 80 Enter your love interests age: 30 Are you kidding - you are too creepyl Find someone your own agell. Possible Date #2: Enter your age: 43 Enter your love interest age: 30 The creepiness factor is gonel Good luck with your datel Possible Date #3: Enter your age: 20 Enter your love interest age: 23 The creepiness factor is gonel Good luck with your datel 4 print("Possible Date #1:") 5 yourAge int(input("Enter your age:)Y 6 loveInterestAge- int(input("Enter age of person you wish to date: 7 if loveInterestAge < yourAge / 2+7: print() print("Are you kidding 8. - you are too. creepy Find someone your own agell!") 10 11 else: print ("The creepiness factor is gone! Good Tuck with your datel") 12 13 14 15 1. Take the dating equation program from class and put it in a loop. Pretend you have 3 different dating options so that loop runs three times. You can use either loop as long as you run it three times. Put a count in for the possible date number. Display the output as follows: (The output should be exactly as I have it meaning the blank lines in between. You can change the wording on the lines of "too creepy "or "good luck with your date." Possible Date #1: Enter your age. 80 Enter your love interests age: 30 Are you kidding - you are too creepyl Find someone your own agell. Possible Date #2: Enter your age: 43 Enter your love interest age: 30 The creepiness factor is gonel Good luck with your datel Possible Date #3: Enter your age: 20 Enter your love interest age: 23 The creepiness factor is gonel Good luck with your datel 4 print("Possible Date #1:") 5 yourAge int(input("Enter your age:)Y 6 loveInterestAge- int(input("Enter age of person you wish to date: 7 if loveInterestAge < yourAge / 2+7: print() print("Are you kidding 8. - you are too. creepy Find someone your own agell!") 10 11 else: print ("The creepiness factor is gone! Good Tuck with your datel") 12 13 14 15
Expert Answer:
Answer rating: 100% (QA)
while True oge1 htimput Enten your ape age 2 int input Enter your love intereste age 3D ... View the full answer
Related Book For
Probability and Statistics
ISBN: 978-0321500465
4th edition
Authors: Morris H. DeGroot, Mark J. Schervish
Posted Date:
Students also viewed these accounting questions
-
Factor A Factor B 1 2 3 4 Xj for Factor B 1 2 3 4 1 2500 2 9 10 6 9 8500 3 14 11 16 12 13250 Xi for Factor A 8333 8000 9000 7333 X8083
-
Good Luck Brands reported a carrying value of its total inventory as of December 31, 2013, of $2,047.6 million; the corresponding figure for December 31, 2012, was $1,937.8. Good Luck Brands applies...
-
A study compared three different display panels for use by air traffic controllers. Each display panel was tested in a simulated emergency condition; 12 highly trained air traffic controllers took...
-
The following appliances are connected to a single 120 V, 15 A circuit in a kitchen: a 330 W blender, a 1000 W coffeepot, a 150 W coffee grinder, and a 750 W microwave oven. If these are all turned...
-
Suppose the laws of a certain state require the use of either a Subchapter S corporation or a limited partnership in operating an accounting practice. What happens if the U.S. Constitution is amended...
-
Assume the same information as BEPV.12, except that the interest rate is 9% instead of 8%. What is the annual payment that Marsdon will receive from its customer? Data from BEPV.12 Marsdon Company...
-
Find the area under the standard normal curve between z = 1.5 and z = 1.25.
-
Cycle time efficiency and JIT Walker Brothers Company is considering the installation of a JIT manufacturing system in the hope that it will improve the company??s overall processing cycle...
-
A company issued, 8 years ago, bonds with an annual coupon rate of 8% and a face value of $1000. The coupons are semi-annual and the maturity at the time of issue was 20 years. a. If the...
-
Your client, Leona Ledford, was personally served with a summons and complaint on October 23 in the case of Masters v Ledford Her answer is due in 30 days. You will mail the answer to the court. What...
-
1.5. (a) A 2D transformation is given by (1) a translation of T(2, 3), a scaling of S(1, 2), and a rotation of R), find a combination of these three transformations in one homogeneous matrix. (b) A...
-
The following output is possible using a queue: 1 3 5 4 2 1. True 2. False 3. Not enough information to determine
-
Indicate whether each of the following applications would be suitable for a queue. 1. An ailing company wants to evaluate employee records so as to lay off some workers on the basis of service time...
-
True or false? If false, correct the statement. Recursive functions: 1. often have fewer local variables than the equivalent nonrecursive routines. 2. generally use while or for statements as their...
-
Write a segment of code to perform each of the following operations. You may call any of the member functions of QueType. The details of the queue are encapsulated; you may use only the queue...
-
True or False? A trailer node is not syntactically different from the other nodes in the list.
-
How has technology impacted the legal profession's ethical responsibilities to its clients and the practice of law? How has technology impacted the legal profession's ethical responsibilities to its...
-
A random sample of 10 houses heated with natural gas in a particular area, is selected, and the amount of gas (in therms) used during the month of January is determined for each house. The resulting...
-
Show that there does not exist any number c such that the following function would be a p.f.: for x = 1, 2, . 0 otherwise f(x) r tor x-1.2
-
Consider again the conditions of Exercise 7, and let = 30 + c11, where c1 is a constant. Determine an unbiased estimator For what value of c1 will the M.S.E. of be smallest?
-
Suppose that each adult subject in an experiment is given either treatment I or treatment II. Prove that the proportion of men among the subjects who receive treatment I is equal to the proportion of...
-
The NCAA is described as a cartel. In what way is it a cartel? What is the product being produced? How does the cartel stay together?
-
What is the cost to a firm in an oligopoly that fails to take rivals actions into account?
-
The cement industry is an example of an undifferentiated oligopoly. The automobile industry is a differentiated oligopoly. Which of these two is more likely to advertise? Why?
Study smarter with the SolutionInn App