Act 6 - C++ Conditional B
Act 6 - C++ Conditional B
Overview: The simplest form of flow control in C++ is the branch statement. This instruction
allows the program to decide which of two paths to take through C++
instructions, based on the results of a logical expression. The branch statement is
implemented using the if statement.
Description: Based on an automobile’s model year and weight, TPLEX determines the car’s
weight class and registration fee using the following schedule:
Requirements Using this information, write a C++ program that accepts the year and weight of
an automobile (in lbs.) and determine and display the weight class and
registration fee for a car.
Test Case
Enter Model Year: 1977
Weight (lbs) : 3000 lbs
Weight class = 5
Registration Fee = Php 440.00