Question: package edu.ilstu; import java.util.Scanner; / * * * * / public class RegaliaOrder { / * * * @param args * / public static void

package edu.ilstu;
import java.util.Scanner;
/**
*
*/
public class RegaliaOrder {
/**
* @param args
*/
public static void main(String[] args){
// TODO Auto-generated method stub
Scanner myScan = new Scanner(System.in);
Double mPrice =40.0;
Double bfPrice =50.0;
Double mfPrice =95.0;
Double customizationPrice =10.50;
int regalia =0;
String design ="";
String customStuff ="";
String keepShopping ="";
String regaliaType ="";
System.out.print("Welcome Redbird Graduates" +"
");
System.out.print("M -Masters Hood:" + mPrice+"
");
System.out.print("BF -Bachelors Cap,Gown, and Tassel:" + bfPrice +"
");
System.out.print("MF -Bachelors Cap,Gown, amd Tassel: "+ mfPrice +"
");
System.out.print("Enter the Number of Graduation Regalia to Purchase: ");
regalia = myScan.nextInt();
System.out.println("What Type: ");
regaliaType = myScan.next();
System.out.println("Would you like a school Custom design?(y/n): ");
design = myScan.next();
for(int i =0; i <= regalia; i++){
if(design.equals('y')){
System.out.println("We provide the following at $10.50 each:");
System.out.println("A Custom Gown W/School Custom Zipper Pull And Patch
"
+"B - Custom Tassel W/School Custom Charm");
System.out.print("Which Customization would you like(a/b)");
customStuff = myScan.next();
System.out.print("Would you like to keep shopping(y/n)?");
keepShopping = myScan.next();
}else {
System.out.print("Please enter Shipping information ");
if(keepShopping.equals('y')){
System.out.print("Enter the Number of Graduation Regalia to Purchase: ");
regalia = myScan.nextInt();
System.out.println("What Type: ");
regaliaType = myScan.next();
System.out.println("Would you like a school Custom design?(y/n): ");
design = myScan.next();
} else {
System.out.print("Please enter Shipping information ");
}
} how do i make this work im trying to loop the statement depending on the users y/n and a/b answers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!