Create a program as follows: Declare three floats as a1, a2, and a3. Create a menu...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program as follows: Declare three floats as a1, a2, and a3. Create a menu as follows: Option C to call a function named superman that has three pointers of type float as parameters and no return. The function assigns zero to each of a1, a2, and a3. Option S to call a function named batman that has three pointers of type float as parameters and no return. The function will sort, in ascending order, the values in a1, a2, and a3. Option A to call a function named robin that has three pointers of type float as parameters and no return. The function will sort, in descending order, the values in a1, a2, and a3. Option J to call a function named jocker that has three pointers of type float as parameters and no return. The function will double each of the values in a1, a2, and a3. Option P to call a function named catwomen that has three floats as parameters and no return. The function will print to the screen each of the values in a1, a2, and a3 in a formatted manner (right justified with a field width of 12. Ex: al = a2 = a3 = 23.65 99.22 1.56 Option X to exit the program. Create a program as follows: Declare three floats as a1, a2, and a3. Create a menu as follows: Option C to call a function named superman that has three pointers of type float as parameters and no return. The function assigns zero to each of a1, a2, and a3. Option S to call a function named batman that has three pointers of type float as parameters and no return. The function will sort, in ascending order, the values in a1, a2, and a3. Option A to call a function named robin that has three pointers of type float as parameters and no return. The function will sort, in descending order, the values in a1, a2, and a3. Option J to call a function named jocker that has three pointers of type float as parameters and no return. The function will double each of the values in a1, a2, and a3. Option P to call a function named catwomen that has three floats as parameters and no return. The function will print to the screen each of the values in a1, a2, and a3 in a formatted manner (right justified with a field width of 12. Ex: al = a2 = a3 = 23.65 99.22 1.56 Option X to exit the program.
Expert Answer:
Answer rating: 100% (QA)
Below is a simple C program that fulfills your requirements c include Function declarations void sup... View the full answer
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Given the following two Finite State Machines, state whether they are weakly bisimilar or not, and justify your answer. SO $1 a $2 a 91 $3 92
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Calculate the following limits at infinity. If necessary, use -inf and inf to denote -co and co. Use DNE if a limit does not exist. 1. lim e = 818 2. lim e = 8178 3. lim In(x) 24x In(x) =
-
A shareholder's basis in property received in a stock redemption is the same whether the redemption is qualifying or nonqualified. Comment on the validity of this statement?
-
What are the benefits of a financial report audit?
-
Service firms trace only direct labour costs to jobs. All other costs are applied as a percentage of direct labour cost. Do you agree? Explain.
-
What is the difference between the conventional test data approach and the integrated test facility approach?
-
Two planes leave an airport at the same time. Their speeds are 130 miles per hour and 110 miles per hour, and the angle between their courses is 48, How far apart are they after 1.5 hours? (Round...
-
You are the senior acquisitions associate at a New York-based private equity fund with a core investment focus. You have reached an agreement to purchase a well-located, 185,000 square foot office...
-
At the beginning of the year, Berkshire Manufacturing had the following account balances: Work-in-Process Inventory 2,000 Finished Goods Inventory 8,000 Manufacturing Overhead Cost of Goods Sold...
-
Create the database for your system and importing the data from your .csv file from Microsoft access
-
CJ Co stock has a beta of .99 the current risk-free rate is 5.69 percent, and the expected return on the market is 13.09percent.What is CJ Co's cost of equity? Your Company is considering a new...
-
Apply economic concepts to the design of quality improvement plans for a healthcare facility. Imagine that you have been asked to develop a new quality improvement program to address cost containment...
-
Suppose someone opens a new physiotherapy center 1. What are some legal issues associated with new rehabilitation and fitness facility? 2. What are some of the potential legal issues that may arise...
-
The two sides of a V-shaped water trough are hinged to each other at the bottom where they meet, as shown in the figure, making an angle of 45 with the ground from both sides. Each side is 0.35 m...
-
Which one is true statement:The skewness in a distribution canbe positive or negative.? In a distribution, if thefrequencies extend from modefarther to the right, like indistribution A, it is 1 answer
-
The following items were displayed in the statement of affairs for Lubbock Company: Fully secured liabilities ......... $90,000 Partially secured liabilities ....... 12,000 Unsecured liabilities...
-
Suppose the song() function has this prototype: void song(const char * name, int times); a. How would you modify the prototype so that the default value for times is 1? b. What changes would you make...
-
Rewrite the Stock class, as described in Listings 10.7 and 10.8 in Chapter 10 so that it uses dynamically allocated memory directly instead of using string class objects to hold the stock names. Also...
-
Write a code fragment that dynamically allocates a structure of the type described in Question 8 and then reads a value for the kind member of the structure. Data From Question 8 Devise a structure...
-
Does Russias BOP balance? Use the following balance of payments data for Russia (Russian Federation) from the IMF to answer this problem. Assumptions (million US$) 2000 2001 2002 2003 2004 2005 2006...
-
Is the Euro Area experiencing a net capital inflow? Use the following balance of payments data for the Euro Area from the IMF to answer this problem. Assumptions (billion US$) 2000 2001 2002 2003...
-
What is the Euro Areas total for Groups A and B? Use the following balance of payments data for the Euro Area from the IMF to answer this problem. Assumptions (billion US$) 2000 2001 2002 2003 2004...
Study smarter with the SolutionInn App