Assistance Required** C++ HW Assignment

closed account (1RiLb7Xj)
//My professor gave me a prompt of some code, however, he only gave me the beginning and the end and the output. The goal is to figure out the missing code that gives the output.

***PROMPT:
#include <iostream>
#include <iomanip>

using namespace std;

int main ()
{
int B = -5;
int A = -4;

double real = [ In this box fill out code that will compute real ratio of
B/A, which will become the value of variable real]

double imag = 0.66144;

// Fill out all required missing code lines that would cause the output below and uses real and imag variables in output.


}

// Required output is below:
// Complex rumber roots are : X1 = 1.2500e+000 + (6.6144e-001)*I
and. X2 = 1.2500e+000 - (6.6144e-001)*I


// Just need an idea on how to start, please help I have no idea how to start, and my professor is not a good resource for questions as he is very traditional and mean. I've tried asking my friends and have no leads. Any help is great!!
> my professor is not a good resource for questions
i bet you didn't even tried

double real = double(B)/A; //1.25, by the way
Topic archived. No new replies allowed.