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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x,y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documentation/point2d.html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
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
question
Mathematics, 15.01.2021 20:50
question
Mathematics, 15.01.2021 20:50
question
Mathematics, 15.01.2021 20:50
question
Mathematics, 15.01.2021 20:50
question
Mathematics, 15.01.2021 20:50
question
Chemistry, 15.01.2021 20:50
question
Mathematics, 15.01.2021 20:50
question
Mathematics, 15.01.2021 20:50
Questions on the website: 13722360