Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use the java language and follow the direction to write this program 1. PROGRAMMING ASSIGNENT 1 Read CSE 11 Laboratory Guide Read Deitel: Ch

Please use the java language and follow the direction to write this program image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
1. PROGRAMMING ASSIGNENT 1 Read CSE 11 Laboratory Guide Read Deitel: Ch 1-4, Appendix A-D, (F on ang: Ch 1-3, 4.6, Appendix A-c Programming: Name your application progran aturday, July 8, 2017 6:00an (Note: xx in the login: "callux" is your ni for turn in.) In: "calluxx is your unique login name and required Write a program to calculate an online book order types,1oops, and decisions a, a program to calculate an online book order for a student using data Input will be student name, isbn International Standard Book Number), vendor cholce,a The switch statement will determine the price associated w book choice. All other decisions will be using the a ), vendor choice, and program repeat. ith the ve d if-else constructs. The do 1oop will repeat the book number input, and the while 1oop wi1 entire program, a for loop will reduce the user 1 range the check the vendor input. Use type long integer, "1ong" for your variable that holds your data given by the grader will be one integer n 9223372036854775807 to 92233720368547758087 (mallest and larges input r in the range The of integer: 2-1). Use given code in Box below to use Scanner tor input. import java.util.Scanner? public class P1 // Scanner for input public static void main String args)) final long MAX_ISBN 10 999999999: final long BOOK1 final long BOOK2 final long BOOK3 final double PRICE3C -29.99; // Upper bound ISBN-10 // #1 Liang ISBN // #2 Deitel ISBN // #3 Unix ISBN // #3 Unix OCSD price - 134611037: - 134791401; 596002619; - char choice; char vendor // Repeat loop // Which online vendoz // Which ISBN long isbn double price: scanner scan = new Scanner (System.in); / Total price book order // Read input from keyboard // Input string reference // Assign to string Input student name String inputStr null System.out.print ("Enter students' name:) name scan.next (); system.out.print crEnter 1588-10 (omit hyphens and leadting tezons):) isbn scan.nextLong ) // Assign to long System.out.print ("Want to order more books (y)2") inputstr = scan.next(); // Read and assign to String /7 Assign to character // Loop while NOT n nor N // Close Scanner choice = inputstr.charAt(0); scan.close()

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

Students also viewed these Databases questions