Question: write in Java Source Code. thank you Assignment 3A: We are never, ever, ever, ever. You are hosting a party and you invited a girl

write in Java Source Code. thank you  write in Java Source Code. thank you Assignment 3A: We are
never, ever, ever, ever. You are hosting a party and you invited
a girl named Taylor (who has no relation to pop icon Taylor

Assignment 3A: We are never, ever, ever, ever. You are hosting a party and you invited a girl named Taylor (who has no relation to pop icon Taylor Swift ). However, Taylor's ex- boyfriend, Fernando will also be there. At your party, you plan to pair people together for a dance off, but you cannot pair Taylor and Fernando together. This would ruin everybody's good time, and nobody wants to listen to another bad pop song. Write a program that prompts the user to enter the name of a guest and the name of a second guest. The program determines whether the guests can be paired together. Only Taylor and Fernando cannot be paired together. Extra brownie points: Can you solve this using only an iflelse statement? Sample Output +1: Enter guest 1: Taylor Enter guest 2: Fernando Your party is ruined and another bad pop song will be written. Sample Output 12: Enter guest 1: Fernando Enter guest 2: Taylor Your party is ruined and another bad pop song will be written. Sample Output #3: Enter guest 1: Taylor Enter guest 2: Jorge Your party was a hit! Sample Output #4: Enter guest 1: Neha Enter guest 2: Fernando Your party was a hit! Assignment3B: Worst. Calculator. Ever. The Reverse-Polish Notation (RPN) calculator can be a bit tricky to use. The basic idea of the RPN calculator is you first enter two numbers, then enter the operator for those two numbers. For example, if you want to multiply 4-9, you will enter a 4, a 9 and then the operator. You will design and implement a program based on this concept. Write a program that prompts the user to input two integers (not floats) followed by an operator (one of these five characters: +,-./or %). The program prints out the solution. Remember, the program only accepts integers, so division will be integer division. You cannot use an if/else statement in your program (you will receive no credit). Be creative Note: See the Appendix for how to read a single character from the console (do not use strings) Sample Output #1: Enter the first number: 10 Enter the second number: 3 Enter the operator to apply: 30 Sample Output #2: Enter the first number: 10 Enter the second number: 3 Enter the operator to apply: / Sample Output +3: Enter the first number: 10 Enter the second number: 3 Enter the operator to apply: 1 Assignment3C: Party of 6? Have you noticed that if you're dining in a restaurant with a group of 6 or more people, that an extra 18% gratuity will be added to the bill? This is to ensure that your party doesn't leave without leaving a tip. Write a program that asks the user to input the number of people in their group and the cost of the bill. If the group has 6 or more people, the program will add 18% gratuity to the bill and ask the user if they want to leave an additional tip. If the user answers yes, the program will prompt the user to enter an additional tip and the program will print the total bill. If the user answers no then the program just prints the total bill. If the group has less than 6 people, the program will ask for a tip, then calculates the total bill. You need to use the float data type for your variables. Sample Output 11: How many people in your party? 6 What is the total cost of your bill? 200 Your bill is $236 Would you like to include an additional tip (Y/N)? Y How much? 25 Total bill is: $261 Sample Output +2: How many people in your party? 4 What is the total cost of your bill? 300 Your bill is $300 How much for the tip? 25 Total bill is: $325

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!