Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

does anyone know how do do this problem? its a basic C + + lab for cist 1 3 0 5 . It is a

does anyone know how do do this problem? its a basic C++ lab for cist 1305. It is a pre-written C++ program. You have to type the answer (code) into the program. You can't erase anything. At the bottom of the pictures I supplied an the code that has to be written jnto.
Companion x
How to Use the Code Editor
Select the "Run Code" button to execute the program.
Select the "Calculate Grade" button to-generate a score based on the completed tasks.
Continue to modify, run, and calculate your code until you are happy with the grade.
Select the "Submit" button to turn in the assignment to your instructor.
ompanion x
instructor:
Your Tasks
In this lab, you complete a pre-written C++ program for a carpenter who creates personalized house signs. The program is supposed to compute the price of any sign a customer orders, based on the following facts:
The charge for all signs is a minimum of $35.00.
The first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character.
If the sign is made of oak, add $20.00. No charge is added for pine.
Black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering.
Instructions
Task 1: You need to declare variables for the following, and initialize them where specified:
A variable (charge) for the cost of the sign initialized to 0.00.
A variable (numchars) for the number of characters initialized to 8.
A variable (color) for the color of the characters initialized to "gold".
A variable (woodType) for the wood type initialized to "oak".
Task 2 Write the rest of the program using assignment statements and if statements as appropriate. The output statements are written for you.
An example of the program is shown below:
The charge for this sign is $82
G. HouseSign.cpp >...
// HouseSign.cpp - This program calculates prices for custom made signs.
#include
image text in transcribed

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

Students also viewed these Databases questions