Exercise 3 Write a program for a system that checks for user authentication. The user must provide a username and password for upto three attempts. The system must check if the username exists in the system. If it exists, display a "Welcome" message. If the username is wrong display the approriate message, "Incorrect username" and allow the user to try again. If the user attempts more than three times, exit the loop and display the message "Login attempted too many times. Please contact your administrator".
Q: rite a tester program that counts and displays the number of iterations of the following loop:…
A: I have given solution below in python.
Q: Consider the code below and select all that apply: X = 0 while True: if x % 2==1: break X=X+2…
A: answer is
Q: Write a program that plays the popular scissor-rock- paper game. (A scissor can cut a paper, a rock…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION Define…
Q: Task 3: Write a program for a matchstick game being played between the computer and a user. Your…
A: The solution code for the above given problem is given below: - CODE: - #include<stdio.h>…
Q: 5. Write a program that reports whether someone is eligible to run for president in the U.S. You…
A: According to the information given:- We have to follow instruction to create eligibility criteria
Q: his is a program written in C programming language. The wrong this is that this must be an…
A: Here we have to make use of loops to iterate till both strings match so that we can input password…
Q: In C++, if the statement ( int a=5, b=2; ) is written at the beginning of the program, then the…
A: In step 2, you can see the program output. In step 3, I will give you the final anwer.
Q: Write a simple payroll program that will display employee's information. The program should perform…
A: Given The answer is given below
Q: Using Codeblock. Make a program that asks the user to enter the marks of a student in a subject. If…
A: I have provided C CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT-------
Q: At a certain university, students have to submit their exams online. The administration decides that…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //get…
Q: Using a conditional expression, write a statement that increments numUsers if updateDirection is 1,…
A: As the whole program is already designed We will use the conditional statement i.e (if else) to…
Q: Write a while loop that prompts the user for a password. If the password entered does not equal…
A: logic:- set i=1 read a string. Use while(true) If(userPass.equals(“OpenSesame”))…
Q: Exercise 2: Write a java program that asks user to enter a set of positive integer values. When the…
A: code: //importing required packageimport java.util.Scanner;//main classpublic class Main{ //main…
Q: Excercise1: write a program to enter a user name and display the message (hello) three times. The…
A: Note: Since programming language is not specified we are providing solution in python programming.…
Q: All programming languages have a loop capability. Looping is the program logic’s ability to repeat…
A: Program://inlcude the header files#include <iostream>using namespace std; //definition of main…
Q: Exercise 3: Write a java program that keeps asking the user to enter a set of integers until…
A: The following approach is to be followed: Import necessary java libraries and headers. Create a…
Q: Write a program with a loop that lets the user enter a series of positive integers. The user should…
A: There are two programs and they are not interlinked. So as per our guidelines we only answer the…
Q: Programming Exercise 4.17 gives a program that plays the scissor, rock, paper game. Revise the…
A: Given: Programming Exercise 4.17 gives a program that plays the scissor, rock, paper game. Revise…
Q: Exercise 4 Write a program that allows a user to play HiLo game. User wins if he/she can guess the…
A:
Q: Write a program that prompt the user to enter a food product category, and price in USD. The program…
A: C++ Program for above : #include <iostream> using namespace std; int main() { cout…
Q: 1. Using a loop of your choice, read information from the console about employees in a company. Each…
A: Program:
Q: Exercise #1: Write a program that prompts the user to input the total number of students that plan…
A: Your C++ program is given below with an output.
Q: Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane and…
A: Concept: If X is +ve and Y is +ve, then Quadrant is 1 If X is +ve and Y is -ve, then Quadrant is 4…
Q: = int(input("Enter value for x:")) if x == -1 : print("Disagree") elif x == 0: print("Neutral")…
A: Please find the answer below
Q: /* This program should play a game with the user asking her to guess a target number (randomly…
A: As no programming language is mentioned, it is solved using Java
Q: Write a program that, given the time duration of a task in the number of hours, minutes, and…
A: I have provided c++ code in step2
Q: CHALLENGE ACTIVITY 5.2.2: Basic while loop with user input. Write an expression that executes the…
A: user_num= int(input( ) while(user_num>0): print('Body') user_num= int(input())…
Q: Events that may induce a transition from the run state to the terminate state include the following.
A: Each programmer is considered an executive instance of the process. Because the process resides in…
Q: Please make a program flowchart of this process: Start Throw the dice: the number indicated by dice…
A: The flowchart:
Q: break statement is used to Select one: a. get out of the system b. get out of a loop c. get out…
A: break statement is used inside a loop and be used inside the switch statements
Q: With respect to the following nested loops, what is missing or wrong? int loopCount; while…
A: The loops are a programming construct that are utilized to run a bunch of code a number of times…
Q: rite a program for an airline company. that asks the user about his luggage weight. * if the luggage…
A: NOTE: SINCE THE LANGUAGE OF THE PROGRAM IS NOT MENTIONED, I HAVE USED PYTHON FOR THE SOLUTION.…
Q: 2. Write a program that uses a while loop to play a number guessing game. The computer should pick a…
A: As I have read the guidelines I can provide answers to only 3 parts of the questions in case of…
Q: I have a calculator program that needs to prompt the user to try again if he does not do what the…
A: In the given program code, You are trying to use fail() method, this method is used to check that…
Q: Using a Counter-Controlled whileLoop Summary In this lab, you use a counter-controlled while loop…
A: Program: #include<iostream> using namespace std; int main(){ string head1 = "Number: ";…
Q: Q1/ Write a program that reads from the user the number of students in the class and their grades i…
A: Code:Specific language is not mentioned so i am giving the code in c++ langauge: #include…
Q: Write a program that performs a survey on beverages. The program should prompt for the next person…
A: Required: Write a program that performs a survey on beverages. The program should prompt for the…
Q: ifelseC++ä Exercise 5. Write a program that will calculate the price for a quantity entered from the…
A: #include <stdio.h> int main(void) { int quantity = 0; int price = 5; double total =…
Q: At a certain university, students have to submit their exams online. The administration decides that…
A: As no programming language is mentioned, so I am using Java to code. In step 2, you will get java…
Q: 5. Write a program that reports whether someone is eligible to run for president in the U.S. You…
A: According to the information given:- We have to create a program to satisfy the output.
Q: Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane and…
A: #include <stdio.h>void quadrant_of_x_y(float x, float y){ if (x > 0 and y > 0)…
Q: 1. Ifthe initial condition of any while loop is false it will still execute once. 2. In the case of…
A: Note: Since the given Question is multipart we are advised to do only first three subparts. Kindly…
Q: a. int i = 2; while (i 8) int i = 2; break; while (i <= 4) } System.out.println (i++); d. int i 2;…
A: import java.util.*; public class Main { public static void main(String args[]) { for(int…
Q: Write a program that computes how much a customer has to pay after purchasing two items. Make the…
A: Step 1 : Start Step 2 : Take user input for the price of Item 1 and item 2. Step 3 : Calculate the…
Q: Write a program that will ask the user to enter the name of the course they're taking (should be…
A: Since you have not mentioned the name of the programming language. i will use python: code:…
Q: Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'.…
A: 1. declare variable for getting input and storing minimum and maximum value 2. run infinite loop…
Q: t a certain university, students have to submit their exams online. The administration decides that…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED PYTHON FOR THE SOLUTION. Define…
Q: 11.) For each of the following while loops, how many times will the loop execute its body? Remember…
A: a) int max = 250 ; while ( max % 3 != 0 ) { System.out.println ("count down : " + max ) ; max -- ;…
Q: Write a program that prompts the user to enter a password and validates the password. • The program…
A: Below I have provided Java Programming. Also, I have attached the screenshot of the code and output…
Step by step
Solved in 3 steps with 1 images
- Employee view attendance report The employee must be logged in to the system to perform this function. The employee selects the report period (range of dates: from - to). The employee selects "show report". Range of dates for the report must be maximum 3 months, so if the range is invalid, the system displays an error message. The system displays every working day in the report with the status of the employee in this day, which could be one of the following: on time, late, did not come. One actor? One use case name? One class ? Attributes for the class ? One relation between classes ?Hands-On Project 6-1 In this project you will program the actions of a sign-up form in which users must supply a user name, email address, and password for a new account. Passwords must be at least eight characters long and contain at least one letter and one number. As a validation test, the password must be entered twice to confirm that the user did not inadvertently mistype the password. If the password does not match the required pattern or if the two passwords are not identical, the password field should be flagged as invalid. A preview of the form in which the passwords are mismatched is shown in Figure 6-38. Figure 6-38 Completed Project 6-1 Do the following: Use your code editor to open the project06-01_txt.html and project06-01_txt.js files from the js06 ► project01 folder. Enter your name and the date in the comment section of each file and save them as project06-01.html and project06-01.js, respectively. Go to the project06-01.html file in your code editor and link the…Using C# in Microsoft Visual Studio create an application that displays the total for a customer’s visit . The application should have the following value-returning methods: OilLubeCharges —Returns the total charges for an oil change and/or a lube job, if any. FlushCharges —Returns the total charges for a radiator flush and/or a transmission flush, if any. MiscCharges —Returns the total charges for an inspection, muf fler replacement, and/or a tire rotation, if any. OtherCharges —Returns the total charges for other services (parts and labor), if any. TaxCharges —Returns the amount of sales tax, if any. Sales tax is 6% and is charged only on parts. If the customer purchases services only, no sales tax is charged. TotalCharges —Returns the total charges. The application should have the following void methods, called when the user clicks the Clear button: ClearOilLube —Clears the check boxes for oil change and lube job. ClearFlushes —Clears the check boxes for radiator flush and…
- design pattern question :- Using the state pattern, you have to implement an application that help track the item ordered from online shop. The client orders an item from online shop, then item can go to post office, then it will be delivered to the user home. Or the item after being ordered it goes to the post office, then the user will pick it up from the post office. In both cases; either take the item from the post office or has it delivered to the client's home represents the end of the process. Q1)Draw the state diagram that shows all possible states and transitions? Q2) Write code of the Ordered state? Q3) Write the implementation of the ShopOrder class; most important things are the states declaration, the constructor, a function to return robot stateInstructions: Create a program that simulates a password checker. Use the password that was set in the first part of the program, if the user enters the password correctly it will output Authentication Successful if the user does not answer the password correctly it will say Failed Attempt! Try again Attempt 1 Each failed attempt is recorded. Each time the user fails, output the number of that failed attempt. Enter the password: Failed Attempt! Try again Attempt 1 Enter the password: Failed Attempt! Try again Attempt 2 If the user fails 5 times output: Error! You have exceeded the number of attempts, try again? Y for "yes" or N for "No" The program should allow the user to try and enter the password again. The attempts should reset back to 0.A bank locker system has one lock and three keys.O=1, indicates the Owners key is open.M=0,indicates the Managers key is off.N=1, indicates the Nominees key is openL=0 means the locker is off.The locker(L) can be open only for the following conditions:If the Manager’s key and nominee’s keys are open but the owner key is close. ORIf the Manager’s and owner’s keys are open but the other key is close. ORIf the Owner’s key is open but the other keys are close. ORIf all keys are open.i. Find the Boolean function for the above systems outputs 2ii. Simplify the output functions using Boolean Algebra. 22.
- 5- Write a script avenegnum that will repeat the process of prompting the user for negative numbers, until the user enters a zero or positive number. The script will print the average (of just the negative numbers). If no negative numbers are entered, the script will print an error message instead of the average. Examples of executing this script follow: >> avenegnum Enter a negative number: 5 No negative numbers to average. >> avenegnum Enter a negative number: -2 Enter a negative number: -8 Enter a negative number: -9 Enter a negative number: 8 The average was -6.3 >>In the parlance of technical access controls, the action that is taken by the subject over the object is called an operation. True O Falsevoting application app c# it would ask if the person would like to login as a admin or voter if admin 1. Add/Delete Candidate and automatically generate candidate ID. 2. Add/Delete Voters and automatically generate voter ID. 3. ask for an user and password if voter 1. it would ask them to login and register 2. Allow voters to vote using registered ID and an ID which has not voted yet. 3. When voter ID is deleted, its vote will also be deleted.
- Directions: Write security if the underlined word on the subsequent statementmakes it true and virus it makes the statement a false one, then write the correctterm/word to correct it.GreenLawn a local lawn care company has different pricing policies for its customers. GreenLawn sends out monthly invoices and will give discounts if payments are made within 5 days. The discounting policy is as follow: If the amount of the monthly bill is greater than $300, subtract 4 percent from the invoice; if the amount is between $300 and $100, subtract a 2-percent discount; if the amount is less than $100, do not apply any discount. All bills made via the web automatically receive an extra 3-percent discount. Develop a decision for GreenLawn discounting decisions. Decision Table submission: Include the initial table with all rules, and the most simplified table. Use different colors in the columns to easily show how columns are collapsed/simplified. please do not provideo solution in image format thank you!???????? 2: Take the username and password from a user and check the validity of the password using the following rules: 1. Password must contain at least 2 digits, at least one uppercase letter, at least one lowercase letter, and at least one of the special characters (*,_,%,$,#,@) in it. If one or more of these are missing, show which ones are missing. 2. The password must not contain the username in it. If it does, the password will be invalid. 3. The password must have a length of 8 or more. Sample Input 1: Username: IzukuMidoriya Password: izukuMidoriya24# Output1: Invalid Password: Password cannot contain username Sample Input 2: Username: IzukuMidoriya Password: Iamhere@12 Output2: Valid password Sample Input 3: Username: IzukuMidoriya Password: Ia4%Lp Output3: Invalid Password: Password too short Sample Input 4: Username: IzukuMidoriya Password: izuku@Midoriya24# Output4: Valid Password Sample Input 5: Username: IzukuMidoriya Password: Ia4%sahdvckgjp…