HW3-C - Function Overloading with Arrays (Chapter 6 Chapter 7) Collapse context In this exercise, the main code passes to the arrayMins function either an array of characters, or an array of floating-point numbers (of type double). If the input array is a character array: • The arrayMins function will print the lowest small case letter and the lowest capital case letter (in this specific order) separated by a single space. In this case, the function returns with a TRUE. • If the array only contains small letters, it prints the lowest small case letter and returns with a FALSE. • If the array only contains capital letters, it prints the lowest capital case letter and repurns with a FALSE. • If the array does not contain any small or capital letters, the function prints "NONE", and returns with a FALSE. If the input array is a double array: • The arrayMins function will print the smallest and largest numbers in the array (in order) separated by a single space. • If the smallest and largest numbers are equal, the function will only print one of them. You are required to write the body for the two overlaoded functions called arrayMins, one which handles the case for characters, and the other the case for doubles.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 8PP: (Data processing) A bank’s customer records are to be stored in a file and read into a set of arrays...
icon
Related questions
Question

c++ language pleaseee

HW3-C - Function Overloading with Arrays (Chapter 6 Collapse context
Chapter 7)
In this exercise, the main code passes to the arrayMins function either an array of characters, or an array of floating-point numbers
(of type double).
If the input array is a character array:
• The arrayMins function will print the lowest small case letter and the lowest capital case letter (in this specific order)
separated by a single space. In this case, the function returns with a TRUE.
• If the array only contains small letters, it prints the lowest small case letter and returns with a FALSE.
• If the array only contains capital letters, it prints the lowest capital case letter and repurns with a FALSE.
• If the array does not contain any small or capital letters, the function prints "NONE", and returns with a FALSE.
If the input array is a double array:
• The arrayMins function will print the smallest and largest numbers in the array (in order) separated by a single space.
• If the smallest and largest numbers are equal, the function will only print one of them.
You are required to write the body for the two overlaoded functions called arrayMins, one which handles the case for characters,
and the other the case for doubles.
Transcribed Image Text:HW3-C - Function Overloading with Arrays (Chapter 6 Collapse context Chapter 7) In this exercise, the main code passes to the arrayMins function either an array of characters, or an array of floating-point numbers (of type double). If the input array is a character array: • The arrayMins function will print the lowest small case letter and the lowest capital case letter (in this specific order) separated by a single space. In this case, the function returns with a TRUE. • If the array only contains small letters, it prints the lowest small case letter and returns with a FALSE. • If the array only contains capital letters, it prints the lowest capital case letter and repurns with a FALSE. • If the array does not contain any small or capital letters, the function prints "NONE", and returns with a FALSE. If the input array is a double array: • The arrayMins function will print the smallest and largest numbers in the array (in order) separated by a single space. • If the smallest and largest numbers are equal, the function will only print one of them. You are required to write the body for the two overlaoded functions called arrayMins, one which handles the case for characters, and the other the case for doubles.
Expert Solution
steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Array
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning