Design a program that prompts user enters user name and password. Until user entered user name as "FakeUser", prompts user enters password. Display "Welcome, FakeUser" and until user entered correct password "Secret@123".  The program should also display the number of times user tried to get the correct user name and password.   Can anybody provide me step by step solution for this problem? Please solve the problem by using raptor.

Question

Design a program that prompts user enters user name and password. Until user entered user name as "FakeUser", prompts user enters password. Display "Welcome, FakeUser" and until user entered correct password "Secret@123".  The program should also display the number of times user tried to get the correct user name and password.

 

Can anybody provide me step by step solution for this problem? Please solve the problem by using raptor. 

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: How do you convert 172.16.20.55 to binary format?

A: 172.16.20.55 represents IP address in decimal format. In order to convert it into binary format we n...

Q: AskForNumbers Declare an integer array locally with the size of 200. Create a program that asks the ...

A: In order to implement the question mentions a method called getChoice() information about which has ...

Q: 2. Write a program called ListOddNumbers that prints the below (there is a single space between each...

A: Solution: 2. The below program is written in Java language to display the odd number between 1 and 5...

Q: I was asked to add the three types of comments to this class, each consisting of the same statement ...

A: Java documentation comment: This comment is used to create documentation API. The syntax for this co...

Q: I am trying to read in a text file called "lines.txt" that holds an entire dictionary of words with ...

A: First you need to use the ifstream class object to read from file.

Q: Use the worksheets to show, one path augmentation at a time, how to use the Ford-Fulkerson Algorithm...

A: For solving your problem first of all we define Ford-Fulkerson Algorithm.Ford-Fulkerson Algorithm fo...

Q: What is the most important thing to help with introduction to computers?

A: The most important thing in introduction to computers are,Hardware andSoftware

Q: Write a complete C++ program that randomly generates 20 integers between the rangeof 1 to 50 and sto...

A: The random number is generated by using rand() function from stdlib.h and in order to generate a new...

Q: The following print code is to find out the ASCII code, character for the decimal codes,and comparis...

A: The algorithm would involve converting the input integer to character using casting operator as show...

Q: Find context-free grammars for the following languages (with n ≥ 0, m ≥ 0)  L = {anbm : n = m − 1}.

A: Solution:A context-free grammar (CFG) is a hard and fast of recursive rewriting guidelines which is ...

Q: The figure below shows an ER schema for a university database. Map this ER schema into a relational ...

A: Since the question refers to a mapping algorithm which is not described in the question we are going...

Q: Draw a full-adder using only NAND gates.

A: The full adder circuit with NAND gates is shown below.  It is a simple 1 bit adder.

Q: Hello! How to create a Pynthon function that strips the first letters from all file names in a direc...

A: Program Instructions:Import the os module and create a function named strip_first_letter().Ask the u...

Q: 1.6 Compute the scalar cardinality and the fuzzy cardinality for each of thefollowing fuzzy set.

A: The scalar cardinality of a fuzzy set is calculated using the formula:

Q: Construct the XOR operator using only NAND gates. Hint:x XOR y = ((x′y)′(xy′)′)′

A: Drive XOR  operator using only NAND gates:-Let’s assume that the two inputs of NAND and XOR gates  a...

Q: This is for pygame Ball Class: The Ball class inherits from Drawable and it will draw a circle at it...

A: The class Ball to draw a circle at its current location:Import the Drawable class and pygame module....

Q: How do I define a recursive function with C++? I am supposed to compute the Fibonacci numbers with a...

A: The algorithm for the recursive Fibonacci series is as below:Start with the first element which is 0...

Q: I have a Python question and I cannot seem to figure out how to answer this problem exactly (I've at...

A: Hey..To print the power of 2 you have to use a  power function  "pow(2,N) " .It is inbuild function ...

Q: I am struggling on storing numbers from the getChoice () function into an array and pulling it back ...

A: Click to see the answer

Q: For the following problem please write an algorithm in plain English .i.e give details as to how you...

A: Algorithm to arrange the deck of 52 cards for the given scenario is as follows:  

Q: On its own, the number 190 is an example of:

A: On its own, the number 190 is a decimal number.

Q: Use Eclipse for do this program. Show the output of the following statements.a) System.out.printf("a...

A: The program has the following algorithm:a) The statement print the amount in floating point and expo...

Q: This program uses hours, pay rate, state tax and fed tax to determine grossand net pay. The code is ...

A: Program Descriptions:The given program does not have any errors.It takes input from a file named pay...

Q: 5-8) (Find the highest score) Write a program that prompts the user to enter the number of students ...

A: Java program to find the highest score of the student is as follows:

Q: write a program in c++. You work for a box company, and have been asked to write a program to compar...

A: Solution:The C++ program has the following algorithm:Declare and initialize the required variables.D...

Q: Develop pseudocode to read in the radius of a sphere, calculate the volume of the sphere (using the ...

A: Pseudocode is an informal approach of programming description that does not need any exact programmi...

Q: Construct an unambiguous grammar equivalent to the grammar in  S→AB|aaaB, A→a|Aa, B→b.

A: Solution: Construct an unambiguous grammar to grammar.Given that,S -> AB|aaaBA -> a|AaB -> ...

Q: I am trying to write a program to convert an integer to a hexadecimal. How do I do this without us...

A: As there is no particular programming language mentioned, we are doing this conversion of integer nu...

Q: SQL(Oracle): How do I create an index for the number of days it takes to ship an order? i.e. shipdat...

A: Since we need to create an index based on a calculated field we need to create a calculated index. T...

Q: Write a program to convert between KPH and MPH in either direction.If you are driving across the bor...

A: The algorithm for the program would be as below:Declare one int variable for accepting user menu cho...

Q: 1) Create a array of Fahrenheit temperatures, as follows int fahr []= {0,1,2,3,4,5,6,7,8,9,10,32,33,...

A: Program Instructions:Define the given array in code and calculate the size of the array.Use for loop...

Q: Write a method that sums all the numbers in the major diagonal in an n x n matrix of double values u...

A: Note: The below program has been complied and executed in NetBeans IDE 8.2

Q: Create a Crow's Foot ERD to include the following business rules for the ProdCo company:a. Each sa...

A: We will draw the diagram one part by part. So first we willd ra diagram for very first two points.a)...

Q: you can allocate up to how many primary partitions on a hard drive

A: A hard drive usually comprises of primary partitions and logical partitions. Primary partition conta...

Q: Hi, please do you help with questions of Python? If so, I need help with the following: Write a prog...

A: Program Instructions:Use range() to print from 1 to 25.Use end in print() function to print the valu...

Q: Prove that the following languages are not regular: (b) L = {anblak : k ≠ n + l}.

A: First, assume the given language is regular.Then apply pumping lemma to prove the statement is not r...

Q: Hello! I am trying to write a program in Pynthon. Need help. Requirements: Write a .py file like Kev...

A: Program Plan:Import required packagesPrompt the path and the number of characters to delete from the...

Q: how to write a function in python 3 using for loop that counts how many times a consonant (either lo...

A: Note: The given program is compiled and executed in "repl.it" online compiler.

Q: Develop pseudocode for the problem of reading in the radius of a circle (r), calculate the area of t...

A: The program will have the following steps:Receive the input as a parameter passed to the function wh...

Q: Write a function is_mirror(s) that takes as input a string s and returns True if s is a mirrored str...

A: The algorithm for the program would be as follows:Find the length of the program if it is even lengt...

Q: Design a program that prompts user enters user name and password. Until user entered user name as "F...

A: Note:The programming language is not mentioned in the question. So, it is programmed in Java.Step by...

Q: Find regular grammars for the following languages on {a, b}: L = {w : na (w) and nb (w) are both eve...

A: Regular grammar for the language L = {W: na (w) and nb (w) are both even} is as follows:

Q: how to to assign charather to perform additions (+), subtractions (-), multiplications (*), division...

A: Program plan:Include necessary header files.Declare the “namespace”.Define the “main()” function.Dec...

Q: Find all strings in L ((a + bb)∗) of length five.

A: Answer:The symbol “+”denoted as “OR” operator which means “a + b” means either “a” or “b”, so the la...

Q: Design a Turing machine that computes the function f (x) = x − 2 if x > 2   = 0 i...

A: Click to see the answer

Q: Problem: Develop a class encapsulating the concept of a college course, assuming that a course has f...

A: The program has the following algorithm: Course.javaCreate default constructors.Test the “set” metho...

Q: I need ERD Model Arrow Electronics is a consumer electronics retailer operating in the United States...

A: The 8 entities are indicated below with only their unqiue identifier (bold) and one or more other at...

Q: Programming in C.

A: Algorithm: Declare required header files.Create “ContactInfo” structure.Declare required variables f...

Q: A pet shop wants to give a discount to its clients if they buy one or more pets and at least four ot...

A: The program has two main parts – the part which receives the input and the part which validates the ...

Q: Visual Basic. Write the definition of a function named quadratic that receives three double paramete...

A: Formula for quadratic equation: