F&A Diskussionen
Podrían ayudarme con esto??
0 Stimmen
1 AntwortExplain it...
0 Stimmen
2 AntwortenPi calculation on Java
-2 Stimmen
1 AntwortNo error when dividing by zero
1 Stimme
1 Antwort"Char" and "Double"
2 Stimmen
1 Antwortc++ float vs java float
2 Stimmen
2 AntwortenJava
0 Stimmen
4 AntwortenWhy Error?
0 Stimmen
1 AntwortWhat will be the output and why?
6 Stimmen
4 AntwortenDistance - c#
0 Stimmen
3 AntwortenPrime number
2 Stimmen
3 AntwortenWrite and test a program that solves quadratic equations. A
quadratic equation is an equation of the form ax2+ bx + c =0 ,where a,b and c are given coefficient and x is the unknown The coefficients are real number inputs ,so they should be declared of type float or double Since quadratic equations typically have two solutions ,use x1 and x2 for the solutions to be output These should be declared of type double to avoid inaccuracies from round-off error
-1 Stimme
3 Antworten#include <iostream>
using namespace std;
class employee
int main()
{
private:
double salary;
public:
void getsalary(double sal)
{
salary=sal;
}
void display()
{
cout<<"the salary:"<<salary;
}
};
void main ()
{
employee programmer;
employee manager;
manager.getsalary (60000.0);
programmer.getsalary(40000.0);
manager.display();
programmer.display();
return 0;
}
1 Stimme
5 AntwortenWhat does "Double" mean in C++?
0 Stimmen
1 AntwortString
0 Stimmen
2 AntwortenHeute heiß
Pig Latin
0 Votes
Someone can help me
1 Votes
What's wrong with this?
2 Votes
I’m new someone can help me
1 Votes
HTML community, HELP!!
1 Votes
I am a super beginner
0 Votes
What's doctype htMl
2 Votes
How this program executes?
0 Votes
Pls give me an idea
1 Votes