In network security, a spoofing attack is defined as a technique by which an individual or a program impersonates as another by deliberately falsifying information or data to spread malware, steal information, or bypass access controls. The common types of spoofing are email spoofing, IP spoofing, DNS spoofing.
E-mail address spoofing is used by the hackers or spammers to hide the source or origin of the e-mails and is known as email spoofing. It involves creation of an email with a forged sender address.
I added a decimal format to keep all decimals within the hundredths place. I also changed the calcTip method to void and the argument to a double. Void means the method doesn't return anything and changing bill to type double let's us pass numbers with decimals to the calcTip method. I hope this helps!