/*********************************************************** IP_Program9.ch Introduction to Ch This program finds out how many hours must Mai work in order to earn $132, assuming that she earns $5.50 per hour. ************************************************************ Copyright 2014 SoftIntegration Inc. http://www.softintegration.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ***********************************************************/ // initialize variables double earnings; int hours; // assign variables values earnings = 0; hours = 0; // while earnings are less than 132, run loop while (earnings < 132) { earnings = earnings + 5.5; // increase earnings hours = hours + 1; // increase hours } // prints answer to screen printf("Mai must work %d hours.\n", hours);