Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will be using the JOptionPane object and the showInputDialog method to prompt for user input. Prompt the user to enter an email address. You

image text in transcribedimage text in transcribed

You will be using the JOptionPane object and the showInputDialog method to prompt for user input. Prompt the user to enter an email address. You must validate the entered email to make sure these rules are met: 1. Can't be blank. 2. Email must be less than or equal 30 characters 3. Must END with @student.stcc.edu 4. Can only have one @ in it. (this is a bit tricky, but, try it) 5. Can only START with A-Z or a-z 6. Can't have any of these characters anywhere in it: # $ % & The messages below should be displayed for any of the above Email invalid conditions. You must check for all email situations and show all the problems with the Email at once. Email is empty. Email must be less than 30 characters. Must end in: @student.stcc.edu. Can only have one @ Must start with A through Z or a through z. Can not have: #$%& , . You will be using the JOptionPane object and the showInputDialog method to prompt for user input for a test grade. The test grade has the potential to contain a decimal value such as 97.5. Make sure you pick a correct primitive numeric data type. Write the conditional logic to determine if the letter grade as follows: 97.0 or greater A+ 94.0 to 96.9 A 90.0 to 93.9 A- 87.0 to 89.9 B+ 84.0 to 86.9 B 80.0 to 83.9 B- 77.0 to 79.9 C+ 74.0 to 76.9 70.0 to 73.9 C- 67.0 to 69.9 D+ 64.0 to 66.9 D 60.0 to 63.9 D- 59.9 or less F 1 Once you have determined the letter grade use the JOptionPane objects. showMessageDialog method to show on each line (see sample below): 1. Email Address 2. Any Email validation errors (if any) or the words Email is Valid. 3. Entered primitive test grade 4. Letter grade that corresponds to the test grade Make sure to use Hungarian notation and ample comments such as to what the purpose of the code is

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

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

=+2 Is the decision sustainable in the long run?

Answered: 1 week ago