It’s your birthday!!! Practice with Decision Structures and Random Generator
B Correct Answer
›Tracing the output question ›Potential wild card! Reminder: Quiz on Monday
›Write a price look-up program ›Ask the user what company they would prefer to buy from ›Then, ask the user what specific item they would like to purchase ›Including the sales tax (7%) calculate their total and print it out to the user Practice: Walmart
›Apple: –iPhone 6: $ –iPhone 6 Plus: $ –iPhone 6s: $ –iPhone 6s Plus: $ ›Samsung: –Galaxy s6: $ –Galaxy s6 Edge: $ –Galaxy Note 5: $ Practice: Walmart ›Google: –Nexus 5x: $99.99 –Nexus 6p: $ ›Other: –LG G4: $ –Motorola Moto G: $149.99
›Write a program that allows users to pre-qualify for a loan ›Rules for qualification are as follows: –The borrower must make at least $50,000 a year and must have been at their job for more than 2 years –The 2 year job requirement can be waived however, if the borrower is making more than $100,000 a year Practice: Preapproval for a Loan
›Ask the user for their annual salary and for the number of years they’ve been working at their job ›Then print out a statement that says “you qualify” or “you do not qualify” for this loan ›In addition, if they do not qualify, explain why Practice: Preapproval for a Loan
›Write a program that allows a user sign up for a Facebook ›Ask the user to enter their address and password, and confirm the password ›Then, skip a few lines and allow the user to log in for the first time. If both the and password are correct, then print out a welcome screen. Practice: Logging In