CIS 150 Assignment 2 – Selection, output formatting– With Fully commented C++ Code – Perfect Solution – Instant Delivery

Lab Price = $9
Please feel free to send us your queries at: [email protected]
Payment methods

Add to Cart

Buy Now

View Cart


Problem Statement

CIS 150 Programming Project: Selection, output formatting
Objectives
• Use selection
• Get user input
• Perform calculations
• Demonstrate output formatting
Program requirements
1. Include documentation comments at the start of the file.
2. Follow the course style guidelines including indentation, naming conventions, spaces instead of tabs, etc.
3. Display a menu with four options as follows:
4. Convert inches to:
5. 1. feet
6. 2. yards
7. 3. centimeters
8. 4. meters
9.
10. Enter choice:
11. Get the menu choice from the keyboard.
12. If the user entered a choice not available on the menu, display an error message and end the program.
13. If the user entered a valid choice, prompt the user for and get the number of inches. This should be required to be an integer (NOT a floating point number).
14. Do the appropriate conversion and display the result with a meaningful message. Feet and yards must display integer values. Centimeters and meters must display floating-point values with one digit after the decimal point.
Conversion formulas
• To convert inches to feet the formula is: feet = inches / 12. Use modulus to get the inches left over. Display both feet and inches.
• To convert inches to yards the formula is: inches / 36. Use modulus to get the feet and inches left over. Display yards, feet and inches. Remember that the value for feet should not include those in yards.
• To convert inches to centimeters the formula is: inches / .39370. Display 1 digit to the right of the decimal point.
• To convert inches to meters the formula is: inches / 39.370. Display 1 digit to the right of the decimal point.
Example runs
Note: These example runs show several runs of the sample program.
Convert inches to:
1. feet
2. yards
3. centimeters
4. meters

Enter choice: 6
Error: Invalid menu choice
________________________________________
Convert inches to:
1. feet
2. yards
3. centimeters
4. meters

Enter choice: 1
Enter the number of inches: 27
That is 2 feet, 3 inches
________________________________________
Convert inches to:
1. feet
2. yards
3. centimeters
4. meters

Enter choice: 2
Enter the number of inches: 99
That is 2 yards, 2 feet, 3 inches
________________________________________
Convert inches to:
1. feet
2. yards
3. centimeters
4. meters

Enter choice: 3
Enter the number of inches: 27
That is 68.6 centimeters
________________________________________
Convert inches to:
1. feet
2. yards
3. centimeters
4. meters

Enter choice: 4
Enter the number of inches: 27
That is 0.7 meters
Rubric
• 2 points: Proper documentation comments
• 3 points: Follows style guidelines used in class (indentation, no tabs, variables names start with lowercase letter, etc.)
• 2 points: Menu displays properly (as shown in sample runs)
• 2 points: Program prompts user and gets menu choice from user
• 2 points: Program ends with error message for invalid menu choice
• 4 points: Inches to feet conversion done properly (to feet and leftover inches) and has meaningful result message
• 5 points: Inches to yards conversion done properly (to yards, feet and leftover inches) and has meaningful result message
• 3 points: Inches to centimeters conversion done properly and has meaningful result message
• 3 points: Inches to meters conversion done properly and has meaningful result message
• 4 points: Output formatting is integer for yards, feet, and inches, and has one digit showing after the decimal for meters and centimeters

Relevant Material
Screenshots
Assignment 2: Centimeters
Assignment 2: Centimeters

Assignment 2: Feets
Assignment 2: Feets
Assignment 2: Meters
Assignment 2: Meters
Assignment 2: Yards
Assignment 2: Yards
Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on [email protected]
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Payment Details
Lab Price = $9
Please feel free to send us your queries at: [email protected]

Payment methods

Add to Cart

Buy Now

View Cart

Leave a Reply