SlideShare a Scribd company logo
1 of 3
Download to read offline
in C pleaseee
Project 3
In this project, you will design a simple word processor. Your word processor will take a line of
input and align it left, right, or centered. It will also report word count and average word length.
To have an idea of what the end result will be, an example execution is shown below. The first
four lines are prompts for input, the other lines are outputs of the program:
All input will be less than 1000 characters. You can also assume all inputs are valid, except for
column width, which may be an invalid value that you will detect.
More details are discussed in the following sections.
Alignment
The text to align is entered via the Input: prompt. Then the user will select a column width with
the Column width: prompt and a text alignment via the Alignment: prompt.
The user will enter a column width, and you will align the text within this column. For example,
if the entered text was 'CS' and the column width was 6, you would center it as:
Note the six hyphens output to show each column
As seen above, each column number is shown, followed by a separating line of dashes, and then
the final output.
In the above example, the text is padded with two spaces on each side to center it. The two
spaces on the right are not needed and should not be output.
In the event that you find yourself with an odd number of spaces to divide, place the extra space
on the left. For example, if the column width was 7:
Examples of the three alignments given a column spacing of 6 are shown below:
Left
Right
Centered
If the column width is less than the length of the input, your program should print out the follow
text (ends with newline) and exit by returning 1:
Additional Details
In addition to alignment, your program will also implement a rudimentary autocorrect feature,
count the number of words, and report the average word length.
Autocorrect
Due to OCR errors, or in an attempt to avoid content filters, words may contain errors such as
H3110 (H three one one zero) instead of Hello. Your program should provide the user the option
to correct these errors. If the user chooses to correct them, you will:
Replace each 3 (number 3) with an e (lowercase letter E)
Replace each 1 (number 1) with an l (lowercase letter L)
Replace each 0 (number 0) with an o (lowercase letter O)
Replace each 7 (number 7) with a t (lowercase letter T)
When you prompt the user with Autocorrect:, they should be able to enter yes or no.
In addition to these replacements, when autocorrect is on, you should also capitalize the first
character of every sentence. This will be the first character of the input and any character
following . (period and a space). Finally, ensure the output ends with a period if it doesn't
already. Example:
h3llo world. this is a sentence => Hello world. This is a sentence.
Here you will see the first h was capitalized, the 3 was replaced with an e, the t in this was
capitalized, and a period was added to the end of the sentence.
If you add a period to the end, increase the column width by 1 as well to compensate for the
increase in string length.
Word count and average length
Word count: For simplicity, we will define word count as the number of spaces plus 1.
Average word length: Output the average word length as %lf. A word's length is defined as the
count of alphabet characters (a-z, A-Z) in the word.
Example
A complete example of how to handle input and display output is shown below:
in C pleaseee Project 3 In this project- you will design a simple word.pdf

More Related Content

Similar to in C pleaseee Project 3 In this project- you will design a simple word.pdf

Please help. C++ The program is an interactive program th.pdf
Please help. C++ The program is an interactive program th.pdfPlease help. C++ The program is an interactive program th.pdf
Please help. C++ The program is an interactive program th.pdffsenterprises
 
Questions4
Questions4Questions4
Questions4hccit
 
Spreadsheets for developers
Spreadsheets for developersSpreadsheets for developers
Spreadsheets for developersFelienne Hermans
 
how to make a research paper ?
how to make a research paper ?how to make a research paper ?
how to make a research paper ?Navin Pawar
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiSowmyaJyothi3
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01Drjilesh
 
Hello, I need help with the following assignmentThis assignment w.pdf
Hello, I need help with the following assignmentThis assignment w.pdfHello, I need help with the following assignmentThis assignment w.pdf
Hello, I need help with the following assignmentThis assignment w.pdfnamarta88
 
C language for Semester Exams for Engineers
C language for Semester Exams for Engineers C language for Semester Exams for Engineers
C language for Semester Exams for Engineers Appili Vamsi Krishna
 
New folderfac_lee023_HW06_WR5_FuncDecomp (3).pdfECE380 Pr.docx
New folderfac_lee023_HW06_WR5_FuncDecomp (3).pdfECE380 Pr.docxNew folderfac_lee023_HW06_WR5_FuncDecomp (3).pdfECE380 Pr.docx
New folderfac_lee023_HW06_WR5_FuncDecomp (3).pdfECE380 Pr.docxcurwenmichaela
 
ACM Word Template for SIG Site
ACM Word Template for SIG SiteACM Word Template for SIG Site
ACM Word Template for SIG SiteHarshitParkar6677
 
Lab6: I/O and Arrays
Lab6: I/O and ArraysLab6: I/O and Arrays
Lab6: I/O and Arraysenidcruz
 
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...Saikrishna Tanguturu
 
For this assignment, download the A6 code pack. This zip fil.docx
For this assignment, download the A6 code pack. This zip fil.docxFor this assignment, download the A6 code pack. This zip fil.docx
For this assignment, download the A6 code pack. This zip fil.docxalfred4lewis58146
 
You are required to write an interactive C program that prompts the .pdf
You are required to write an interactive C program that prompts the .pdfYou are required to write an interactive C program that prompts the .pdf
You are required to write an interactive C program that prompts the .pdfarrowcomputers8700
 

Similar to in C pleaseee Project 3 In this project- you will design a simple word.pdf (20)

Control structures pyhton
Control structures  pyhtonControl structures  pyhton
Control structures pyhton
 
Unit - 1.ppt
Unit - 1.pptUnit - 1.ppt
Unit - 1.ppt
 
Please help. C++ The program is an interactive program th.pdf
Please help. C++ The program is an interactive program th.pdfPlease help. C++ The program is an interactive program th.pdf
Please help. C++ The program is an interactive program th.pdf
 
Questions4
Questions4Questions4
Questions4
 
Spreadsheets for developers
Spreadsheets for developersSpreadsheets for developers
Spreadsheets for developers
 
how to make a research paper ?
how to make a research paper ?how to make a research paper ?
how to make a research paper ?
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya Jyothi
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 
Hello, I need help with the following assignmentThis assignment w.pdf
Hello, I need help with the following assignmentThis assignment w.pdfHello, I need help with the following assignmentThis assignment w.pdf
Hello, I need help with the following assignmentThis assignment w.pdf
 
C language for Semester Exams for Engineers
C language for Semester Exams for Engineers C language for Semester Exams for Engineers
C language for Semester Exams for Engineers
 
New folderfac_lee023_HW06_WR5_FuncDecomp (3).pdfECE380 Pr.docx
New folderfac_lee023_HW06_WR5_FuncDecomp (3).pdfECE380 Pr.docxNew folderfac_lee023_HW06_WR5_FuncDecomp (3).pdfECE380 Pr.docx
New folderfac_lee023_HW06_WR5_FuncDecomp (3).pdfECE380 Pr.docx
 
ACM Word Template for SIG Site
ACM Word Template for SIG SiteACM Word Template for SIG Site
ACM Word Template for SIG Site
 
Lab6: I/O and Arrays
Lab6: I/O and ArraysLab6: I/O and Arrays
Lab6: I/O and Arrays
 
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
Compiler Design - Ambiguous grammar, LMD & RMD, Infix & Postfix, Implementati...
 
Conference template-a4
Conference template-a4Conference template-a4
Conference template-a4
 
For this assignment, download the A6 code pack. This zip fil.docx
For this assignment, download the A6 code pack. This zip fil.docxFor this assignment, download the A6 code pack. This zip fil.docx
For this assignment, download the A6 code pack. This zip fil.docx
 
Lecture 05 2017
Lecture 05 2017Lecture 05 2017
Lecture 05 2017
 
You are required to write an interactive C program that prompts the .pdf
You are required to write an interactive C program that prompts the .pdfYou are required to write an interactive C program that prompts the .pdf
You are required to write an interactive C program that prompts the .pdf
 
ODS Page Breaking
ODS Page BreakingODS Page Breaking
ODS Page Breaking
 
template
templatetemplate
template
 

More from Stewart29UReesa

Note- Can someone help me with the Public boolean add(E value) method.pdf
Note- Can someone help me with the Public boolean add(E value) method.pdfNote- Can someone help me with the Public boolean add(E value) method.pdf
Note- Can someone help me with the Public boolean add(E value) method.pdfStewart29UReesa
 
Note- E0- Equilibrium demand and supply for labour - DL- Demand for la.pdf
Note- E0- Equilibrium demand and supply for labour - DL- Demand for la.pdfNote- E0- Equilibrium demand and supply for labour - DL- Demand for la.pdf
Note- E0- Equilibrium demand and supply for labour - DL- Demand for la.pdfStewart29UReesa
 
need in c language Write a function called isIsoceles that accepts thr.pdf
need in c language Write a function called isIsoceles that accepts thr.pdfneed in c language Write a function called isIsoceles that accepts thr.pdf
need in c language Write a function called isIsoceles that accepts thr.pdfStewart29UReesa
 
need in c language Write the body of a function called sumRange that a.pdf
need in c language Write the body of a function called sumRange that a.pdfneed in c language Write the body of a function called sumRange that a.pdf
need in c language Write the body of a function called sumRange that a.pdfStewart29UReesa
 
Need help with this ASAP- This is Database systems- Please draw out th.pdf
Need help with this ASAP- This is Database systems- Please draw out th.pdfNeed help with this ASAP- This is Database systems- Please draw out th.pdf
Need help with this ASAP- This is Database systems- Please draw out th.pdfStewart29UReesa
 
Nheser- Thmus dependest artigert- Thetrus insepensient andigeta- both.pdf
Nheser- Thmus dependest artigert- Thetrus insepensient andigeta- both.pdfNheser- Thmus dependest artigert- Thetrus insepensient andigeta- both.pdf
Nheser- Thmus dependest artigert- Thetrus insepensient andigeta- both.pdfStewart29UReesa
 
Nikke has just received an amended assessment from the Australian Taxa.pdf
Nikke has just received an amended assessment from the Australian Taxa.pdfNikke has just received an amended assessment from the Australian Taxa.pdf
Nikke has just received an amended assessment from the Australian Taxa.pdfStewart29UReesa
 
Orange- Below is a sequence alignment with fixed differences for speci.pdf
Orange- Below is a sequence alignment with fixed differences for speci.pdfOrange- Below is a sequence alignment with fixed differences for speci.pdf
Orange- Below is a sequence alignment with fixed differences for speci.pdfStewart29UReesa
 
Nordic Multinationals Nordic countries have small populations ( 6 mill.pdf
Nordic Multinationals Nordic countries have small populations ( 6 mill.pdfNordic Multinationals Nordic countries have small populations ( 6 mill.pdf
Nordic Multinationals Nordic countries have small populations ( 6 mill.pdfStewart29UReesa
 
Nordic countries have small populations (6 million in Denmark- 9 milli.pdf
Nordic countries have small populations (6 million in Denmark- 9 milli.pdfNordic countries have small populations (6 million in Denmark- 9 milli.pdf
Nordic countries have small populations (6 million in Denmark- 9 milli.pdfStewart29UReesa
 
Ontinostatic typotension Vazodepressor Syncope Shuazanat SyncopeMoveme.pdf
Ontinostatic typotension Vazodepressor Syncope Shuazanat SyncopeMoveme.pdfOntinostatic typotension Vazodepressor Syncope Shuazanat SyncopeMoveme.pdf
Ontinostatic typotension Vazodepressor Syncope Shuazanat SyncopeMoveme.pdfStewart29UReesa
 
One of the concerns in severe ankle sprain is that the patient has sus.pdf
One of the concerns in severe ankle sprain is that the patient has sus.pdfOne of the concerns in severe ankle sprain is that the patient has sus.pdf
One of the concerns in severe ankle sprain is that the patient has sus.pdfStewart29UReesa
 
no more info Given the system represented by the equations- x1-x22x13.pdf
no more info  Given the system represented by the equations- x1-x22x13.pdfno more info  Given the system represented by the equations- x1-x22x13.pdf
no more info Given the system represented by the equations- x1-x22x13.pdfStewart29UReesa
 
On June 13- the board of directors of Siewert Incorporated declared a.pdf
On June 13- the board of directors of Siewert Incorporated declared a.pdfOn June 13- the board of directors of Siewert Incorporated declared a.pdf
On June 13- the board of directors of Siewert Incorporated declared a.pdfStewart29UReesa
 
On May 1- 2023- Romy and Vic formed a partnership contributing assets.pdf
On May 1- 2023- Romy and Vic formed a partnership contributing assets.pdfOn May 1- 2023- Romy and Vic formed a partnership contributing assets.pdf
On May 1- 2023- Romy and Vic formed a partnership contributing assets.pdfStewart29UReesa
 
On January 1- 2020- Fisher Corporation purchased 40 percent (90-000 sh.pdf
On January 1- 2020- Fisher Corporation purchased 40 percent (90-000 sh.pdfOn January 1- 2020- Fisher Corporation purchased 40 percent (90-000 sh.pdf
On January 1- 2020- Fisher Corporation purchased 40 percent (90-000 sh.pdfStewart29UReesa
 
need asap- thank you Symbols for Relational Aleebra Expressions and Ot.pdf
need asap- thank you Symbols for Relational Aleebra Expressions and Ot.pdfneed asap- thank you Symbols for Relational Aleebra Expressions and Ot.pdf
need asap- thank you Symbols for Relational Aleebra Expressions and Ot.pdfStewart29UReesa
 
On December 30- 2020- Inge Co-'s Board of Directors declared a 10- sto.pdf
On December 30- 2020- Inge Co-'s Board of Directors declared a 10- sto.pdfOn December 30- 2020- Inge Co-'s Board of Directors declared a 10- sto.pdf
On December 30- 2020- Inge Co-'s Board of Directors declared a 10- sto.pdfStewart29UReesa
 
On December 10- YR08 the board of directors of Apple Inc- declared a c.pdf
On December 10- YR08 the board of directors of Apple Inc- declared a c.pdfOn December 10- YR08 the board of directors of Apple Inc- declared a c.pdf
On December 10- YR08 the board of directors of Apple Inc- declared a c.pdfStewart29UReesa
 
Objective- Write syntactically correct while-for loops Given a list of.pdf
Objective- Write syntactically correct while-for loops Given a list of.pdfObjective- Write syntactically correct while-for loops Given a list of.pdf
Objective- Write syntactically correct while-for loops Given a list of.pdfStewart29UReesa
 

More from Stewart29UReesa (20)

Note- Can someone help me with the Public boolean add(E value) method.pdf
Note- Can someone help me with the Public boolean add(E value) method.pdfNote- Can someone help me with the Public boolean add(E value) method.pdf
Note- Can someone help me with the Public boolean add(E value) method.pdf
 
Note- E0- Equilibrium demand and supply for labour - DL- Demand for la.pdf
Note- E0- Equilibrium demand and supply for labour - DL- Demand for la.pdfNote- E0- Equilibrium demand and supply for labour - DL- Demand for la.pdf
Note- E0- Equilibrium demand and supply for labour - DL- Demand for la.pdf
 
need in c language Write a function called isIsoceles that accepts thr.pdf
need in c language Write a function called isIsoceles that accepts thr.pdfneed in c language Write a function called isIsoceles that accepts thr.pdf
need in c language Write a function called isIsoceles that accepts thr.pdf
 
need in c language Write the body of a function called sumRange that a.pdf
need in c language Write the body of a function called sumRange that a.pdfneed in c language Write the body of a function called sumRange that a.pdf
need in c language Write the body of a function called sumRange that a.pdf
 
Need help with this ASAP- This is Database systems- Please draw out th.pdf
Need help with this ASAP- This is Database systems- Please draw out th.pdfNeed help with this ASAP- This is Database systems- Please draw out th.pdf
Need help with this ASAP- This is Database systems- Please draw out th.pdf
 
Nheser- Thmus dependest artigert- Thetrus insepensient andigeta- both.pdf
Nheser- Thmus dependest artigert- Thetrus insepensient andigeta- both.pdfNheser- Thmus dependest artigert- Thetrus insepensient andigeta- both.pdf
Nheser- Thmus dependest artigert- Thetrus insepensient andigeta- both.pdf
 
Nikke has just received an amended assessment from the Australian Taxa.pdf
Nikke has just received an amended assessment from the Australian Taxa.pdfNikke has just received an amended assessment from the Australian Taxa.pdf
Nikke has just received an amended assessment from the Australian Taxa.pdf
 
Orange- Below is a sequence alignment with fixed differences for speci.pdf
Orange- Below is a sequence alignment with fixed differences for speci.pdfOrange- Below is a sequence alignment with fixed differences for speci.pdf
Orange- Below is a sequence alignment with fixed differences for speci.pdf
 
Nordic Multinationals Nordic countries have small populations ( 6 mill.pdf
Nordic Multinationals Nordic countries have small populations ( 6 mill.pdfNordic Multinationals Nordic countries have small populations ( 6 mill.pdf
Nordic Multinationals Nordic countries have small populations ( 6 mill.pdf
 
Nordic countries have small populations (6 million in Denmark- 9 milli.pdf
Nordic countries have small populations (6 million in Denmark- 9 milli.pdfNordic countries have small populations (6 million in Denmark- 9 milli.pdf
Nordic countries have small populations (6 million in Denmark- 9 milli.pdf
 
Ontinostatic typotension Vazodepressor Syncope Shuazanat SyncopeMoveme.pdf
Ontinostatic typotension Vazodepressor Syncope Shuazanat SyncopeMoveme.pdfOntinostatic typotension Vazodepressor Syncope Shuazanat SyncopeMoveme.pdf
Ontinostatic typotension Vazodepressor Syncope Shuazanat SyncopeMoveme.pdf
 
One of the concerns in severe ankle sprain is that the patient has sus.pdf
One of the concerns in severe ankle sprain is that the patient has sus.pdfOne of the concerns in severe ankle sprain is that the patient has sus.pdf
One of the concerns in severe ankle sprain is that the patient has sus.pdf
 
no more info Given the system represented by the equations- x1-x22x13.pdf
no more info  Given the system represented by the equations- x1-x22x13.pdfno more info  Given the system represented by the equations- x1-x22x13.pdf
no more info Given the system represented by the equations- x1-x22x13.pdf
 
On June 13- the board of directors of Siewert Incorporated declared a.pdf
On June 13- the board of directors of Siewert Incorporated declared a.pdfOn June 13- the board of directors of Siewert Incorporated declared a.pdf
On June 13- the board of directors of Siewert Incorporated declared a.pdf
 
On May 1- 2023- Romy and Vic formed a partnership contributing assets.pdf
On May 1- 2023- Romy and Vic formed a partnership contributing assets.pdfOn May 1- 2023- Romy and Vic formed a partnership contributing assets.pdf
On May 1- 2023- Romy and Vic formed a partnership contributing assets.pdf
 
On January 1- 2020- Fisher Corporation purchased 40 percent (90-000 sh.pdf
On January 1- 2020- Fisher Corporation purchased 40 percent (90-000 sh.pdfOn January 1- 2020- Fisher Corporation purchased 40 percent (90-000 sh.pdf
On January 1- 2020- Fisher Corporation purchased 40 percent (90-000 sh.pdf
 
need asap- thank you Symbols for Relational Aleebra Expressions and Ot.pdf
need asap- thank you Symbols for Relational Aleebra Expressions and Ot.pdfneed asap- thank you Symbols for Relational Aleebra Expressions and Ot.pdf
need asap- thank you Symbols for Relational Aleebra Expressions and Ot.pdf
 
On December 30- 2020- Inge Co-'s Board of Directors declared a 10- sto.pdf
On December 30- 2020- Inge Co-'s Board of Directors declared a 10- sto.pdfOn December 30- 2020- Inge Co-'s Board of Directors declared a 10- sto.pdf
On December 30- 2020- Inge Co-'s Board of Directors declared a 10- sto.pdf
 
On December 10- YR08 the board of directors of Apple Inc- declared a c.pdf
On December 10- YR08 the board of directors of Apple Inc- declared a c.pdfOn December 10- YR08 the board of directors of Apple Inc- declared a c.pdf
On December 10- YR08 the board of directors of Apple Inc- declared a c.pdf
 
Objective- Write syntactically correct while-for loops Given a list of.pdf
Objective- Write syntactically correct while-for loops Given a list of.pdfObjective- Write syntactically correct while-for loops Given a list of.pdf
Objective- Write syntactically correct while-for loops Given a list of.pdf
 

Recently uploaded

e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhleson0603
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Mohamed Rizk Khodair
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 

Recently uploaded (20)

e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 

in C pleaseee Project 3 In this project- you will design a simple word.pdf

  • 1. in C pleaseee Project 3 In this project, you will design a simple word processor. Your word processor will take a line of input and align it left, right, or centered. It will also report word count and average word length. To have an idea of what the end result will be, an example execution is shown below. The first four lines are prompts for input, the other lines are outputs of the program: All input will be less than 1000 characters. You can also assume all inputs are valid, except for column width, which may be an invalid value that you will detect. More details are discussed in the following sections. Alignment The text to align is entered via the Input: prompt. Then the user will select a column width with the Column width: prompt and a text alignment via the Alignment: prompt. The user will enter a column width, and you will align the text within this column. For example, if the entered text was 'CS' and the column width was 6, you would center it as: Note the six hyphens output to show each column As seen above, each column number is shown, followed by a separating line of dashes, and then the final output. In the above example, the text is padded with two spaces on each side to center it. The two spaces on the right are not needed and should not be output. In the event that you find yourself with an odd number of spaces to divide, place the extra space on the left. For example, if the column width was 7: Examples of the three alignments given a column spacing of 6 are shown below: Left Right Centered If the column width is less than the length of the input, your program should print out the follow text (ends with newline) and exit by returning 1: Additional Details
  • 2. In addition to alignment, your program will also implement a rudimentary autocorrect feature, count the number of words, and report the average word length. Autocorrect Due to OCR errors, or in an attempt to avoid content filters, words may contain errors such as H3110 (H three one one zero) instead of Hello. Your program should provide the user the option to correct these errors. If the user chooses to correct them, you will: Replace each 3 (number 3) with an e (lowercase letter E) Replace each 1 (number 1) with an l (lowercase letter L) Replace each 0 (number 0) with an o (lowercase letter O) Replace each 7 (number 7) with a t (lowercase letter T) When you prompt the user with Autocorrect:, they should be able to enter yes or no. In addition to these replacements, when autocorrect is on, you should also capitalize the first character of every sentence. This will be the first character of the input and any character following . (period and a space). Finally, ensure the output ends with a period if it doesn't already. Example: h3llo world. this is a sentence => Hello world. This is a sentence. Here you will see the first h was capitalized, the 3 was replaced with an e, the t in this was capitalized, and a period was added to the end of the sentence. If you add a period to the end, increase the column width by 1 as well to compensate for the increase in string length. Word count and average length Word count: For simplicity, we will define word count as the number of spaces plus 1. Average word length: Output the average word length as %lf. A word's length is defined as the count of alphabet characters (a-z, A-Z) in the word. Example A complete example of how to handle input and display output is shown below: