Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started