Social security numbers can be entered either as ddddddddd or ddd-dd-dddd. Write a regular expression to match either pattern.
Q: 3. Design an HTML form that asks the user to submit his/her personal data. Then write a PHP program…
A: *As per the company guidelines and norms we are providing first question answer only please repost…
Q: Clickzone Copy Center charges Php 15 for the first 10 copies, plus 0.75 per copy for the next 10…
A: The program is written in java import java.util.*;public class Main{ public static void…
Q: java
A: /******************************************************************************…
Q: Write a PHP regular expression pattem that matches a string that satisfies the following…
A: Required Regular expression pattern that matches the string must begin with three numbers. After…
Q: How many parameters are there in a binary operator implemented as a friend? O AO OB) 1 092 OD) as…
A: We need to find number of arguments, required for implementing binary operator using friend…
Q: Given following code and write comments for each line of code #include <stdio.h>#include…
A: The objective of the question is to understand the functionality of the given code by providing…
Q: C:\Users\alzer\Desktop\Programming\exercise 3\Untitled1.exe Enter a string: 123456789 The reversed…
A: String is a set or sequence of characters in C. The character array is used for the strings in the…
Q: Suppose you have the rule P :- Q;R. if Q is true and R is false, then P is___ True False
A: Given that Suppose you have the rule P :- Q;R. if Q is true and R is false, then P is___TrueFalse…
Q: 10 Data elements in the same array can be of different data types.
A: False. Data elements in the same array cannot be of different data types.
Q: -Calculate and display: outer radius, inner radius, outer circumference, inner circumference, area…
A: Use #define _USE_MATH_DEFINES and #include <cmath> to get the value of pi using M_PI variable.…
Q: Hands-On Project 6-1 In this project you will program the actions of a sign-up form in which…
A: The below program has 4 files attached: 1. project06-01.html 2. formsubmit.html 3. styles.css 4.…
Q: write a java script code that makes sure once the user enters a number 1 through 9 it is valid for…
A: Here we want to check the number is 1-9 between or not. It is between then it's valid or not then…
Q: IN PYTHON Assign the string Facebook's rating is to a variable named facebook Assign the 3.5 to…
A: Concatenation of two strings can be done by using "+" operator. A string value is enclosed in double…
Q: -Calculate and display: outer radius, outer circumference, inner circumference, area enclosed by the…
A: Algorithm : Step 1 : declare global variable for pi. Step 2 : declare variables. Step 3 : ask for…
Q: Create an application which will allow the user to type some text into a text box, and constantly…
A: The asked application code using HTML is given in the next step by using the HTML form and…
Q: Create the following form using C# Create a form ,name this new form: Loops Name all your objects…
A: Answer 7: Objective: The current price of laptops and the desired price would be inserted in two…
Q: 8. Write a guessing game using HTML, CSS and Javascript. In HTML there should be an input field for…
A: Hello student Greetings Hope you are doing great. I have created 3 files - html, css and javascript…
Q: Use Visual Basic to create a simple program that allows a user to login using a username and…
A: In this question we will answer about coding question.
Q: -Calculate and display: inner radius, outer circumference, inner circumference, area enclosed by the…
A: Dear learner, hope you are doing well!, I will try my best to answer this question. Thank You!!
Q: modifying following code and write comments for each line of codes. #include #include…
A: In this question we have been given with the C program designed to evaluate the strength of…
Q: A procedure is passed a copy of the value stored in a Decimal variable, followed by a copy of the…
A: A correct option is an option (c). Private Sub Display(ByVal decX As Decimal, ByVal strY As String)…
Q: Write a JavaScript function that do the following: prompt the user to enter his name display on the…
A: ALGORITHM:- 1. Take input name from the user. 2. Print the name with welcome. 3. Create the date…
Q: 01: Examine the following HTML Form: Enter Course Code: ITCS347 Enter Tests Marks seperated by comma…
A: ANSWER:-
Q: In php code with Mamp: make a custom function that adds three numbers together and outputs the…
A: Given: In php code with Mamp: make a custom function that adds three numbers together and outputs…
Q: Assume that the input string is stored in the variable: $inputString. You have to develop a PHP…
A: Actually, string is a sequence of characters.
Q: -Calculate and display: Calculate outer radius, inner radius, outer circumference, inner…
A: Need to write program in C++ which calculate different parameters if A1 and A2 are given, i.e areas…
Q: -Calculate and display: Calculate outer radius, enclosed by the outer circle, area enclosed by the…
A: Algorithm: Start Read outer circumference c1 and inner circumference c2 Define pi with value…
Q: -Caloulate and display: inner radius, outer circumference, inner circumference, area enclosed by the…
A: Firstly calculate outer area A1 using radius r1 with help of given formula. given geometry gives…
Q: Code the following in DEV C++ Rules: 1. Kindly code it in a proper way 2. The symbols and…
A: The inner circumference and shaded region will be the inputs and from which we have to find all the…
Q: 4- Write an application that displays the following patterns separately- 1 1. 54321 12 12 5432 123…
A: #note: since programming language is not specified, we are providing answer in python #4#displaying…
Q: -Calculate and display: Calculate inner radius, outer circumference, area enclosed by the outer…
A: Hello Student Greetings from my side. Hope you are doing great. I will try my best to answer your…
Q: Single form could be saved as an executable extension with: O EXE None of the above Frm VRD
A: FRM is file extension is contains structure data of a table of MYSQL data base
Q: Exercise 1: Given the following HTML Code: Tip Calculator Bill Amount: Tip Percentage: Tip…
A: In this question we have to write a HTML code for the Tip calculator form the given…
Q: Assume that a website only allows a string of length 6 as a password for a user account. Valid…
A: Answer:Introduction:Given the length of the password as 6 and valid characters in the password are…
Q: e the following in DEV C++ Rules: 1. Kindly code it in a proper way 2. The symbols and values…
A: We need to read the A0 and A2 and then we use the calculations as per the given formulas.
Q: -Calculate and display: Calculate outer radius, inner circumference, area enclosed by the outer…
A: #include <iostream>#include<cmath>#define PI 3.1415926535898using namespace std; int…
Q: -Calculate and display: Calculate outer radius, outer circumference, inner circumference, area…
A: Analysis of Question :
Q: Write a PHP regular expression pattern that matches a string that satisfies the following…
A: Regex is used for searching a particular pattern in a string entered by any user. ^ is used to…
Q: JAVASCRIPT: Part I– For you “Login.html” page, we are going to do some Javascript validating. First…
A: HTML CODE (Login.html) : <html> <head> <title>Login Form Validation</title>…
Q: For this lab, you will be doing the following in C#: 1) Create a Home form with buttons that when…
A: For registering using Systems.Collections.Generic; using System.Text; using System.Threading.Tasks;…
Q: -Calculate and display: outer radius, inner radius, inner circumference, area enclosed by the outer…
A: Algorithm: Start Read outer circumference C1 and area of shaded region A0 Define pi as…
Q: Python Programming only plz Create a program to perform the following actions: Create a…
A: To check if the email address and phone number entered by the user is in correct format.
Q: -Calculate and display: Calculate outer radius, inner radius, outer circumference, area enclosed by…
A: Solution:
Q: 1. Pro Investment Sdn. Bhd. is running financial investment business. As a programmer at that…
A: We need to write a python program that takes input from user for initial money and interest rate per…
Q: Define two variables, one for storing a string store first name “Chuck" and one for the last name…
A: Introduction of the Program: PHP(Hypertext Preprocessor) is a server-side scripting language i.e.…
Social security numbers can be entered either as ddddddddd or ddd-dd-dddd. Write a regular expression to match either pattern.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- modifying following code and write comments for each line of codes. #include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include <string.h> #define MAX_PASSWORD_LENGTH 128#define MIN_PASSWORD_LENGTH 10#define ALLOW_PASSPHRASE true#define MIN_PHRASE_LENGTH 20#define OPTIONAL_TESTS_REQUIRED true#define MIN_OPTIONAL_TESTS_TO_PASS 4 bool isStrongPassword(char *password);void printTestResults(char *password, bool isPassphrase, int optionalTestsPassed); int main() { char passwords[][128] = { "password", "mypassword", "thisismypassword", "passssword", "This is my password phrase1", "Tinypw1", "Ireallydontlikehavingtomakeupnewpasswordsallthetime1", "Iloveyouxxxooo1", "Boom**********!", "IHATEPWORDS1!", "ihatepwords1!", "IHatePwords!", "IHatePwords", "my pass phrase does not need to pass tests", "short pass phrase", "x", "x1",…Create a module for username validation. This module must meet the following acceptance criteria: • The username must contain a minimum of 6 characters and a maximum of 12. • The username must be alphanumeric . • Username with less than 6 characters, returns the message "Username must contain at least 6 characters". • Username with more than 12 characters, returns the message "Username cannot contain more than 12 characters". • Username with non-alphanumeric characters, returns the message "Username can contain only letters and numbers". • Valid username returns True.Create a webpage that works similar to a Calculator, with the following tasks and the appropriate points: -Create a webpage that uses JavaScript, similar to a CALCULATOR, either within the HTML page itself or a pop-up window. -Ask user for the mathematical operation to be performed. You may create your own functions and appropriate conditional statement to facilitate program flow. -Ask user for two (2) numbers. -Show result to the user and terminate the program.
- Use JSFiddle to write the program below. Include appropriate comments throughout your program: One comment at the beginning describing the purpose of the program and at least two additional comments throughout that describe each procedure. Make sure that you have logged in to your account before you begin so that the URL with your name is displayed. ------------------------------------------------------------------------------------------------- Create a variable called myidealWeightonthemoon. Assign a numeric value to the variable. Create another variable called myactualWeightonthemoon. Assign a different value to this variable. Create a variable called result that stores the result of the comparison of these two variables. Use the logical operators of your choice for the comparison. Create ONE statement using document.write that includes the following: The value of the comparison variable results (*hint: this is NOT a number) Appropriate text of your choice. For…Imagine you are developing a software package for Amazon.com that requires users to enter their own passwords. Your software requires that users’ passwords meet the following requirements: The password should be at least 8 characters The password should contain at least one uppercase and at least one lowercase letter The password should contain at least one digit The password should contain at least one of the following symbols: @*#$%?(You may want to create a string containing these characters and use that to check) The password may not contain a blank Write a program that verifies that passwords are valid. Read a series of passwords from an external input file (Scanner), one per line. Remove any leading or trailing blanks. For each password, determine if it is valid by calling a method to test for criteria above. The main method should print each password, and a message that it is valid or not valid. When it is done reading and processing all data input, print a message that the…// A standard mortgage is paid monthly over 30 years. // This program is intended to display 360 payment coupons // for a new borrower. Each coupon lists the month number, // year number, and a friendly mailing reminder. start num MONTHS = 12 num YEARS = 30 string MSG = "Remember to allow 5 days for mailing" num monthCounter = 0 num yearCounter = 30 while yearCounter <= YEARS while monthCounter <= MONTHS output monthCounter, yearCounter, MSG endwhile endwhile stop housekeeping() print "Enter account number or ", QUIT, " to quit " return printCoupons() while yearCounter <= YEARS while monthCounter <= MONTHS print acctNum, monthCounter, yearCounter, MSG monthCounter = monthCounter + 1 endwhile yearCounter = yearCounter + 1 endwhile output "Enter account number or ", QUIT, " to quit " input acctNum return finish() output "End of job" return
- For each Java expression in the left-hand column, indicate its value in the right-hand column. Expression Value !true 23 % 5 > (16 % 10) && 3+2< 11 2+3*3 > 0 | | 4 < 5-4 2*3 > 1-4 4>5 | | 5>6In Visual Basic ,Create a simple login form for your local internet café using conditional statement.Your program should ask the user to input the username and password; if the usernameand password match the system, it should display a welcome back message. But if it doesnot, then it should display the message: "wrong username or password". Use a messagebox to display the messageNUMBER 6 Code the following in DEV C++ Rules: 1. Kindly code it in a proper way 2. The symbols and values are posted here: r1 = outer radiusr2 = inner radiusC1 = outer circumferenceC2 = inner circumferenceA1 = area of circle of r1, area within outer circleA2 = area of circle of r2, area within inner circleA0 = shaded area, outer area minus inner areaA0 = A1 - A2π = pi = 3.1415926535898√ = square root 3. Example of the code is this Annalus Calculator https://www.calculatorsoup.com/calculators/geometry-plane/annulus.php 4.. Please don't reject CODE THE FOLLOWING (SEE ATTACHED PHOTO):
- Slappy’s Software Sales AssignmentYou have been hired by Slappy’s Software Sales to write a program to figure thetotal cost to customers that order Slappy’s software packages.Discounts are given based on the number of units sold:Number of Units Sold Discount Amount1 – 9 None10 – 19 20%20 – 49 30%50 – 99 40%100 or more 50%Create a form similar to this:The three boxes are labels. Remember to use the Auto Size and Border Styleproperties.The program should read the number of units sold and figure a base cost. Theunits cost $99 each. A discount should then be figured and subtracted from thebase cost. The subtotal, discount amount and total cost should be displayed, ascurrency, in the appropriate labels.Here are some screen shots of the running program:Set the tab order and access keys.Put comments in your program as to what each section is doing.Use constants for the discount rates and base price.Write a program named midterm.php that: When executed for the first time displays a form. The form has an input text with the name attribute “major” and a submit button with value attribute “Click”. When the submit button is clicked the form calls the midterm.php program. After determining that the text input is set, the program examines the value of the text input and displays a message as follows: If the text input is “CSC” then the message is “AS”. If the text input is “CIS” or “CNT” the message is “AAS”. Otherwise the message is “ERROR”. Below the message display the program re-displays the form with blank input data to accept new input and process that input according to the above logic when submit button is clicked.Q14. A constant identifier is same as a variable identifier except that its name cannot be changed. True False *