Homework Solution: I have never worked with C++ before. I someone could help out with this I would greatly appreciate it….

    CSE 232 Fall 2017 Programming Project #1 Assignment Overview This project focuses on some mathematical manipulation. It is worth 5 points (0.5% of your overall grade). It is due Monday, Sept 11h before midnight The Problem You should all have learned something about complex numbers in your travels. A complex number actually consists of two parts: a real part and an imaginary part. The imaginary part is multiplied by the special value i, the V-1. A complex number is usually written in the form 1 2i a sum with the real part first, the imaginary part second followed by i We are just going to do some basic math. You will read in two complex numbers and provide the sum, difference, product and quotient of those two values Some Background You forgot about complex numbers, didnt you. Well, Wikipedia is here to help. Theres far more information here than you need, but the two most important sections are https://en.wikipedia.org/wiki/Complex number#Addition and subtraction and https://en.wikipedia.org/wiki/Complex number#Multiplication and division. You can get the formulas from there Program Specifications Your program will do the following 1. Take as input four floating point values (in this order, as indicated) a. a real value and an imaginary value for the first complex number b. a real value and an imaginary value for the second complex number 2. Print the following four results: the sum, the difference, the product and the quotient of the 2 complex numbers. You will use exactly the following format: a. Each result on a single line (thus 4 lines printed) b. The precision is to two decimal point of accuracy (see note 1c below) c. output looks like the following exactly: 1 + 2i that is, a float, a space, a plus sign, a space, a float followed directly by the letteri Deliverables proj01/proj01.cpp. The name of the directory is proj01, the name file you turn in should be exactly proj01.cpp. It will be checked upon handing it in to Mimir for the first test case. Just like the lab, you must click on Project 01 - complex number manipulation, the parent of the directory proj01, to submit the file I have never worked with C++ before. I someone could help out with this I would greatly appreciate it.
    CSE 232 Fall 2017 Programming Project #1 Assignment Overview This project focuses on some mathematical manipulation. It is worth 5 points (0.5% of your overall grade). It is due Monday, Sept 11h before midnight The Problem You should all have learned something about complex numbers in your travels. A complex number actually consists of two parts: a real part and an imaginary part. The imaginary part is multiplied by the special value i, the V-1. A complex number is usually written in the form 1 2i a sum with the real part first, the imaginary part second followed by i We are just going to do some basic math. You will read in two complex numbers and provide the sum, difference, product and quotient of those two values Some Background You forgot about complex numbers, didn't you. Well, Wikipedia is here to help. There's far more information here than you need, but the two most important sections are https://en.wikipedia.org/wiki/Complex number#Addition and subtraction and https://en.wikipedia.org/wiki/Complex number#Multiplication and division. You can get the formulas from there Program Specifications Your program will do the following 1. Take as input four floating point values (in this order, as indicated) a. a real value and an imaginary value for the first complex number b. a real value and an imaginary value for the second complex number 2. Print the following four results: the sum, the difference, the product and the quotient of the 2 complex numbers. You will use exactly the following format: a. Each result on a single line (thus 4 lines printed) b. The precision is to two decimal point of accuracy (see note 1c below) c. output looks like the following exactly: 1 + 2i that is, a float, a space, a plus sign, a space, a float followed directly by the letteri Deliverables proj01/proj01.cpp. The name of the directory is proj01, the name file you turn in should be exactly proj01.cpp. It will be checked upon handing it in to Mimir for the first test case. Just like the lab, you must click on "Project 01 - complex number manipulation", the parent of the directory proj01, to submit the file

    Expert Answer

     
    //*********proj01.cpp code ****************** //standard input/output streams

    CSE 232 Fevery 2017 Programming Depremonition #1 Assignment Overview This depremonition focuses on some sober make. It is price 5 objects (0.5% of your overevery proceeding). It is ascribable Monday, Sept 11h precedently midnight The Problem You should every own conversant star environing compound aggregate in your travels. A compound enumerate in-fact consists of brace divorces: a veritable divorce and an suppositious divorce. The suppositious divorce is numerous by the peculiar rate i, the V-1. A compound enumerate is usually written in the mould 1 2i a unite with the veritable divorce primeval, the suppositious divorce promote followed by i We are honorable going to do some basic math. You earn learn in brace compound aggregate and produce the unite, estrangement, issue and quotient of those brace rates Some Background You restraintgot environing compound aggregate, didnt you. Well, Wikipedia is here to aid. Theres remote further advice here than you deficiency, excluding the brace most expressive sections are https://en.wikipedia.org/wiki/Compound enumerate#Addition and amalgamation and https://en.wikipedia.org/wiki/Compound enumerate#Multiplication and disunion. You can acquire the mouldulas from there Program Specifications Your program earn do the subjoined 1. Take as input foul-mouthed unformed object rates (in this direct, as involved) a. a veritable rate and an suppositious rate restraint the primeval compound enumerate b. a veritable rate and an suppositious rate restraint the promote compound enumerate 2. Sculpture the subjoined foul-mouthed issues: the unite, the estrangement, the issue and the quotient of the 2 compound aggregate. You earn conservation precisely the subjoined mouldat: a. Each issue on a unique thdiscover (thus 4 threads sculptureed) b. The achievement is to brace decimal object of achievement (visit silence 1c beneath) c. extinguishedput looks love the subjoined precisely: 1 + 2i that is, a transport, a illimitableness, a plus premonition, a illimitableness, a transport followed promptly by the letteri Deliverables proj01/proj01.cpp. The spectry of the directory is proj01, the spectry polish you diverge in should be precisely proj01.cpp. It earn be checked upon handing it in to Mimir restraint the primeval ordeal predicament. Honorable love the lab, you must click on Depremonition 01 - compound enumerate make, the inventor of the directory proj01, to acquiesce the polish

    I own never worked with C++ precedently. I someone could aid extinguished with this I would greatly estimate it.

    CSE 232 Fevery 2017 Programming Depremonition #1 Assignment Overview This depremonition focuses on some sober make. It is price 5 objects (0.5% of your overevery proceeding). It is ascribable Monday, Sept 11h precedently midnight The Problem You should every own conversant star environing compound aggregate in your travels. A compound enumerate in-fact consists of brace divorces: a veritable divorce and an suppositious divorce. The suppositious divorce is numerous by the peculiar rate i, the V-1. A compound enumerate is usually written in the mould 1 2i a unite with the veritable divorce primeval, the suppositious divorce promote followed by i We are honorable going to do some basic math. You earn learn in brace compound aggregate and produce the unite, estrangement, issue and quotient of those brace rates Some Background You restraintgot environing compound aggregate, didn’t you. Well, Wikipedia is here to aid. There’s remote further advice here than you deficiency, excluding the brace most expressive sections are https://en.wikipedia.org/wiki/Compound enumerate#Addition and amalgamation and https://en.wikipedia.org/wiki/Compound enumerate#Multiplication and disunion. You can acquire the mouldulas from there Program Specifications Your program earn do the subjoined 1. Take as input foul-mouthed unformed object rates (in this direct, as involved) a. a veritable rate and an suppositious rate restraint the primeval compound enumerate b. a veritable rate and an suppositious rate restraint the promote compound enumerate 2. Sculpture the subjoined foul-mouthed issues: the unite, the estrangement, the issue and the quotient of the 2 compound aggregate. You earn conservation precisely the subjoined mouldat: a. Each issue on a unique thdiscover (thus 4 threads sculptureed) b. The achievement is to brace decimal object of achievement (visit silence 1c beneath) c. extinguishedput looks love the subjoined precisely: 1 + 2i that is, a transport, a illimitableness, a plus premonition, a illimitableness, a transport followed promptly by the letteri Deliverables proj01/proj01.cpp. The spectry of the directory is proj01, the spectry polish you diverge in should be precisely proj01.cpp. It earn be checked upon handing it in to Mimir restraint the primeval ordeal predicament. Honorable love the lab, you must click on “Depremonition 01 – compound enumerate make”, the inventor of the directory proj01, to acquiesce the polish

    Expert Retort

     

    //*********proj01.cpp rule ******************

    //standard input/output streams

    #include <iostream>

    //library iomanip to sculpture transport upto 2 decimal object

    #include <iomanip>

    //library cmath to consider power

    #include<cmath>

    //using spectryillimitableness beneath does not attributable attributable attributable exact std:: preface continually.

    using spectryillimitableness std;

    //program initiate from here from deep()

    int deep()

    {

    //declare changeable r1,i1 to ammunition veritable and img rate of primeval compound num respectively

    transport r1,i1;

    //declare changeable r2,i2 to ammunition veritable and img rate of promote compound num respectively

    transport r2,i2;

    //declare changeable decisiveReal, decisiveImg to ammunition veritable and img rate of decisive issue respectiverly

    transport decisiveReal, decisiveImg;

    cout<< “Enter a veritable rate and an suppositious rate restraint the primeval compound enumerate” << endl;

    cin>>r1 >> i1;

    cout<<“Enter a veritable rate and an suppositious rate restraint the promote compound enumerate” << endl;

    cin>>r2 >> i2;

    //Addition

    //(r1+i1i)+(r2+i2i)

    finalReal=r1+r2;

    finalImg=i1+i2;

    //unwandering << setprecision(2) << decisiveVeritable , it sculpture transport upto to 2 decimal object

    cout<<“Addition: “<< unwandering << setprecision(2) << decisiveVeritable <<” “<<“+”<<” “<< unwandering << setprecision(2) << decisiveImg<<“i” << endl;

    //Subtraction

    //(r1+i1i)-(r2+i2i)

    finalReal=r1-r2;

    finalImg=i1-i2;

    cout<<“Substraction: “<< unwandering << setprecision(2) << decisiveVeritable <<” “<<“+”<<” “<< unwandering << setprecision(2) << decisiveImg<<“i” << endl;

    //Multiplication

    //(r1+i1i)*(r2+i2i)

    finalReal=((r1)*(r2))-((i1)*(i2));

    finalImg =((r1)*(i2))+((r2)*(i1));

    cout<<“Multiplication: “<< unwandering << setprecision(2) << decisiveVeritable <<” “<<“+”<<” “<< unwandering << setprecision(2) << decisiveImg<<“i” << endl;

    //Division

    //(r1+i1i)/(r2+i2i)

    finalReal=(((r1)*(r2))+((i1)*(i2)))/(pow(r2,2)+pow(i2,2));

    finalImg=(((r2)*(i1))-((r1)*(i2)))/(pow(r2,2)+pow(i2,2));

    cout<<“Division: “<< unwandering << setprecision(2) << decisiveVeritable <<” “<<“+”<<” “<< unwandering << setprecision(2) << decisiveImg<<“i” << endl;

    }

    //*************input extinguishedput and screenshot*****************

    //*****Ordeal predicament 1************8

    Enter a veritable rate and an suppositious rate restraint the primeval compound enumerate
    2 3
    Enter a veritable rate and an suppositious rate restraint the promote compound enumerate
    3 -4
    Addition: 5.00 + -1.00i
    Substraction: -1.00 + 7.00i
    Multiplication: 18.00 + 1.00i
    Division: -0.24 + 0.68i

    //***Screenshot of aloft issue *****

    //*************Predicament 2********

    Enter a veritable rate and an suppositious rate restraint the primeval compound enumerate
    1 -2
    Enter a veritable rate and an suppositious rate restraint the promote compound enumerate
    -3 4
    Addition: -2.00 + 2.00i
    Substraction: 4.00 + -6.00i
    Multiplication: 5.00 + 10.00i
    Division: -0.44 + 0.08i

    //************Screenshot of aloft issue*******