SlideShare a Scribd company logo
Project # 2 Page 1 of 1
Mini-Project #2
Name: Date Performed:
Objectives:
‱ Subroutine
‱ If 
else (via Error checking)
‱ ASCII to Hex
‱ Hex to ASCII
Instructions:
‱ Clear Screen
‱ Place all basic I/O routines as subroutines in your main program: Clear Screen, Read
String, Write String, Read character w/o echo, Skip line (i.e. “n”)
‱ Input #1: Name (30 characters)
‱ Check for null input, if exist issue an error message and input again
‱ Input #2: Age (2 characters)
‱ Check for null input, if exists issue an error message and input again
‱ Convert string length to ASCII so that you could display it properly
‱ Convert age input to integer so that you could manipulate it (AGE ! AGE+1)
‱ See the example below for the output
Name: <input your name here>
AGE : <input your age here>
The length of <name> is <string length>
Your age next year is <age+1>
Example:
Name: Juan dela Cruz
Age: 12
The length of Juan dela Cruz is 14
Your age next year is 13

More Related Content

PPTX
Welcome to asif’s world
PPTX
An Introduction To Python - Strings & I/O
PPTX
Unit I - 1R introduction to R program.pptx
PDF
python.pdf
PPTX
Chapter1.pptx
PDF
gdscpython.pdf
PPTX
Begin with c++ Fekra Course #1
PPTX
Intro To C++ - Class 3 - Sample Program
Welcome to asif’s world
An Introduction To Python - Strings & I/O
Unit I - 1R introduction to R program.pptx
python.pdf
Chapter1.pptx
gdscpython.pdf
Begin with c++ Fekra Course #1
Intro To C++ - Class 3 - Sample Program

Similar to Programming Problem 2 (20)

PPTX
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
PPTX
if, while and for in Python
PDF
C- Programming Assignment 3
PPTX
Python programming lanuguage
PDF
Lec04-CS110 Computational Engineering
PPTX
Chapter 1 Python Revision (1).pptx the royal ac acemy
DOCX
CS150 Assignment 7 Cryptography Date assigned Monday.docx
PPT
Chapter05.ppt
PPTX
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
PDF
THE C++ LECTURE 2 ON DATA STRUCTURES OF C++
PPTX
Lecture1_about python introduction variables
PPTX
C PROGRAMMING document for beginners....
PPT
python fundamental for beginner course .ppt
PPT
All C ppt.ppt
PPSX
Programming in c
PPTX
Fortan elementary programming. Students copy
PPTX
C lang7age programming powerpoint presentation
PDF
PROBLEM SOLVING USING A PPSC- UNIT -3.pdf
PPTX
week2.pptx program program program problems
PPTX
Constants, Variables, and Data Types
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
if, while and for in Python
C- Programming Assignment 3
Python programming lanuguage
Lec04-CS110 Computational Engineering
Chapter 1 Python Revision (1).pptx the royal ac acemy
CS150 Assignment 7 Cryptography Date assigned Monday.docx
Chapter05.ppt
C++ Unit 1PPT which contains the Introduction and basic o C++ with OOOps conc...
THE C++ LECTURE 2 ON DATA STRUCTURES OF C++
Lecture1_about python introduction variables
C PROGRAMMING document for beginners....
python fundamental for beginner course .ppt
All C ppt.ppt
Programming in c
Fortan elementary programming. Students copy
C lang7age programming powerpoint presentation
PROBLEM SOLVING USING A PPSC- UNIT -3.pdf
week2.pptx program program program problems
Constants, Variables, and Data Types
Ad

More from Dwight Sabio (20)

PPTX
Human Rights Observatory Description
PDF
RIGHTS-BASED SUSTAINABLE DEVELOPMENT GOALS MONITOR
PDF
Report on Girl Children: A Rapid Assessment of their Situation
PDF
Gender ombud report 2016 final
DOCX
Strengthening legal referral mechanisms on cases of gender
PPTX
IP Report
PDF
CPU scheduling ppt file
PDF
Ch3OperSys
PDF
OperatingSystemChp3
PDF
ABC Supermarket
PDF
Programming Problem 3
DOCX
Lab Activity
PPTX
Bluetooth
PDF
Arduino e-book
DOC
Midterm Project Specification
DOC
Game Design Document
DOC
Class diagram
DOCX
Midterm Project
PDF
ProgrammingProblem
PDF
Class Diagram
Human Rights Observatory Description
RIGHTS-BASED SUSTAINABLE DEVELOPMENT GOALS MONITOR
Report on Girl Children: A Rapid Assessment of their Situation
Gender ombud report 2016 final
Strengthening legal referral mechanisms on cases of gender
IP Report
CPU scheduling ppt file
Ch3OperSys
OperatingSystemChp3
ABC Supermarket
Programming Problem 3
Lab Activity
Bluetooth
Arduino e-book
Midterm Project Specification
Game Design Document
Class diagram
Midterm Project
ProgrammingProblem
Class Diagram
Ad

Recently uploaded (20)

PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
 
PPTX
Introduction to Artificial Intelligence
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
System and Network Administration Chapter 2
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
history of c programming in notes for students .pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
L1 - Introduction to python Backend.pptx
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
top salesforce developer skills in 2025.pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Design an Analysis of Algorithms I-SECS-1021-03
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Understanding Forklifts - TECH EHS Solution
Which alternative to Crystal Reports is best for small or large businesses.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Upgrade and Innovation Strategies for SAP ERP Customers
How to Choose the Right IT Partner for Your Business in Malaysia
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
 
Introduction to Artificial Intelligence
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
System and Network Administration Chapter 2
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
history of c programming in notes for students .pptx
CHAPTER 2 - PM Management and IT Context
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
L1 - Introduction to python Backend.pptx
Odoo Companies in India – Driving Business Transformation.pdf
top salesforce developer skills in 2025.pdf

Programming Problem 2

  • 1. Project # 2 Page 1 of 1 Mini-Project #2 Name: Date Performed: Objectives: ‱ Subroutine ‱ If 
else (via Error checking) ‱ ASCII to Hex ‱ Hex to ASCII Instructions: ‱ Clear Screen ‱ Place all basic I/O routines as subroutines in your main program: Clear Screen, Read String, Write String, Read character w/o echo, Skip line (i.e. “n”) ‱ Input #1: Name (30 characters) ‱ Check for null input, if exist issue an error message and input again ‱ Input #2: Age (2 characters) ‱ Check for null input, if exists issue an error message and input again ‱ Convert string length to ASCII so that you could display it properly ‱ Convert age input to integer so that you could manipulate it (AGE ! AGE+1) ‱ See the example below for the output Name: <input your name here> AGE : <input your age here> The length of <name> is <string length> Your age next year is <age+1> Example: Name: Juan dela Cruz Age: 12 The length of Juan dela Cruz is 14 Your age next year is 13