Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This program should prompt the user for one of three // membership levels for an online site AND whether they are // a student or

This program should prompt the user for one of three // membership levels for an online site AND whether they are // a student or not. // // 1 - Standard Membership // 2 - Enhanced Membership // 3 - Pro Membership // // The membership fees are $5.00/month for Standard membership, // $10.00/month for Enhanced membership and $25.00/month for Pro // membership. Students get a 50% discount on all memberships. // // REQUIRED INPUT: // Must prompt for membership level first (1, 2 or 3). // Must then prompt if a student (input of 'y','Y','n' or 'N'). // // REQUIRED OUTPUT: // The program MUST display the results EXACTLY as shown below: // // "Standard Membership Fee: $5.00/month" // "Enhanced Membership Fee: $5.00/month (student)" // etc. // // NOTE: // The use of printf and %.2f within the printed string allows // for the formatting of output to display two decimal places, // e.g. (where cost if a variable of type double). // // System.out.printf( // "Total is: $%.2f Thanks for shopping with us", cost); // displays // Total is $12.52 Thanks for shopping with us // -------------------------------------------------------------

Need a whole code in java

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions