Write MeasurementCmp function that takes two loTmeasurement structures as parameters and compares them. The comparison assumes that first, we compare humidities, and when the comparison will not determine the result (humidities for both structures are equal), the sum of characters in classification tags are compared. For example, having the structures: S1 with humidity = 10.0 and classification tag = "aab" S2 with humidity = 10.0 and classification tag = "ccad" S3 with humidity = 8.0 and classification tag = "xxx" The results are: S1 is smaller than S2
Write MeasurementCmp function that takes two loTmeasurement structures as parameters and compares them. The comparison assumes that first, we compare humidities, and when the comparison will not determine the result (humidities for both structures are equal), the sum of characters in classification tags are compared. For example, having the structures: S1 with humidity = 10.0 and classification tag = "aab" S2 with humidity = 10.0 and classification tag = "ccad" S3 with humidity = 8.0 and classification tag = "xxx" The results are: S1 is smaller than S2
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images