SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
Problem statement: You are tasked to write a program that reads in a sentence or a paragraph
(max length 1023 letters) rom the user, store it as a string, and gives the user several options for
operations to perform on the text r quit. After performing an operation, the user should be
prompted to select another option until they choose to quit. The program must handle all types of
bad inputs from user and recover from the errors. Detailed requirements for each choice are listed
below: 1. Vowels vs. Consonants: Check if the number of vowels equals the number of
consonants. Ignore any nonletter characters. Example: User enters "banana"; program prints" #
vowels = # consonants." Example: User enters "ban ana 44!"; program prints" # vowels = #
consonants." Example: User enters "zip"; program prints "# vowels != # consonants." 2. Letter
swap: prompt the user for two valid letters, create a copy of the original string, and modify the copy
string by replacing all occurrences of the first letter with the second letter. Example: User enters
"Off we go, into the wild blue yonder!", then characters 'o' and 'i'. Program prints: Iff we gi, inti the
wild blue yinder! (Notice: capitalization is preserved) 3. Flip (reverse) the string: create a copy of
the original string, and then reverse it. Example: User enters "ban ana 54!"; program creates a
new string and outputs: " 45 ana nab" Example: User enters "zip"; program creates a new string
and outputs: "piz" 4. Palindrome Detector: Determine whether the input string is palindrome or not.
A palindrome is a word, phrase, or sequence that reads the same backwards as forward. E.g.,
racecar, madam. Examples of palindromes that your code needs to detect: User enters
"11Radar911", program outputs "This is a palindrome." (Ignore the numbers and case of letters)
User enters "top sports", program outputs "This is not a palindrome." User enters "Was it a car or
a cat I saw?", program outputs "This is a palindrome." (Ignore the space and special characters,
'?') 5. Words frequency: Prompt the user for N words that the user wants to search for in the input
string. For this assignment, assuming N is a positive integer less than or equal to 10. Use a string
array to store N words, and output the frequency of N given words in the input string. Example:
User enters "This is a test sentence, is this?", then 3 words, "this", "text", and "test". The program
outputs: this: 2 text: 0 test: 1 (Note: Case insensitive, meaning "word" and "WoRD" are the same;
All numbers and special characters in the string are ignored, meaning "wor32rd", "wo]]]rd343.34",
and "word" are the same)Suggested functions: a. bool is palindrome (string str); //return true if str
is palindrome, false otherwise b. string purge_string (string str); /laccepts a string, and returns a
version where all numbers, spaces, and special characters have been removed OR you may use
this: void purge_string (string str, string s str_new); /laccepts two c-strings, remove all spaces and
special characters in str, and store the new string into str_new For frequency of given words, the N
words must be entered at one time before searching to see if the words are in the
sentence/paragraph. In other words, you cannot ask for a word, search its frequency and then ask
for another word. You must ask for all words before searching for the words.Implementation
Requirements: - Your user interface must provide clear instructions for the user and information
about the data being presented - Use of references is required. - Use of 1D array is required -
Libraries allowed to use: >,< string >,< cstring >,< cstdlib >,< cmath >, , fstream > if doing extra
credit 1) - Your program should be properly decomposed into tasks and subtasks using functions.
To help you with this, use the following: Make each function do one thing and one thing only. - No
more than 15 lines inside the curly braces of any function, including main(). Whitespace, variable
declarations, single curly braces, vertical spacing, comments, and function headers do not count. -
Functions over 15 lines need justification in comments. - Do not put multiple statements into one
line. - You are encouraged to use the functions in assignment 4 to do error handling. - No global
variables allowed (those declared outside of any functions, global constants are allowed). - Make
sure you follow the style guidelines, have a program header and function headers with appropriate
comments, and be consistent.

Contenu connexe

Similaire à Problem statement You are tasked to write a program that re.pdf

Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
Hassan293
 
classVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptxclassVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptx
ssusere336f4
 
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGEINTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
RathnaM16
 
3110003_PPS_GTU_Study_Material_Presentations_Unit-2_18122020041700AM (1).pptx
3110003_PPS_GTU_Study_Material_Presentations_Unit-2_18122020041700AM (1).pptx3110003_PPS_GTU_Study_Material_Presentations_Unit-2_18122020041700AM (1).pptx
3110003_PPS_GTU_Study_Material_Presentations_Unit-2_18122020041700AM (1).pptx
LeenaChaudhari24
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdf
fazilfootsteps
 
Western Oregon University Page 1 of 2 CS-161.docx
 Western Oregon University            Page 1 of 2 CS-161.docx Western Oregon University            Page 1 of 2 CS-161.docx
Western Oregon University Page 1 of 2 CS-161.docx
aryan532920
 
C programming perso notes
C programming perso notesC programming perso notes
C programming perso notes
Melanie Tsopze
 

Similaire à Problem statement You are tasked to write a program that re.pdf (20)

Feature Engineering in NLP.pdf
Feature Engineering in NLP.pdfFeature Engineering in NLP.pdf
Feature Engineering in NLP.pdf
 
Java: Primitive Data Types
Java: Primitive Data TypesJava: Primitive Data Types
Java: Primitive Data Types
 
Lab6: I/O and Arrays
Lab6: I/O and ArraysLab6: I/O and Arrays
Lab6: I/O and Arrays
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Python Homework Help
Python Homework HelpPython Homework Help
Python Homework Help
 
classVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptxclassVI_Coding_Teacher_Presentation.pptx
classVI_Coding_Teacher_Presentation.pptx
 
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGEINTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
INTRODUCTION TO CODING-CLASS VI LEVEL-DESCRIPTION ABOUT SYNTAX LANGUAGE
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
 
3110003_PPS_GTU_Study_Material_Presentations_Unit-2_18122020041700AM (1).pptx
3110003_PPS_GTU_Study_Material_Presentations_Unit-2_18122020041700AM (1).pptx3110003_PPS_GTU_Study_Material_Presentations_Unit-2_18122020041700AM (1).pptx
3110003_PPS_GTU_Study_Material_Presentations_Unit-2_18122020041700AM (1).pptx
 
C language Unit 2 Slides, UPTU C language
C language Unit 2 Slides, UPTU C languageC language Unit 2 Slides, UPTU C language
C language Unit 2 Slides, UPTU C language
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdf
 
Western Oregon University Page 1 of 2 CS-161.docx
 Western Oregon University            Page 1 of 2 CS-161.docx Western Oregon University            Page 1 of 2 CS-161.docx
Western Oregon University Page 1 of 2 CS-161.docx
 
C programming perso notes
C programming perso notesC programming perso notes
C programming perso notes
 
Introduction To Programming with Python-1
Introduction To Programming with Python-1Introduction To Programming with Python-1
Introduction To Programming with Python-1
 
Java programlist (1)
Java programlist (1)Java programlist (1)
Java programlist (1)
 
C programming assignment presentation file
C programming assignment presentation fileC programming assignment presentation file
C programming assignment presentation file
 
Review Python
Review PythonReview Python
Review Python
 
Fundamentals of c language
Fundamentals of c languageFundamentals of c language
Fundamentals of c language
 
fundamentals of c
fundamentals of cfundamentals of c
fundamentals of c
 
Introduction to Python Part-1
Introduction to Python Part-1Introduction to Python Part-1
Introduction to Python Part-1
 

Plus de acecomputertcr

VAKA 32 Ufuk Danmanlk Patti Smith Horizon Consultingin .pdf
VAKA 32  Ufuk Danmanlk  Patti Smith Horizon Consultingin .pdfVAKA 32  Ufuk Danmanlk  Patti Smith Horizon Consultingin .pdf
VAKA 32 Ufuk Danmanlk Patti Smith Horizon Consultingin .pdf
acecomputertcr
 
Turner Syndrome occurs when an individual inherits one X chr.pdf
Turner Syndrome occurs when an individual inherits one X chr.pdfTurner Syndrome occurs when an individual inherits one X chr.pdf
Turner Syndrome occurs when an individual inherits one X chr.pdf
acecomputertcr
 
Each student is required to post a response to problem CP12.pdf
Each student is required to post a response to problem CP12.pdfEach student is required to post a response to problem CP12.pdf
Each student is required to post a response to problem CP12.pdf
acecomputertcr
 
Oilpartz Ltdnin sahibi Dave McDonald ceketini kard ve masa.pdf
Oilpartz Ltdnin sahibi Dave McDonald ceketini kard ve masa.pdfOilpartz Ltdnin sahibi Dave McDonald ceketini kard ve masa.pdf
Oilpartz Ltdnin sahibi Dave McDonald ceketini kard ve masa.pdf
acecomputertcr
 
I am asked to provide the testing cases for the following co.pdf
I am asked to provide the testing cases for the following co.pdfI am asked to provide the testing cases for the following co.pdf
I am asked to provide the testing cases for the following co.pdf
acecomputertcr
 

Plus de acecomputertcr (20)

Review and analyze the following RFP below at httpswwwe.pdf
Review and analyze the following RFP below at httpswwwe.pdfReview and analyze the following RFP below at httpswwwe.pdf
Review and analyze the following RFP below at httpswwwe.pdf
 
What is the worst choice of split ratio Training set Test .pdf
What is the worst choice of split ratio Training set  Test .pdfWhat is the worst choice of split ratio Training set  Test .pdf
What is the worst choice of split ratio Training set Test .pdf
 
VAKA 32 Ufuk Danmanlk Patti Smith Horizon Consultingin .pdf
VAKA 32  Ufuk Danmanlk  Patti Smith Horizon Consultingin .pdfVAKA 32  Ufuk Danmanlk  Patti Smith Horizon Consultingin .pdf
VAKA 32 Ufuk Danmanlk Patti Smith Horizon Consultingin .pdf
 
Turner Syndrome occurs when an individual inherits one X chr.pdf
Turner Syndrome occurs when an individual inherits one X chr.pdfTurner Syndrome occurs when an individual inherits one X chr.pdf
Turner Syndrome occurs when an individual inherits one X chr.pdf
 
The random variable M has PMF PMmc41m0m0123else .pdf
The random variable M has PMF PMmc41m0m0123else .pdfThe random variable M has PMF PMmc41m0m0123else .pdf
The random variable M has PMF PMmc41m0m0123else .pdf
 
Subject S1 has the clearance Secret C0C1C2C3 Which .pdf
Subject S1 has the clearance Secret C0C1C2C3 Which .pdfSubject S1 has the clearance Secret C0C1C2C3 Which .pdf
Subject S1 has the clearance Secret C0C1C2C3 Which .pdf
 
The following utility function represents Roses preference .pdf
The following utility function represents Roses preference .pdfThe following utility function represents Roses preference .pdf
The following utility function represents Roses preference .pdf
 
Nesmith Corporations outstanding bonds have a 1000 par va.pdf
Nesmith Corporations outstanding bonds have a 1000 par va.pdfNesmith Corporations outstanding bonds have a 1000 par va.pdf
Nesmith Corporations outstanding bonds have a 1000 par va.pdf
 
Given the table below assuming that there are only 9 resour.pdf
Given the table below assuming that there are only 9 resour.pdfGiven the table below assuming that there are only 9 resour.pdf
Given the table below assuming that there are only 9 resour.pdf
 
Practice Questions PV and FV Formulae YOU MAY USE A FIN.pdf
Practice Questions PV and FV   Formulae   YOU MAY USE A FIN.pdfPractice Questions PV and FV   Formulae   YOU MAY USE A FIN.pdf
Practice Questions PV and FV Formulae YOU MAY USE A FIN.pdf
 
please explain and list every step using commands from ste.pdf
please explain and list every step using commands from ste.pdfplease explain and list every step using commands from ste.pdf
please explain and list every step using commands from ste.pdf
 
Each student is required to post a response to problem CP12.pdf
Each student is required to post a response to problem CP12.pdfEach student is required to post a response to problem CP12.pdf
Each student is required to post a response to problem CP12.pdf
 
During the year the following transactions occurred Feb 1.pdf
During the year the following transactions occurred Feb 1.pdfDuring the year the following transactions occurred Feb 1.pdf
During the year the following transactions occurred Feb 1.pdf
 
Oilpartz Ltdnin sahibi Dave McDonald ceketini kard ve masa.pdf
Oilpartz Ltdnin sahibi Dave McDonald ceketini kard ve masa.pdfOilpartz Ltdnin sahibi Dave McDonald ceketini kard ve masa.pdf
Oilpartz Ltdnin sahibi Dave McDonald ceketini kard ve masa.pdf
 
Match Perverse incentives that encourage risky behavior by .pdf
Match Perverse incentives that encourage risky behavior by .pdfMatch Perverse incentives that encourage risky behavior by .pdf
Match Perverse incentives that encourage risky behavior by .pdf
 
Let E and F be two events in a sample space Which of the fo.pdf
Let E and F be two events in a sample space Which of the fo.pdfLet E and F be two events in a sample space Which of the fo.pdf
Let E and F be two events in a sample space Which of the fo.pdf
 
Escenarios Escenario bsico 4 Mark y Sue Malone Notas de la.pdf
Escenarios Escenario bsico 4 Mark y Sue Malone Notas de la.pdfEscenarios Escenario bsico 4 Mark y Sue Malone Notas de la.pdf
Escenarios Escenario bsico 4 Mark y Sue Malone Notas de la.pdf
 
Find the mixed strategy Nash equilibrium of this game In it.pdf
Find the mixed strategy Nash equilibrium of this game In it.pdfFind the mixed strategy Nash equilibrium of this game In it.pdf
Find the mixed strategy Nash equilibrium of this game In it.pdf
 
In business research the relationship between the researche.pdf
In business research the relationship between the researche.pdfIn business research the relationship between the researche.pdf
In business research the relationship between the researche.pdf
 
I am asked to provide the testing cases for the following co.pdf
I am asked to provide the testing cases for the following co.pdfI am asked to provide the testing cases for the following co.pdf
I am asked to provide the testing cases for the following co.pdf
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 

Dernier (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

Problem statement You are tasked to write a program that re.pdf

  • 1. Problem statement: You are tasked to write a program that reads in a sentence or a paragraph (max length 1023 letters) rom the user, store it as a string, and gives the user several options for operations to perform on the text r quit. After performing an operation, the user should be prompted to select another option until they choose to quit. The program must handle all types of bad inputs from user and recover from the errors. Detailed requirements for each choice are listed below: 1. Vowels vs. Consonants: Check if the number of vowels equals the number of consonants. Ignore any nonletter characters. Example: User enters "banana"; program prints" # vowels = # consonants." Example: User enters "ban ana 44!"; program prints" # vowels = # consonants." Example: User enters "zip"; program prints "# vowels != # consonants." 2. Letter swap: prompt the user for two valid letters, create a copy of the original string, and modify the copy string by replacing all occurrences of the first letter with the second letter. Example: User enters "Off we go, into the wild blue yonder!", then characters 'o' and 'i'. Program prints: Iff we gi, inti the wild blue yinder! (Notice: capitalization is preserved) 3. Flip (reverse) the string: create a copy of the original string, and then reverse it. Example: User enters "ban ana 54!"; program creates a new string and outputs: " 45 ana nab" Example: User enters "zip"; program creates a new string and outputs: "piz" 4. Palindrome Detector: Determine whether the input string is palindrome or not. A palindrome is a word, phrase, or sequence that reads the same backwards as forward. E.g., racecar, madam. Examples of palindromes that your code needs to detect: User enters "11Radar911", program outputs "This is a palindrome." (Ignore the numbers and case of letters) User enters "top sports", program outputs "This is not a palindrome." User enters "Was it a car or a cat I saw?", program outputs "This is a palindrome." (Ignore the space and special characters, '?') 5. Words frequency: Prompt the user for N words that the user wants to search for in the input string. For this assignment, assuming N is a positive integer less than or equal to 10. Use a string array to store N words, and output the frequency of N given words in the input string. Example: User enters "This is a test sentence, is this?", then 3 words, "this", "text", and "test". The program outputs: this: 2 text: 0 test: 1 (Note: Case insensitive, meaning "word" and "WoRD" are the same; All numbers and special characters in the string are ignored, meaning "wor32rd", "wo]]]rd343.34", and "word" are the same)Suggested functions: a. bool is palindrome (string str); //return true if str is palindrome, false otherwise b. string purge_string (string str); /laccepts a string, and returns a version where all numbers, spaces, and special characters have been removed OR you may use this: void purge_string (string str, string s str_new); /laccepts two c-strings, remove all spaces and special characters in str, and store the new string into str_new For frequency of given words, the N words must be entered at one time before searching to see if the words are in the sentence/paragraph. In other words, you cannot ask for a word, search its frequency and then ask for another word. You must ask for all words before searching for the words.Implementation Requirements: - Your user interface must provide clear instructions for the user and information about the data being presented - Use of references is required. - Use of 1D array is required - Libraries allowed to use: >,< string >,< cstring >,< cstdlib >,< cmath >, , fstream > if doing extra credit 1) - Your program should be properly decomposed into tasks and subtasks using functions. To help you with this, use the following: Make each function do one thing and one thing only. - No more than 15 lines inside the curly braces of any function, including main(). Whitespace, variable declarations, single curly braces, vertical spacing, comments, and function headers do not count. -
  • 2. Functions over 15 lines need justification in comments. - Do not put multiple statements into one line. - You are encouraged to use the functions in assignment 4 to do error handling. - No global variables allowed (those declared outside of any functions, global constants are allowed). - Make sure you follow the style guidelines, have a program header and function headers with appropriate comments, and be consistent.