Task 4 (30 points) [Testing: Variables and expression, strings, conditional-statements, loops, functions] Function task4() shows the results of several custom string manipulation functions you will write. For this task, you need to define the following three functions: countCases (param: string) returns two integer values This function takes a string and returns two values. The first value is the number of uppercase letters in the string. The second value is the number of lowercase letters in the string. For example: "EECS1015 Fal1 2021" has 5 uppercase (red) and 3 lowercase (green). flipCase(param: string) returns a string This function takes a string and returns a new string where the cases of the string are swapped. For example: "EECS1015 Fall 2021" would be converted to "eecs1015 FALL 2021" cutQuotedText(param: string) returns a string This function takes a string with a single "word" in douubles quotes and removes aIl characters within the
Task 4 (30 points) [Testing: Variables and expression, strings, conditional-statements, loops, functions] Function task4() shows the results of several custom string manipulation functions you will write. For this task, you need to define the following three functions: countCases (param: string) returns two integer values This function takes a string and returns two values. The first value is the number of uppercase letters in the string. The second value is the number of lowercase letters in the string. For example: "EECS1015 Fal1 2021" has 5 uppercase (red) and 3 lowercase (green). flipCase(param: string) returns a string This function takes a string and returns a new string where the cases of the string are swapped. For example: "EECS1015 Fall 2021" would be converted to "eecs1015 FALL 2021" cutQuotedText(param: string) returns a string This function takes a string with a single "word" in douubles quotes and removes aIl characters within the
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 23PE
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.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 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
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,