Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create the Checkout page that should have appropriate controls to accept those i

ID: 645423 • Letter: C

Question

Create the Checkout page that should have appropriate controls to accept those input values.

First Name Textbox

Last Name Textbox

Delivery Address Textbox

Telephone Number Textbox

Sales Type:

Cash

Credit

Credit Card Type:

AX

V

Credit Card Number: Textbox

Credit Card Expiration Date: Calendar Control

Sales Amount: Label

RadioButtons

RadioButtons

2. All input should be validated when the user clicks the Finalize button. If an input field is not valid,

an appropriate error message should be displayed.

3. Validate that the first and last name fields are between 1 and 20, and 1 and 25 characters in

length respectively.

4. Sales can be either Cash or Credit. Write the code to make the Credit Card Type group box

visible only if the sales type is Credit.

5. If the sales type is credit, the credit card must be validated. The AX card type has the format

XXXX-XXXXXX-XXXXX. The V card type has the format XXXX-XXXX-XXXX-XXXX. Use the

value of the radio buttons to determine the card type.

6. If the sales type is credit, use the Calendar Control to get the Expiration Date from the user. And

displays the date in a label.

7. Validate the telephone number using Regular Expression.

8. The user can click the Finalize button to finalize the order. The order will be assigned an Order

number. The order number is generated using a random number. Use the Random class to

generate a random number.

9. And the order information will be saved to HTML5 local web storage .

Explanation / Answer

MultiplicationTable.java

import java.util.Scanner;

class MultiplicationTable
{
   public static void main(String args[])
   {
      int n, c;
      System.out.println("Enter an integer to print it's multiplication table");
      Scanner in = new Scanner(System.in);
      n = in.nextInt();
      System.out.println("Multiplication table of "+n+" is :-");

      for ( c = 1 ; c <= 20 ; c++ )
         System.out.println(n+"*"+c+" = "+(n*c));
   }
}

output:

Enter an integer to print it's multiplication table
94
Multiplication table of 94 is :-
94*1 = 94
94*2 = 188
94*3 = 282
94*4 = 376
94*5 = 470
94*6 = 564
94*7 = 658
94*8 = 752
94*9 = 846
94*10 = 940
94*11 = 1034
94*12 = 1128
94*13 = 1222
94*14 = 1316
94*15 = 1410
94*16 = 1504
94*17 = 1598
94*18 = 1692
94*19 = 1786
94*20 = 1880

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote