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 01:00
Duplicating objects creates copies that a. move differently than the original object b. erase the original object c. look and act like the original object d. add events to a game
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percΓ© tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
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
Mathematics, 19.03.2020 09:09
Questions on the website: 13722359