2.9 Performance Assessment

docx

School

Alamo Colleges *

*We aren’t endorsed by this school

Course

126

Subject

Computer Science

Date

Oct 30, 2023

Type

docx

Pages

2

Uploaded by MagistrateGoldfinchMaster399

Report
Integer passcode, varisble, num, try True { wy=mge2 > False num =num + 1 Output "Enter a passcode” / inputtry False £ Console s aa | R J | Enter a passcode Try again Ll'y g Enter a passcode Output “Try sgsin” Please enter a value of type Integer for try
1 #include<stdio.h> 2 3 int main() 4B 5 //declarations 6 int passcode, variable, num, attempt; 7 //setting the password code 8 passcode = 11862; 9 num = @; stating w a "e" 10 //starting h @ attempt 11 attempt=@; 12 13 //Loop if code is not correct 14 while(attempt !=11862) 15 { 16 printf("Enter a passcode: \n"); //data entry 17 scanf("%d", &attempt); //calculation 18 19 num = num + 1; //increase Loop counter 20 if(attempt !=passcode) //Loop again 21 { 22 if(num < 3) //try again if not correct 23 24 printf(“"try again\n"); isplayed on output screen 25 - 26 else 27 //End 28 return @; 29 } 38 [ } by Wht is the password (you get three tries)? numbers only 14852 Better Luck next time! Try again! Better Luck next time! Try again!
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: You produce shoes (Q) with labor (L) and capital (K). The production process is as so: Q = 400L -…
Q: On December 31, 20X1, Parent Company purchased 80% of the common stock of Subsidiary Company for…
Q: What does Winthrop's sermon explain about the beliefs and goals of the Puritans? How important was…
Q: TRUE FALSE TRUE / FALSE A) Planets that are made of gases tend to move more slowly than the smaller,…
Q: Below is a graph of a normal distribution with mean = -5 and standard deviation o=2. The shaded…
Q: Use a truth table to show that 3 q P→ "P is not a tautology. (This example shows that substitution…
Q: What are the types of general purpose registers in 8085?
Q: What is endosymbiosis?
Q: What term did Lewis use to address the Otoe? What does that suggest about how did he view them? 2.…
Q: Greedy Consider the generalization of the rickety bridge crossing puzzle in which we have n > 1…
Q: Design a roulette wheel which allows the user to enter bets on multiple numbers. Allow the user to…
Q: Question #: 7 What is the change in heat when 0.327 g of carbon reacts with oxygen to form carbon…
Q: Find the critical value for a 95% confidence interval for B1 2. Compute the margin of error for 95%…
Q: Which derivation rule justifies the following argument? If n is a multiple of 4, then n is even.…
Q: Name the processor lines of two major manufacturers?
Q: Which of the following correctly displays the four fundamental forces in terms of decreasing…
Q: Often a complicated expression in formal logic can be simplified. For example, consider the…
Q: product testing organization uses a survey of readers to obtain customer satisfaction ratings for…
Q: a. disulfur tetrafluoride b. carbon trioxide c. nitrogen pentoxide I d. nitrogen tribromide e.…
Q: There are a 100 marbles in a bag. Among the 100 marbles, there are marbles of 5 different colors…
Q: Implement the following functions. Each function deals with null terminated C-Style strings. You can…
Q: 1) Analysis: What was the significance of this portrait when it was published? How might this image…