The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
The following code should be put into a class Calculus and thus a file Calculus.java Your friend is taking calculus and is having a hard time taking derivatives and integrals. Unfortunately (s)he has an assignment due tomorrow that forces him to take hundreds of derivatives and integrals. You, as a new computer science student, realize that you can help by providing a computer program that will calculate derivatives and integrals. Write a Java program that does the following: 1. Display a prompt and ask the user to enter his or her name. 2. Display a prompt and ask the user to enter three integers, called a,b,c respectively. These numbers will represent the coefficients of a quadratic equation: ax2 + bx + c 3. Print the formula they have entered on the screen. 4. Next print to the screen the derivative of the equation as a formula. For a quadratic equation above, the derivative will be 2ax + b
Your output should fill in the actual values for a and b and perform any necessary multuplications.
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- Th-----------ank----------- Yo-----------u f-----------or -----------usi-----------ng -----------our----------- we-----------bsi-----------te -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill-----------