Chat with us, powered by LiveChat Question C++ Project Assignment 1: Programming Exer | Writedemy

Question C++ Project Assignment 1: Programming Exer

Question C++ Project Assignment 1: Programming Exer

Question
C++ Project

Assignment 1: Programming Exercise a. Write pseudocode or draw a flow chart to figure out each problem b. Individual problem should be worked in different console application c. Collect all .cpp files in a single folder named Assignment1 d. Zip the folder and upload on canvas 1: Roman Numeral Converter Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Roman numeral version of that number. Input Validation: Do not accept a number less than 1 or greater than 10.

2. The Speed of Sound The speed of sound depends on the material the sound is passing through. Below is the approximate speed of sound (in feet per second) for air, water and steel: air: 1,100 feet per second water: 4,900 feet per second steel: 16,400 feet per second Write a program that displays a menu allowing the user to select air, water, or steel. After the user has made a selection, he or she should be asked to enter the distance a sound wave will travel in the selected medium. The program will then display the amount of time it will take. Menu. The menu should look exactly like this: Select a medium: 1. Air 2. Water 3. Steel Enter your choice: 4.18:The Speed of Sound The speed of sound depends on the material the sound is passing through. Below is the approximate speed of sound (in feet per second) for air, water and steel: air: 1,100 feet per second water: 4,900 feet per second steel: 16,400 feet per second Write a program that displays a menu allowing the user to select air, water, or steel. After the user has made a selection, he or she should be asked to enter the distance a sound wave will travel in the selected medium. The program will then display the amount of time it will take. Menu. The menu should look exactly like this: Select a medium: 1. Air 2. Water 3. Steel Enter your choice: 3: Geometry Calculator Write a program that displays the following menu: Geometry Calculator 1. Calculate the area of a Circle 2. Calculate the area of a Rectangle 3. Calculate the area of a Triangle 4. Quit Enter your choice (1-4): If the user enters 1, the program should ask for the radius of the circle and then display its area. Use the following formula: area = p(the square of r) Use 3.14159 for p and the radius of the circle for r. If the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. Use the following formula: area = length * width If the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. Use the following formula: area = base * height * .5 If the user enters 4, the program should end. Input Validation: Display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. Do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. NOTE: If the user enters an improper menu choice (1-4), the program prints “The valid choices are 1 through 4. Run the program again and select one of those.” If the user enters a negative radius, the program prints “The radius can not be less than zero.” If the user enters a negative value for height or base, the program prints “Only enter positive values for base and height.”

4. Software Sales A software company sells a package that retails for $99.00. Quantity discounts are given according to the following table: Quantity Discount 10-19 20% 20-49 30% 50-99 40% 100 or more 50% Write a program that asks the user to input number of units sold and computes the total cost of purchase. Input validation: Make sure number of units is greater than 0.

5. Write a program that asks for the number of calories and fat grams in a food. The program should display the percentage of calories that come from fat. If the calories from fat are less than 30% of the total calories of the food, it should also display a message indicating food is low in fat. One gram of fat has 9 calories, so calories from fat = fat grams * 9 The percentage of calories from fat can be calculated as Calories from fat / total calories. Input validation: Number of calories and fat grams can never be less than 0 Also Calories from fat cannot be greater than total number of calories In both cases display an error message

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order