Posts

Showing posts with the label personal project

House Area Calculator

  #include <bits/stdc++.h> using namespace std ; float converter ( float n){ int intpart = ( int )n ; float decpart = (n - intpart)* 10 ; decpart = decpart/ 12 ; float sum = intpart + decpart ; return ( float )sum ; } int main (){ cout << "__________House Area Calculator_________ " << ' \n ' ; cout << "Note :- Only give values in Feet & Inches" << ' \n ' ; cout << "Some Examples on how to enter values" << ' \n ' ; cout << "1) 5.6 --Here 5 is in Feet's and 6 is in inches" << ' \n ' ; float kitchen_length , feet_kitchen_length ; float kitchen_width , feet_kitchen_width ; float hall_length , feet_hall_length ; float hall_width , feet_hall_width ; float bedroom1_length , feet_bedroom1_length ; float bedroom1_width , feet_bedroom1_width ; float bedroom2_length , feet_bedroom2_length ; float ...