Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

letter A is the example and b is the question pleaseee answerr asap thankyouuu ACTIVITIES A. Make a Java program that will satisfy the requirements

letter A is the example and b is the question pleaseee answerr asap thankyouuu

image text in transcribedimage text in transcribedimage text in transcribed
ACTIVITIES A. Make a Java program that will satisfy the requirements specified below. Save the program as Sample4.java then compile and execute the program. Input screen: Last Name of Sender : First Name of Sender : Delivery. Code Letter Fee Scanned with CamScanner Output screen: Sender Name : fffffffflllllllil Deliver Code : X Delivery Type: Special Letter Type : Citywide Letter Fee : XXX. XX. Delivery Fee : XXX. XX Total Fee : XXX . XX Do the following: 1. Assign the following to data to variables: Delivery Type is Special Letter Type is Citywide Delivery Fee is 30.50 2. Last and first name - assume up to 15 characters 3. Delivery Code-assume an integer from 2 to 20 4. Letter Fee - assume a float from 50.00 to 100.00 5. Total Fee = Letter Fee + Delivery Fee Acceptable solution: importjava. util . Scanner ; public class Sample4 public static void main (String arg) { /* declare variables */ String 1name, fname, dtype, Itype; intdcode, 1code; doublelfee, dfee, tfee; /* assign data to variables */ dtype="Special"; 1type="Citywide"; dfee=30.50; /* input */ Scanned with CamScanner System. out . printf ("\ ") ; Scanner in = new Scanner (System. in) ; System. out . printf ("Last Name of Sender :") ; 1name = in. nextLine () ; System. out . printf ("First Name of Sender:") ; fname = in . nextLine () ;Letter Type is Citywide Delivery Fee is 30.50 2. Last and first name-assume up to 15 characters 3. Delivery Code-assume an integer from 2 to 20 4. Letter Fee- assume a float from 50.00 to 100.00 5. Total Fee = Letter Fee + Delivery Fee Acceptable solution: importjava. util . Scanner ; public class Sample4 public static void main (String arg) { /* declare variables */ String 1name, fname, dtype, Itype; intdcode, 1code; doublelfee, dfee, tfee; /* assign data to variables */ dtype="Special"; 1type="Citywide"; dfee=30. 50; /* input */ Scanned with CamScanner System. out . printf ("\ ") ; Scanner in = new Scanner (System. in) ; System. out. printf ("Last Name of Sender :") ; 1name = in. nextLine (); System. out. printf ("First Name of Sender:"); fname = in. nextLine () ; System. out . printf ("Deliver Code :"); dcode = in. nextInt( ); System. out . printf ("Letter Fee " ); 1fee = in. nextFloat(); /* compute */ tfee=1fee+dfee; /* display */ System. out . printf ("\ \ \ "); System. out . printf ("Sender Name : s %s\ ", fname, 1name) ; System. out . printf ("Delivery Code: %%d\ " , dcode) ; System. out . printf("Delivery Type: %s\ ", dtype); System. out . printf("Letter Type : %%s\ ", Itype); System. out . printf ("Letter Fee : 6. 2f\ ", Ifee) ; System. out . printf ("Delivery Fee : %%%. 2f\ \ ", dfee); System. out . printf ("Total Fee : 96. 2f\ ", tfee) ; B. Make a Java program that will satisfy the requirements specified below. Save the program as Prog4.java . Compile and execute the program. Input screen: Last Name of Student : First Name of Student: Department Code ID Number Rate per UnitV \\ System.out2pniptrg } B. Make alava program that will sati program as Pr0g4.java . Compile a Input screen: Output screen: "I glad\": I . Mme-2 sfy the requirements specied below. Save the nd execute the program; , ' ' Last Name of Student - First Name of Student: Department Code ID Number Rate per Unit Scanned with CamScanner Student Name 1111111111, Ffffffff Department Code x Department Engineering XXX 24 ID Number Number of Units Rate per Unit xxxx. xx Total Payable Do the following: 1. Assign the following to data to variables: Department is Engineering Number of Units is 24 Registration Fee is 350.00 Misc Fee is 1800.20 Last and First Nameassume up to 20 characters Department Code assume an integer from 3 to 34 ID Number assume an integer from 111 to 555

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

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

Highest peak as well as active volcano of North America?

Answered: 1 week ago

Question

Which is the largest fresh water leak in the world?

Answered: 1 week ago

Question

Which north american country known as the sugar bowl of the world?

Answered: 1 week ago

Question

South America is the continent located in which hemisphere?

Answered: 1 week ago