{"id":16962,"date":"2021-07-15T21:39:04","date_gmt":"2021-07-15T21:39:04","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/07\/15\/int-1111-lab-6\/"},"modified":"2021-07-15T21:39:04","modified_gmt":"2021-07-15T21:39:04","slug":"int-1111-lab-6","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/07\/15\/int-1111-lab-6\/","title":{"rendered":"INT 1111 Lab 6"},"content":{"rendered":"<p>Character-Analysis ProgramProblem Statement:Design a program that asks the user to enter a string.\u00a0 The string will then be displayed back to the user.\u00a0 This is followed by determining the number of alphabetic\u00a0characters, numeric characters, lower_case letters, upper_case letters, whitespace characters and then displaying them.\u00a0 The user should be\u00a0given additional chances to enter additional strings, and each time a string is entered, the above process is to be performed.\u00a0 The inputting is to stop, when the user enters &#8220;end&#8221; as the input string. At that point, total number of\u00a0alphabetic\u00a0characters, numeric characters, lower_case letters, upper_case\u00a0letters, whitespace characters are to be displayed and the program terminated.<br \/> An algorithm:1. Prompt the user to enter a string at the keyboard2. As long as the string is not &#8220;end&#8221;\u00a0 \u00a0 \u00a0 2.1 Display the string, along with an appropriate message\u00a0 \u00a0 \u00a0 2.2\u00a0 Examine the current character of the string\u00a0 \u00a0 \u00a0 \u00a0 \u00a02.2.1 If it&#8217;s alphabetic, update the alphabetic_counter and the total_alphabetic_counter\u00a0 \u00a0 \u00a0 \u00a0 \u00a02.2.2\u00a0If it&#8217;s numeric, update the numeric _counter and the total_numeric_counter\u00a0 \u00a0 \u00a0 \u00a0 \u00a02.2.3\u00a0If it&#8217;s a lower_case letter, update the\u00a0lower_case _counter and the\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 total_lower_case_counter 2.2.4\u00a0If it&#8217;s a upper_case letter, update the upper_case _counter and the\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 total_upper_case_counter 2.2.5\u00a0If it&#8217;s a whitespace character, update the\u00a0whitespace\u00a0_counter and the\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 total_whitespace_counter\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 2.2.6 Continue from step 2.2 with the next character until done with this string\u00a0 \u00a0 \u00a0 \u00a02.3 Display the\u00a0 alphabetic_counter,\u00a0 numeric _counter,\u00a0 lower_case _counter,\u00a0 upper_case _counter, and\u00a0 whitespace\u00a0_counter, each on a separate line,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 and each\u00a0along with\u00a0an appropriate message\u00a0 \u00a0 \u00a0 \u00a02.4\u00a0\u00a0Prompt the user to enter another string at the keyboard\u00a03.\u00a0Display the\u00a0 total_alphabetic_counter,\u00a0\u00a0 total_ numeric _counter,\u00a0\u00a0\u00a0 \u00a0 \u00a0total_lower_case _counter,\u00a0total_ upper_case _counter, and\u00a0\u00a0 total_ whitespace\u00a0_counter,\u00a0 \u00a0 \u00a0 each on a\u00a0separate line, and each\u00a0along with\u00a0an appropriate message\u00a04. Stop==================================================================================NOTE 1: The program will process alphabetic, numeric, and whitespace characters only.NOTE 2:A sample program run is attached below.\u00a0 It illustrates user&#8217;s interactions with the program: Lab SIX &#8211; Sample Program Run.pdf \u00a0=======================================================================You need to set up a\u00a0\u00a0\u00a0\u00a0 Python\u00a0solution that is\u00a0\u00a0\u00a0\u00a0 complete\u00a0and\u00a0\u00a0\u00a0\u00a0 workable.\u00a0\u00a0<\/p>\n<p> For your solution to be\u00a0\u00a0\u00a0\u00a0 complete, you must <\/p>\n<p> Prompt the user for the specific input data asked for within the problem statement <\/p>\n<p> Does the appropriate processing on the entered input data <\/p>\n<p> Provide the output data asked for within the problem statement to the user <\/p>\n<p> For your solution to be\u00a0\u00a0\u00a0\u00a0 workable, <\/p>\n<p> Your solution should be free of any type of errors (syntax, run-time, logic) <\/p>\n<p> You may want to develop an algorithm first, using pseudocode or flowchart <\/p>\n<p> You do NOT need to turn in any algorithm <\/p>\n<p> ========================================================================Grading rubric: <\/p>\n<p> You&#8217;ll receive full credit, if\u00a0<\/p>\n<p> your program<\/p>\n<p> compiles and runs with no problems\u00a0 <\/p>\n<p> produces the expected output <\/p>\n<p> You&#8217;ll receive partial credit, if\u00a0<\/p>\n<p> your program<\/p>\n<p> compiles and runs with no problems\u00a0 <\/p>\n<p> produces partial output (that is, incomplete output) <\/p>\n<p> You&#8217;ll receive 25% of the points, if your program will not compile <\/p>\n<p> You&#8217;ll receive 30% of the points, if your program compiles but has a run-time problem <\/p>\n<p> You&#8217;ll receive 40% of the points, if your program produces logic error(s) <\/p>\n<p> You&#8217;ll receive 50% of the points, if your program compiles and run, but no functions are used <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Character-Analysis ProgramProblem Statement:Design a program that asks the user to enter a string.\u00a0 The string will then be displayed back to the user.\u00a0 This is followed by determining the number of alphabetic\u00a0characters, numeric characters, lower_case letters, upper_case letters, whitespace characters and then displaying them.\u00a0 The user should be\u00a0given additional chances to enter additional strings, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28],"class_list":["post-16962","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-computer-science"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/16962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=16962"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/16962\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=16962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=16962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=16962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}