Question: Write a program called spam. java' to generate a personalised spam message based on the user's full name, country and a sum of money.
Write a program called spam. java' to generate a personalised spam message based on the user's full name, country and a sum of money. Use the following template for the spam message, with a blank line before the message starts. Dearest It is with a heavy heart that I inform you of the death of my father, General Fayk , your long lost relative from Mapsfostol. My father left the sum of USD for us, your distant cousins. Unfortunately, we cannot access the money as it is in a bank in . I desperately need your assistance to access this money. I will even pay you generously, 30% of the amount USD, for your help. Please get in touch with me at this email address asap. Yours sincerely Frank Sample 10 Enter first name: Patrick Enter last name: Star Enter sum of money in USD: 1234 Enter country name: South Africa Dearest Patrick It is with a heavy heart that I inform you of the death of my father, General Fayk Star, your long lost relative from Mapsfostol. My father left the sum of 1234USD for us, your distant cousins. Unfortunately, we cannot access the money as it is in a bank in South Africa. I desperately need your assistance to access this money. I will even pay you generously, 30% of the amount 370.2USD, for your help. Please get in touch with me at this email address asap. Yours sincerely Frank Star Hint: Use "System.out.println" or "System.out.print with_" " at the end of your input string to move to the next line before input.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
