Question: C Programming- Three Fun Programs #include ONLY PLEASE Write a program for a furniture company that determines the price of a table. Write a void

C Programming- Three Fun Programs

#include ONLY PLEASE

Write a program for a furniture company that determines the price of a table. Write a void function displayHeader() that displays the name of the company (CodeVans Furniture Store) and present the menu for pine, oak, or mahogany. In main, ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany and ask them to enter a for a small table, or b for a large table. Pass these two values to a function called cost() that outputs the name of the wood chosen as well as the price of the table. Pine tables cost $100, Oak tables cost $225, and Mahogany tables cost $310.00. Add $65 to the cost for a large table. If the user enters an invalid option, print an error message and reprompt them to enter a correct choice. Call this program A6_1.

Write a program that counts by five from 5 through 200 inclusive, and that starts a new line after every multiple of 50 (50, 100, 150, and 200). Write this three different times, once with a while loop, once with a do while loop, and once with a for loop. Call this program A6_2.

Write a program where the user tries to guess a number. Generate a random number and the player will guess until they get the right answer. The program should tell them is the guess is too high, too low, or correct. When the user guesses the correct number, print out the count of how many attempts it took. Call this program A6_3.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!