Set hasDigit to true if the 3-character passCode contains a digit.
Prepare 5 mathematical functions (add , minus , multiply , divison , average) with two passing parameters and a return value for two numbers entered by the user. Display the result in following format.
Must include :
Game Plan Fitness club requires a system that will help their members keep up to date with
their BMI after each training session. The system will allow users to enter their weight and
height and then calculate each member’s BMI, the system must determine their health status
based on the BMI. Use the formula BMI=wieght/(height)^2 , assuming that height is entered
in meters and weight is entered in kilograms. Create a function that calculate the BMI, and
use a post test loop with weight of -1 to terminate the loop.
BMI Health status
Less than 18.4 Underweight
Between 18.5 and 24.9 Healthy weight
Between 25.0 and 29.9 Overweight
Greater than 30.0 Obesity
Game Plan Fitness club requires a system that will help their members keep up to date with their BMI after each training session. The system will allow users to enter their weight and height and then calculate each member’s BMI, the system must determine their health status based on the BMI. Use the formula BMI=wieght/(height)^2 , assuming that height is entered in meters and weight is entered in kilograms. Create a function that calculate the BMI, and use a post test loop with weight of -1 to terminate the loop.
The table below shows the BMI and Health status
BMI Health status
Less than 18.4 Underweight
Between 18.5 and 24.9 Healthy weight
Between 25.0 and 29.9 Overweight
Greater than 30.0 Obesity
Game Plan Fitness club requires a system that will help their members keep up to date with their BMI after each training session. The system will allow users to enter their weight and height and then calculate each member’s BMI, the system must determine their health status based on the BMI. Use the formula BMI=wieght/(height)^2 , assuming that height is entered in meters and weight is entered in kilograms. Create a function that calculate the BMI, and use a post test loop with weight of -1 to terminate the loop.
You must read this input file (IncomeRec.txt) and store the records of gross incomes into appropriate arrays. 2. Your program should then be able to process the following commands. i.e. program should provide user with the following menu. ▪ 1. Print the entire list. ▪ 2. Print list sorted by Gross income. ▪ 3. Print list of employees which match a given lastname initial ▪ 4. Calculate: a) the Tax corresponding to the provided gross income of each employee using Table 1; and b) the Net Income and c) Print in a file called IncomeTax.txt where the tax and Net income are displayed in separate columns. [NB. The tax is calculated according to the Tax Calculation Table provided and the Net Income = Gross income – Tax] ▪ 5. Exit program by enter 5
Implement Java code to compare two characters for a competition.
Attribute 1 of character 1 will be numeric, and attribute 2 will be textual
At Mr. G school of Programming, the final school fees to be paid is calculated as follows.
Write a program the calculates the final total fees to be paid.
Program must request user to enter original fees value greater then R50 000.
Program should also request user to enter amount to deposit before calculating final total fees.
Write a C Program to Rent a cycle on hourly basis
Per hour charges. Rs. 90 /hour
10 bicles
25 clients
90 per hr charges
Reports
Monthly bill of all cyclists
Every client don't take cycle on rent at daily basis but Can take regular and more than one hour daily
Consider the class of points in the xy plane. The location of each point is determined by the real numbers (x, y) specifying the cartesian coordinates. The class definition is: #include using namespace std; class point{ public: point(); point(double value_x, double value_y); double get_x() const; double get_y() const; void print() const; void move(double dx, double dy); private: double x, y; }; point::point(){ x = 0.0; y = 0.0;} point::point(double a, double b){ x = a; y = b; } void point::print() const{ cout< A = point(1, 2); A.print(); A.move(4, -5); A.print(); pointB(3.2, 4.9); cout << B.get_x() <<""<< B.get_y() << endl ; point C("day", "young"); C.print(); C.move("s","ster"); C.print(); return 0;