cosc1315_l5_lab_8_1

.rtf

School

Central Texas College *

*We aren’t endorsed by this school

Course

1315

Subject

Computer Science

Date

May 12, 2024

Type

rtf

Pages

1

Uploaded by MinisterFalconPerson641 on coursehero.com

Lesson 5 Lab 8.1 – Input Validation Critical Review If a computer reads bad data as input, it will produce bad data as output. Programs should be designed to reject bad data that is given as input. Garbage in, garbage out (GIGO), refers to the fact that computers cannot tell the difference between good data and bad date. Both numbers and strings can be validated. The goal of this lab is to identify potential errors with algorithms and programs. Step 1: Imagine a program that calls for the user to enter a password of at least 8 alphanumeric characters. Identify at least two potential input errors. Password conatins symbol password has less than 8 Step 2: Imagine a program that calls for the user to enter patients’ blood pressure. Blood pressure ranges are between 50 and 230. Identify at least two potential input errors. BP isnt a number BP isnt below 50 or over 230 Step 3: Open your Lab 5-3.rap flowchart. This program allowed the user to enter in 7 days’ worth of bottle returns and then calculated the average. Examine the program and identify at least two potential input errors. input not a number input is negative
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help