SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Use the program from Part 2 of Assignment #7 as your starting point! (The details are below for
convenience 1. Design and code a program to create a letter frequency table (you must a 26 entry
integer array) From Assignment #7: Part 2: a. Write a program to aceept a one-line string
(maximum of 100 characters) from the keyboard. b. Edit the string entered in (a) (with code that
you write) to remove all the white space, digits, punctuation, and other special characters, leaving
only the letters. c. Print out the resulting compressed string to the sereen. Example: If the input
string was "If I've told you once, Ive told you 1000 times!!" Then the output string would be
"Iflvetoldyouoncelvetoldyoutimes" that counts how many times each letter is used in your
compressed sentence for Part 1. Count upper case letters as if they were lower case. 2. Print out
the numbers in this table to the sereen starting with the frequency of " a " and continuing to the
frequency of " z ". 3. Format the table output to consist of two horizontal lines with 13 numbers in
each line. Separate the numbers on the line by a single space. The appropriate output here for the
input example from Assignment 7 Part 2, would be Letter Frequency Table 0012410040021
1500013220020 4. Have the program handle multiple data sets and terminate execution when a
null input string is entered. 5. S 6. Your code should be thoroughly commented! Do not define
syntax in your code comments, but rather explain what that line or group of lines is doing to
contribute to the overall goals of the program. a. At the beginning of the program, there should be
a preamble block of comments. At a minimum, this should include your name, class, section,
assignment number, program title, and date. b. There should also be a block of comments at the
beginning of your code that describes your design. Here, define inputs, outputs, assumptions,
constraints, and a high-level overview of processes and the overall functionality of the program. c.
Before major/logical sections of code, use header comments that explain what the section that
follows accomplishes. d. Every line of your code should have a comment. Comments should not
define syntax, but rather should explain the contribution of the line of code to the overall
functionality goals of the program. e. Be sure to use tabs to align your opcodes, operands, and
comments. This allows readability and there will be point deductions if this is not done properly. f.
Your comments should make your code self-documenting, and I should be able to understand the
functionality and purpose of the program by simply reading the comments. Design - 30 Pts /
Functionality - 40 Pts / Comments - 30 Pts

Mais conteúdo relacionado

Semelhante a Use the program from Part 2 of Assignment 7 as your startin.pdf

INPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docxINPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
jaggernaoma
 
Project 2 MARIE Start code at bottom of document1. IntroductionT.docx
Project 2 MARIE Start code at bottom of document1. IntroductionT.docxProject 2 MARIE Start code at bottom of document1. IntroductionT.docx
Project 2 MARIE Start code at bottom of document1. IntroductionT.docx
briancrawford30935
 

Semelhante a Use the program from Part 2 of Assignment 7 as your startin.pdf (20)

Uniti classnotes
Uniti classnotesUniti classnotes
Uniti classnotes
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docxINPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
INPUT AND OUTPUT PROCESSINGPlease note that the material o.docx
 
UNIT 1 NOTES.docx
UNIT 1 NOTES.docxUNIT 1 NOTES.docx
UNIT 1 NOTES.docx
 
Tutorial basic of c ++lesson 1 eng ver
Tutorial basic of c ++lesson 1 eng verTutorial basic of c ++lesson 1 eng ver
Tutorial basic of c ++lesson 1 eng ver
 
Lecture 01 2017
Lecture 01 2017Lecture 01 2017
Lecture 01 2017
 
C programming
C programmingC programming
C programming
 
C Programming Unit-1
C Programming Unit-1C Programming Unit-1
C Programming Unit-1
 
Lab6: I/O and Arrays
Lab6: I/O and ArraysLab6: I/O and Arrays
Lab6: I/O and Arrays
 
Diploma ii cfpc u-2 datatypes and variables in c language
Diploma ii  cfpc u-2 datatypes and variables in c languageDiploma ii  cfpc u-2 datatypes and variables in c language
Diploma ii cfpc u-2 datatypes and variables in c language
 
Mca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageMca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c language
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
 
Bsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageBsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c language
 
Assignment 2
Assignment 2Assignment 2
Assignment 2
 
COMPUTER PROGRAMMING
COMPUTER PROGRAMMINGCOMPUTER PROGRAMMING
COMPUTER PROGRAMMING
 
Chapter 3(1)
Chapter 3(1)Chapter 3(1)
Chapter 3(1)
 
Project 2 MARIE Start code at bottom of document1. IntroductionT.docx
Project 2 MARIE Start code at bottom of document1. IntroductionT.docxProject 2 MARIE Start code at bottom of document1. IntroductionT.docx
Project 2 MARIE Start code at bottom of document1. IntroductionT.docx
 
(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises(4) cpp automatic arrays_pointers_c-strings_exercises
(4) cpp automatic arrays_pointers_c-strings_exercises
 
Intro To C++ - Class 3 - Sample Program
Intro To C++ - Class 3 - Sample ProgramIntro To C++ - Class 3 - Sample Program
Intro To C++ - Class 3 - Sample Program
 
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part IIIntro To C++ - Class 03 - An Introduction To C++ Programming, Part II
Intro To C++ - Class 03 - An Introduction To C++ Programming, Part II
 

Mais de adityknits

User Requirements Event handlers are often called event list.pdf
User Requirements Event handlers are often called event list.pdfUser Requirements Event handlers are often called event list.pdf
User Requirements Event handlers are often called event list.pdf
adityknits
 
UserInputHandlerjava package midterm2023 import javautil.pdf
UserInputHandlerjava package midterm2023 import javautil.pdfUserInputHandlerjava package midterm2023 import javautil.pdf
UserInputHandlerjava package midterm2023 import javautil.pdf
adityknits
 
Use the following code for the tasks public class Animal .pdf
Use the following code for the tasks  public class Animal .pdfUse the following code for the tasks  public class Animal .pdf
Use the following code for the tasks public class Animal .pdf
adityknits
 
Use the grey point star symbol to indicate the competitive.pdf
Use the grey point star symbol to indicate the competitive.pdfUse the grey point star symbol to indicate the competitive.pdf
Use the grey point star symbol to indicate the competitive.pdf
adityknits
 

Mais de adityknits (20)

Using best responses to evaluate this matrix Find all the s.pdf
Using best responses to evaluate this matrix Find all the s.pdfUsing best responses to evaluate this matrix Find all the s.pdf
Using best responses to evaluate this matrix Find all the s.pdf
 
Using Bankers algorithm answer the following questions i.pdf
Using Bankers algorithm answer the following questions i.pdfUsing Bankers algorithm answer the following questions i.pdf
Using Bankers algorithm answer the following questions i.pdf
 
User Requirements Event handlers are often called event list.pdf
User Requirements Event handlers are often called event list.pdfUser Requirements Event handlers are often called event list.pdf
User Requirements Event handlers are often called event list.pdf
 
Using a company that you know or fictitious company briefly .pdf
Using a company that you know or fictitious company briefly .pdfUsing a company that you know or fictitious company briefly .pdf
Using a company that you know or fictitious company briefly .pdf
 
UserInputHandlerjava package midterm2023 import javautil.pdf
UserInputHandlerjava package midterm2023 import javautil.pdfUserInputHandlerjava package midterm2023 import javautil.pdf
UserInputHandlerjava package midterm2023 import javautil.pdf
 
used below format to complete Write your code in the incompl.pdf
used below format to complete Write your code in the incompl.pdfused below format to complete Write your code in the incompl.pdf
used below format to complete Write your code in the incompl.pdf
 
Use to answer the following questions Match the letters wit.pdf
Use to answer the following questions Match the letters wit.pdfUse to answer the following questions Match the letters wit.pdf
Use to answer the following questions Match the letters wit.pdf
 
Use this list of terms to complete the sentences that follow.pdf
Use this list of terms to complete the sentences that follow.pdfUse this list of terms to complete the sentences that follow.pdf
Use this list of terms to complete the sentences that follow.pdf
 
Use the Web to find as many examples as you can of open sour.pdf
Use the Web to find as many examples as you can of open sour.pdfUse the Web to find as many examples as you can of open sour.pdf
Use the Web to find as many examples as you can of open sour.pdf
 
Use the spreadsheet extract to answer the questions Requir.pdf
Use the spreadsheet extract to answer the questions   Requir.pdfUse the spreadsheet extract to answer the questions   Requir.pdf
Use the spreadsheet extract to answer the questions Requir.pdf
 
Use the scenario to come up with the metabolic pathways requ.pdf
Use the scenario to come up with the metabolic pathways requ.pdfUse the scenario to come up with the metabolic pathways requ.pdf
Use the scenario to come up with the metabolic pathways requ.pdf
 
Use the RTL design process to create an alarm system that se.pdf
Use the RTL design process to create an alarm system that se.pdfUse the RTL design process to create an alarm system that se.pdf
Use the RTL design process to create an alarm system that se.pdf
 
Use the micrograph of the Gram stain to draw conclusions and.pdf
Use the micrograph of the Gram stain to draw conclusions and.pdfUse the micrograph of the Gram stain to draw conclusions and.pdf
Use the micrograph of the Gram stain to draw conclusions and.pdf
 
Use the following code for the tasks public class Animal .pdf
Use the following code for the tasks  public class Animal .pdfUse the following code for the tasks  public class Animal .pdf
Use the following code for the tasks public class Animal .pdf
 
Use the Internet to identify and compare three different mob.pdf
Use the Internet to identify and compare three different mob.pdfUse the Internet to identify and compare three different mob.pdf
Use the Internet to identify and compare three different mob.pdf
 
Use the graph below to answer questions 1012 10 Highlight .pdf
Use the graph below to answer questions 1012 10 Highlight .pdfUse the graph below to answer questions 1012 10 Highlight .pdf
Use the graph below to answer questions 1012 10 Highlight .pdf
 
Use the grey point star symbol to indicate the competitive.pdf
Use the grey point star symbol to indicate the competitive.pdfUse the grey point star symbol to indicate the competitive.pdf
Use the grey point star symbol to indicate the competitive.pdf
 
Use the following information for the Exercises below The .pdf
Use the following information for the Exercises below The .pdfUse the following information for the Exercises below The .pdf
Use the following information for the Exercises below The .pdf
 
Use the images from the wild type cell shown below to answer.pdf
Use the images from the wild type cell shown below to answer.pdfUse the images from the wild type cell shown below to answer.pdf
Use the images from the wild type cell shown below to answer.pdf
 
Use the given information to find the indicated probability.pdf
Use the given information to find the indicated probability.pdfUse the given information to find the indicated probability.pdf
Use the given information to find the indicated probability.pdf
 

Último

Último (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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.
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
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...
 
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
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
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.
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
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
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
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
 

Use the program from Part 2 of Assignment 7 as your startin.pdf

  • 1. Use the program from Part 2 of Assignment #7 as your starting point! (The details are below for convenience 1. Design and code a program to create a letter frequency table (you must a 26 entry integer array) From Assignment #7: Part 2: a. Write a program to aceept a one-line string (maximum of 100 characters) from the keyboard. b. Edit the string entered in (a) (with code that you write) to remove all the white space, digits, punctuation, and other special characters, leaving only the letters. c. Print out the resulting compressed string to the sereen. Example: If the input string was "If I've told you once, Ive told you 1000 times!!" Then the output string would be "Iflvetoldyouoncelvetoldyoutimes" that counts how many times each letter is used in your compressed sentence for Part 1. Count upper case letters as if they were lower case. 2. Print out the numbers in this table to the sereen starting with the frequency of " a " and continuing to the frequency of " z ". 3. Format the table output to consist of two horizontal lines with 13 numbers in each line. Separate the numbers on the line by a single space. The appropriate output here for the input example from Assignment 7 Part 2, would be Letter Frequency Table 0012410040021 1500013220020 4. Have the program handle multiple data sets and terminate execution when a null input string is entered. 5. S 6. Your code should be thoroughly commented! Do not define syntax in your code comments, but rather explain what that line or group of lines is doing to contribute to the overall goals of the program. a. At the beginning of the program, there should be a preamble block of comments. At a minimum, this should include your name, class, section, assignment number, program title, and date. b. There should also be a block of comments at the beginning of your code that describes your design. Here, define inputs, outputs, assumptions, constraints, and a high-level overview of processes and the overall functionality of the program. c. Before major/logical sections of code, use header comments that explain what the section that follows accomplishes. d. Every line of your code should have a comment. Comments should not define syntax, but rather should explain the contribution of the line of code to the overall functionality goals of the program. e. Be sure to use tabs to align your opcodes, operands, and comments. This allows readability and there will be point deductions if this is not done properly. f. Your comments should make your code self-documenting, and I should be able to understand the functionality and purpose of the program by simply reading the comments. Design - 30 Pts / Functionality - 40 Pts / Comments - 30 Pts