Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

---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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

What is job rotation ?

Answered: 1 week ago