subject

For problem "3", choose either 3a (25 points) or 3b (35 points). problem 3a: (20 points) based on problem 7-30 array of function pointer exercises 7.30 (caleulating circle circumference, circle area or sphere volume using function pointers) using the techniques you learned in fig. 7.28, create a text-based, menu-driven program that allows the user to choose whether to calculate the circumference of a circle, the area of a circle or the vol- ume of a sphere. the program should then input a radius from the user, perform the appropriate calculation and display the result. use an array of function pointers in which each pointer represents a function that returns void and receives a double parameter. the corresponding functions should each display messages indicating which calculation was performed, the value of the radius and the result of the calculation. problem 3b: (35 points) repeat problem 3a and add another pointer/command to give all parameters in addition to asking for diameter or radius, as discussed in class. that is enter "d 10" this means you have entered a diameter. or "r 5" means you have entered a radius. then proceed to to calculations as follows: 0 yield to circumference calculations 1 yield to area calculations 2 yield to volume calculations 3 yield to all calculations and 4 exit the program commands

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
question
Computers and Technology, 23.06.2019 01:50
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors.java.
Answers: 2
question
Computers and Technology, 24.06.2019 11:30
What does the https: // mean when you type in a website
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
You know the right answer?
For problem "3", choose either 3a (25 points) or 3b (35 points). problem 3a: (20 points) based on p...
Questions
question
History, 16.10.2020 04:01
question
Mathematics, 16.10.2020 04:01
question
History, 16.10.2020 04:01
question
Social Studies, 16.10.2020 04:01
question
Mathematics, 16.10.2020 04:01
Questions on the website: 13722362