Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I use eclipse Getting Started To start this exercise, you should 1. Open eclipse and start a new Java project named Lab06 2. Add a

I use eclipse image text in transcribed
Getting Started To start this exercise, you should 1. Open eclipse and start a new Java project named Lab06 2. Add a Class (named Lab06) to this project. Problem Description For this lab you are to write as complete Java program to run a simple cash register for a eye glass store. A customer can buy either a pair of single prescription glasses (at a cost of $40.00 ), or a pair of non-prescription sunglasses (at a cost of $25.00 ). On each pair of single prescription glasses the customer must choose either an anti-glare coating (at a cost of $12.50 ) or a brown tint coating (at a cost of $9.99). Requirements At each point where the user is being presented with an option - You must display a simple menu with menu options and then repeatedly get the user's menu option until a "valid" option is entered. The valid menu option is then used to guide the program's logic from that point. Sample Run What kind of glasses would you like: 1 prescription, 2 non-prescription : 0 1 prescription, 2 non-prescription : 3 1 prescription, 2 non-prescription : 1 What kind of coating would you like: 1 anti-glare, 2 brown tint : 0 1 anti-glare, 2 brown tint : 3 1 anti-glare, 2 brown tint : 1 Your total cost is $52.5

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

Step: 3

blur-text-image

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

Beyond Greed And Fear Understanding Behavioral Finance And The Psychology Of Investing

Authors: Hersh Shefrin

1st Edition

0195161211, 978-0195161212

Students also viewed these Databases questions