Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please solve it using C language NOT C++ . In-Lab Define a single array that may contain either a float value, an integer value, or
Please solve it using C language NOT C++ . In-Lab Define a single array that may contain either a float value, an integer value, or a character value. Using a menu, enter values from the user to fill an array of maximum size 50 until the user chooses to stop. After all tnput has been stored, find and print the largest float value, compute and print the average of the integer values, and print the alphabets stored in the array. You may need to use unions and enumerated data types to perform the task Example run: 1Intex an integer vaiue 2 Entex a Cheat velue 4 Quit Enter the value of your ehoice: 2 Enter the Clost value: .s 2. Enter Cleat velue Quit Enter the value of your choice: Enter the charscter value: . Inter an integer value 2. Inter Cleat value 3. Entercharactex value Enter the value ot your eheice: Enter the integer value: Enter an integer vale 2. EnterCleat velue 3.Entex a charactes velue Oait Enter the valse of your cheice: 2 Enter the Clost vele: 12 1. Intex an integer valve .Enter a charseter value Enter te value of your choice:7 Wrong cheice. Plesse try agin! 1 . Enter ?? integer value 2. Enter Elost aloe Enter the value of your choice: Enter the integer value: 1. Entex an integer vale 2. Enter Cloat value 3 Intexcheactex velue Quit Enter th-yalue of your choice: 3 Enter the charsoter value: 1. Enter an integer valoe Quit Enter the vaise ot your eheice: The largest Clost value entered s 3.s0 The sverege ot the integer velues & 4.50 The alphabets entered
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started