Please Write a function to validate an email

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 8PE: Write a program that reads in a line consisting of a students name, Social Security number, user ID,...
icon
Related questions
Question
100%

Please Write a function to validate an email. Below is the html element we're validating, please make the java code as simple as posible thank you.

 The validation should check for:

if the numbers were 1 through 9

if there is a name 

if email is valid

if cell phone i valid

if Card number, EXP date and CVV is valid or not  

if the address is valid or not

       <div class="bg">
    <div class="in">
        <div class="ro">
        <img class="ba"src="stle/pg1/logo.png">
        <div class="C">+</div>
      <form id="result" action="#">
             <input type="text" placeholder="Choose from item 1-9">
        <input type="text" placeholder="Name">
        <input type="email" placeholder="E-mail@gmial.com" id="email">
           <input id="Phone nuber" type="text" placeholder="Phone number">
           <input id="Card Number" type="text" placeholder="Card Number">
          <input id="Card Exp Date" type="text" placeholder="Card Exp Date">
          <input id="Card CVV" type="text" placeholder="Card CVV">
           <input id="Address" type="text" placeholder="Address">
         <div class="sub"> <a href="file:///C:/Users/Mabda/OneDrive/Documents/men.html" id="#" button> Submit</a></div>
    </form>
        </div>
        </div>
         </div>

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
ASCII Codes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning