Program in c:- Create four float variables; a1, a2, a3, and a4.- Ask the user for and place a distinct value in each (no two should have thesame value).- Create a function named “batman” that outputs the values of a1, a2, a3,and a4 to the screen on one line in the same listed order. The functionprototype should be:void batman(float a, float b, float c, float d);- Call the function batman on a1, a2, a3, a4.- Print a new line with a printf statement.- Create a function named “superman” that has four float pointer variableswhich, when called, will sort the values pointed to from Low to high (lowestin a1, highest in a4). The function prototype should be:void superman(float *x1, float *x2, float *x3, float *x4)- Call the function superman on the addresses of a1, a2, a3, a4.- Call the function batman on a1, a2, a3, a4.- Print a new line with a printf statement.- Create a function named “wonder woman” that has four float pointervariables which, when called, will double the value stored in the pointed tovariables. The function prototype should be:void wonderwoman(float *x1, float *x2, float *x3, float *x4)- Call the function wonderwoman on the addresses of a1, a2, a3, a4.- Call the function batman on a1, a2, a3, a4.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Program in c:
- Create four float variables; a1, a2, a3, and a4.
- Ask the user for and place a distinct value in each (no two should have the
same value).
- Create a function named “batman” that outputs the values of a1, a2, a3,
and a4 to the screen on one line in the same listed order. The function
prototype should be:
void batman(float a, float b, float c, float d);
- Call the function batman on a1, a2, a3, a4.
- Print a new line with a printf statement.
- Create a function named “superman” that has four float pointer variables
which, when called, will sort the values pointed to from Low to high (lowest
in a1, highest in a4). The function prototype should be:
void superman(float *x1, float *x2, float *x3, float *x4)
- Call the function superman on the addresses of a1, a2, a3, a4.
- Call the function batman on a1, a2, a3, a4.
- Print a new line with a printf statement.
- Create a function named “wonder woman” that has four float pointer
variables which, when called, will double the value stored in the pointed to
variables. The function prototype should be:
void wonderwoman(float *x1, float *x2, float *x3, float *x4)
- Call the function wonderwoman on the addresses of a1, a2, a3, a4.
- Call the function batman on a1, a2, a3, a4.

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Knowledge Booster
Types of Function
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education