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

Control structures pyhton
Control structures  pyhtonControl structures  pyhton
Control structures pyhtonPrakash Jayaraman
ย 
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
ย 
Conference template-a4
Conference template-a4Conference template-a4
Conference template-a4Punith Gowda M B
ย 
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
ย 
Lecture 05 2017
Lecture 05 2017Lecture 05 2017
Lecture 05 2017Jesmin Akhter
ย 
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
ย 
ODS Page Breaking
ODS Page BreakingODS Page Breaking
ODS Page BreakingDaniel Boisvert
ย 

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

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 . pdfQucHHunhnh
ย 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
ย 
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 17Celine George
ย 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
ย 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
ย 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
ย 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
ย 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
ย 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
ย 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
ย 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
ย 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
ย 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
ย 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
ย 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
ย 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
ย 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
ย 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
ย 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
ย 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
ย 

Recently uploaded (20)

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
ย 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
ย 
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
ย 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
ย 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
ย 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
ย 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ย 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
ย 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
ย 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ย 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
ย 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
ย 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
ย 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
ย 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
ย 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
ย 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
ย 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
ย 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
ย 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
ย 

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: