1. Write an object oriented program in C++ that declares a class called healthcheck to check;the health status of a...
1. Write an object oriented program in C++ that declares a class called healthcheck to check;the health status of a person based on their body mass index. The class should have the;following data members: weight(in kg), height (in meters) and BMI. It should declare;three member functions one to input the data, the other to check the status and the third to;output the status. The program accepts a user input weight & height and calculates the;BMI (Body mass index). It then determines and outputs the risk factor associated with the;BMI based on the following categories: (underweight below 18.5, normal between 18.5;and 25, overweight above 25 upto 30, obese above 30) BMI = weight/(height * height).;The program should create two objects.;2. Write a program that declares three arrays: one to hold the names of five products, the;second to hold the prices of each of the products and the third to hold the quantity of each;of the products. The program should then display the product name, its quantity, its price;and its total value. i.e Marker pen 120 10 1200.
Paper#69063 | Written in 18-Jul-2015Price : $22