Question: CYSE-250-Basic Cybersecurity Programming and Networking NOTE: This assignment is based on contents covered in week 8 and week 9- loops and strings Question-1 [10

CYSE-250-Basic Cybersecurity Programming and Networking NOTE: This assignment is based on contents

CYSE-250-Basic Cybersecurity Programming and Networking NOTE: This assignment is based on contents covered in week 8 and week 9- loops and strings Question-1 [10 points]: What is the difference between a while loop and a for loop in Python? Question-2 [5 points] (Research Question): What does "while True" mean in python? Question-3 [5 points]: What is the significance of flowchart in Programming? [NOTE: You may use internet / online resources to research this question] 2. Finite loop 3. Infinite loop 4. Iteration or pass Question-4 [20 points]: Define the following terms in one or two sentence(s): 1. Iteration variable Assignment-week-11 Question-5 [10 points] Using if-else condition, write a script in python to check whether a person is eligible to vote or not. (Please submit the screenshot for your script and its output) n = 5 while n > 0: Total: 50 points Extra credit question [10 points]: Draw flowchart (You may draw on paper and submit the image/screenshot) for the following program: n=n-1 if n = 2: break print(n) print('Loop ended.') News

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!