Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Specifications: - Mil code for this pregram should be coocained in ooe spp filh. - Befine a struct naned 'Conplesllumber' which should centain two

image text in transcribed
image text in transcribed
Project Specifications: - Mil code for this pregram should be coocained in ooe spp filh. - Befine a struct naned 'Conplesllumber' which should centain two double variables to bold the real and imapinary purts, - This program shoubd allew the seer ta emer nos ceeplex mimben. Lach number will be encered as tos dosbles - ene her the reul part and ene far the imaginary part. Firs aumber miered thould be nored in a vartalite nemed num2. nunber is entered. - Write functioss so perform linted nathemstical eperabans on the twe aumben entered (iumemt and aum2) and returas a Complechumber and stares the reterned Compleskunber in a varibble named remit Each of the following functions will be called in sequence in the fwo numbers entered by the ser. - ConplexNumber multiploComplenk anbersi(Complenkumber mun 2, CamplenNumber num2): - CanplesNNumber dveideCompletNambera(Compleskunber num1, CanplexNumber nami2). - Aher wach emppetatien displey the realt. - Ste Simple kan below for inpit/output requirmarits and formuting far tha program. Melphal tinkar - Link far tevirwas comples number math operations Coeglex Mumber Formala - Link fur checking resaltas Conpler Number Caladatar Sulmision Riegairemente: - Zipped Visaal Statio preject feller approprialty natsed Sample Ran an sert pape Aoina 00 Complestuinber Pige t at 2 Sample Aun: *ase Comples Numbers "**s Enter ist comples number reat and imaginary parts separated by sqace: 5.56 Mewits: Addaion Restik 1.2 Subtracticn fieiulta: 9.8si Ovislen menulte s.905593 1.60595 : Aun again ty of or any other tharacter to end? y Inter 1st comples aumber real and imaeinary parts beparated by tyate: 54 Cmter znd templew mumber real and inapinary parts fnom-aerv) separated by spoce 30 ass trictit both mumbers mat be nonkere - try againl se Sample Run: Complex Numbers Enter 1 st complex number real and imaginary parts separated by space: 5.56 Enter 2nd complex number real and imaginary parts (nen-sero) separated by space: 4.31 Results: Addition Results: -1.27 Subtraction Results: 9.855i Multiplication Results: 29.6520.3i Division Results: 0.9055931.60595i Run again ( Y or Y ) or any other character to end? y Enter 1 st complex number real and imaginary parts separated by space: 5.4 Enter 2nd complex number real and imaginary parts (non-zero) separated by space: 30 >>> ERROR: Both numbers must be non-tero --try again! e Enter 2nd complex number real and imaginary parts (non-zero) separated by space: 0.4 >o> ERROR: Both numbers must be non-zero -- try againl cec Enter 2nd complex number real and imaginary parts (non-zero) separated by space: 34 Results: Addition Results: 8 8. Subtraction Results: 2 0i Multiplication Results: 132i Division Results: 1.240.321 Run again ( y or Y ) or any other character to end? y Enter 1st complex number real and imaginary parts separated by space: 03 Enter 2nd complex number real and imaginary parts (non-zero) separated by space: 43 Results: Addition Results: 4 6i Subtraction Results: 4 OI Multiplication Results: 9 12i Division Results: 0.360.48 i Run again ( y or Y ) or any other character to end? Project c0: ComplexNumbers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions

Question

What are all the ways you count or measure customer complaints?

Answered: 1 week ago

Question

Explain the sources of recruitment.

Answered: 1 week ago

Question

Differentiate sin(5x+2)

Answered: 1 week ago

Question

Compute the derivative f(x)=1/ax+bx

Answered: 1 week ago

Question

What is job enlargement ?

Answered: 1 week ago