subject

Write a program that reads in two double numbers followed by an integer (say n). the goal of the program is to check if the two numbers are equal to n significant digits
the input will be one or more lines of three numbers. the first two numbers are doubles and represent the two numbers that are to be compared. the third number is an integer and represents the number of significant digits to check (for equality of the two numbers).
the output will show the difference up to 10 decimal places (as shown in sample output) and then whether the numbers are equal or not.
sample input
1.112 1.113 2
1.123 1.124 3

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:40, math31343
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
image
Computers and Technology, 23.06.2019 02:50, bfell92
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
image
Computers and Technology, 23.06.2019 04:20, RandomLollipop
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, victordhernandez01
Jake really works well with numbers and is skilled with computers but doesn't work well with others. which of the jobs discussed in this unit might be best for jake? why?
Answers: 3
You know the right answer?
Write a program that reads in two double numbers followed by an integer (say n). the goal of the pro...

Questions in other subjects: