Question
---java code--- ---- trorchy's tuna are starting to sell their food online. tuna sandwiches are $3.5 each , or $12 for 4. a delivery fee
---java code---
----
trorchy's tuna are starting to sell their food online. tuna sandwiches are $3.5 each , or $12 for 4. a delivery fee for 10% is assessed on all deliveries to west campus.
write an interactive main() that prompts the user to enter the number of tuna sandwiches and a "yes" or "no" indicating whether or not they living in west campus, and prints the roral cost of the order including delivery. a sample interaction is shown below, with users responses in bold. note that the price of $19.00 id correct for input shown. it is okay to assume that anything oder than the exact string "yes" may be interpreted as a "no"
how many? 6
west campus(yes/no)? y
total:19.0
import java.util.Scanner ;
public class TorchysOrder{
public static void main (string [] args)
{
}
}
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