Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

Use of assessments to determine trainees learning styles.

Answered: 1 week ago

Question

7. Discuss the advantages of embedded learning.

Answered: 1 week ago