Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Declare double variables num1, den1, num2, and den2, and read each variable from input in that order. Find the sum of the fractions num 1/

image text in transcribed
image text in transcribed
Declare double variables num1, den1, num2, and den2, and read each variable from input in that order. Find the sum of the fractions num 1/ den 1 and num 2/ den 2 and assign the result to fractionTotal. Ex. If the input is 2.51.53.52.0, then the output is: 3.42 Note: Assume that den1 and den 2 will not be 0 . The program reads the string variables my Name and className from input. Output the following, using variables myName and className. End with a newline. Ex: If the input is Eve Entomology, then the output is: Eve is studying Entomology

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

=+Show that un is finitely additive and countably subadditive on o.

Answered: 1 week ago

Question

assess the infl uence of national culture on the workplace

Answered: 1 week ago