(or not be selected to run). In other words, remaining code should be wrapped in (a) branch structure(s) to run or not run according to user inputs. Sample Runs: Test your program as you go for all of the possible outcomes described above! Don't wait until the end to test! There are lots of possible paths/outcomes. Sample Run 1: Enter your full name: Hannah Hillberg Please enter up to the first four letters of your first name: bot bot bot I can't follow instructions We cannot trust that you are not a robot. Good bye. Sample Run N: Please enter your first and last name: Hannah Hillberg Please enter up to the first four letters of your first name: hann You are being directed to Operator 1... Hello, I'm Operator 1! Please enter your card number: 4567741236985462 Thank you for setting up your Visa card. Please enter a PIN: 4568 Please re-enter PIN: 4568 PIN saved. Your account is activated. Thank you! Submission Submit your entire Lab6 Blue] project in a single zipped up folder to Canvas before the deadline.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
# Educational Module: Sample Program Runs and Instructions

## Sample Runs Overview
When developing user-interactive programs, it's essential to test various input scenarios. This ensures your code can handle different paths and outcomes effectively. Here's an example of a program aimed at verifying user input:

### Sample Run 1:
- **Prompt:** Enter your full name
  - **Input:** Hannah Hillberg
- **Prompt:** Please enter up to the first four letters of your first name
  - **Input:** bot bot I can't follow instructions
- **Output:** We cannot trust that you are not a robot. Good bye.

### Sample Run N:
- **Prompt:** Please enter your first and last name
  - **Input:** Hannah Hillberg
- **Prompt:** Please enter up to the first four letters of your first name
  - **Input:** hann
- **Process:** You are being directed to Operator 1…

#### Interaction with Operator 1:
- **Greeting:** Hello, I'm Operator 1!
- **Prompt:** Please enter your card number
  - **Input:** 4567741236985462
- **Acknowledgment:** Thank you for setting up your Visa card.
- **Prompt:** Please enter a PIN
  - **Input:** 4568
- **Prompt:** Please re-enter PIN
  - **Input:** 4568
- **Confirmation:** PIN saved. Your account is activated. Thank you!

## Submission Instructions
To complete this task, submit your entire Lab6 BlueJ project as a single zipped folder. The submission should be uploaded to Canvas before the deadline. Ensure all components are included for a comprehensive evaluation.
Transcribed Image Text:# Educational Module: Sample Program Runs and Instructions ## Sample Runs Overview When developing user-interactive programs, it's essential to test various input scenarios. This ensures your code can handle different paths and outcomes effectively. Here's an example of a program aimed at verifying user input: ### Sample Run 1: - **Prompt:** Enter your full name - **Input:** Hannah Hillberg - **Prompt:** Please enter up to the first four letters of your first name - **Input:** bot bot I can't follow instructions - **Output:** We cannot trust that you are not a robot. Good bye. ### Sample Run N: - **Prompt:** Please enter your first and last name - **Input:** Hannah Hillberg - **Prompt:** Please enter up to the first four letters of your first name - **Input:** hann - **Process:** You are being directed to Operator 1… #### Interaction with Operator 1: - **Greeting:** Hello, I'm Operator 1! - **Prompt:** Please enter your card number - **Input:** 4567741236985462 - **Acknowledgment:** Thank you for setting up your Visa card. - **Prompt:** Please enter a PIN - **Input:** 4568 - **Prompt:** Please re-enter PIN - **Input:** 4568 - **Confirmation:** PIN saved. Your account is activated. Thank you! ## Submission Instructions To complete this task, submit your entire Lab6 BlueJ project as a single zipped folder. The submission should be uploaded to Canvas before the deadline. Ensure all components are included for a comprehensive evaluation.
Expert Solution
Step 1: Algorithm of the program:

Algorithm:

  1. Prompt the user to enter their full name.
    Prompt the user to enter up to the first four letters of their first name.
  2. Convert the user's first name input to lowercase and extract the first name from the full name, also converting it to lowercase.
  3. If the length of the first name input is more than 4 characters or if it does not match the first four letters of the actual first name, display a message saying, "We cannot trust that you are not a robot. Goodbye."
  4. If the input is valid, proceed to the following steps:
  5. Display a message, "You are being directed to Operator 1..."
  6. Prompt the user to enter their card number.
  7. Display a message, "Thank you for setting up your Visa card."
  8. Prompt the user to enter a PIN and confirm the PIN.
  9. If the two entered PINs match, display, "PIN saved. Your account is activated. Thank you!" Otherwise, display, "PINs do not match. Your account activation failed. Goodbye."
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education