Lab exercises 2 Task 1 Reminder: You must analyse the questions by identifying the input, output and the process. Your submissions should have flowchart and C-program. Write a C program based on the following instructions 1. Create a character array of size 20 2. Read a string (without spaces) of size <=19 characters into the array. 3. Find the length of the string and print it. Remove all duplicate characters in the array. As you remove a duplicate character from the array, the remaining characters should be shifted forward by one position. 5. Print the length of the new string. 6. Print the new string. 7. Attach the output screen shot as shown below. 4. Sara@DESKTOP-512SSJH /c/COS10008 $out1 Enter a string ... moo_says_cow The length of the string = 12 The length of the string after removing duplicate characters = 8 he string after removing the duplicate characters = mo_saycw
Lab exercises 2 Task 1 Reminder: You must analyse the questions by identifying the input, output and the process. Your submissions should have flowchart and C-program. Write a C program based on the following instructions 1. Create a character array of size 20 2. Read a string (without spaces) of size <=19 characters into the array. 3. Find the length of the string and print it. Remove all duplicate characters in the array. As you remove a duplicate character from the array, the remaining characters should be shifted forward by one position. 5. Print the length of the new string. 6. Print the new string. 7. Attach the output screen shot as shown below. 4. Sara@DESKTOP-512SSJH /c/COS10008 $out1 Enter a string ... moo_says_cow The length of the string = 12 The length of the string after removing duplicate characters = 8 he string after removing the duplicate characters = mo_saycw
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 11RQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage