Develop a c++ program that implements your algorithm

Assignment Help Electrical Engineering
Reference no: EM132075063

A salon offers coupons to its customers time to time. Without coupons adult haircut is 15.50 and the child haircut is 10.50. Coupons that this salon offers are color coded. The following table shows the color code and discount information

Color code Discount

Green

(code#1) 3.50 from adult, 2.50 from kids

Blue

(code #2) 2.59 from adult, 1.50 from kids

i need help writing a C++ program that asks the user to enter the coupon color and the haircut type (adult, kid) and then determine the haircut charge. It is possible that a customers may not have a coupon, in that case, no discount will be offered. You can assume that green, blue colors are represented using 1 and 2 respectively. Develop a C++ program that implements your algorithm

Reference no: EM132075063

Questions Cloud

Differences between loops and conditional statements : What are the differences between loops and conditional statements?
How do we know when we need to use one or the other : Loop statements come in two basic varieties, pretest and posttest. What is the difference between these two varieties?
Describe the three elements that must be included : Describe the three elements that must be included in order for a loop to perform correctly. What will happen if these statements are not included?
Writing modular programs and what are the disadvantages : Need help explaining what a modular program is, the advantages of writing modular programs and what are the disadvantages?
Develop a c++ program that implements your algorithm : You can assume that green, blue colors are represented using 1 and 2 respectively. Develop a C++ program that implements your algorithm
What logic would you use for a basic array-access algorithm : What logic would you use for a basic array-access algorithm: traversing a one-dimensional Integer array from its first element to the last and finding the small
Life-cycle of a program : Are there any mechanism in C++ code to handle and address errors which occur during the life-cycle of a program.
Multiple and virtual inheritances within the code : While still using multiple and virtual inheritances within the code.
Member functions and a default constructor : Listnode can have link list class with two member functions and a default constructor such as void add (double x);

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Summarize the raw data from calibrating your salinity sensor

2. Complete the electrical power system for the fish tank. At the start of class, the instructor will evaluate your electrical power system according to Checklist 2, which is available on the Homework page of the class web site. Individual Assign..

  Find potential energy of upper reservoir nd min amount

The Dinorwig pumped storage hydroelectric facility in Northern Wales utilizes an abandoned slate quarry named Marchlyn Mawr as the upper reservoir. 600 meters below the Llyn-Peris lower reservoir can be found. The plant contains six 288MW generato..

  Determine some of the mixing spurs in the architecture

Determine some of the mixing spurs in the architecture of Fig.

  Conclude p must be midway between the particles.

Two point particles, 1 with charge +8*10^-9C and the other with charge -2*10^-9C, are separated by 4m.

  How much of the inductance is due to internal flux linkages

How much of the inductance is due to internal flux linkages? Assume skin effect is negligible

  Write a program to count the number of elements in an array

Write a program to count the number of elements in an array whose bits 3, 4, and 7 are zeros. The array has N 8-bit elements and is stored in memory locations starting from $1000

  What is the first step you should take to solve the formula

006014RR- Take a look at the figure. What is the first step you should take to solve the formula? What is the average number of hours you worked in one week? Which one of the following distances is the longest?

  You want to generate a sinusoidal signal which frequency

you want to generate a sinusoidal signal which frequency f varies continuously and parabolically from 500 hz to 3500

  Determine the average probability of error

A binary PAM communication system is used to transmit data over an A WGN channel. The prior probabilities for the bits are P (am= 1) = 1/3 and P (am = - 1) = 2/3.

  Find the 3-db frequency of the cmrr of a mosfet

A MOSFET differential amplifier such as that is biased with a current source I=200uA. The transistors have W/L=25, k'n=200uA/V^2, VA=200 V, Cgs=40 fF, Cgd=5 fF, and Cdb=5 fF. The drain resistors are 20k-ohm each.

  Find and plot the autocorrelation function of the output

Find and plot the autocorrelation function of the output. --  Find and plot the output PSD. -  Find the output SNR.

  Find the transfer function and difference equation

A second-order bandstop filter is required to satisfy the following specifications: fs= 8,000 Hz f0= 60 Hz bandwidth= 40 Hz Find the transfer function and difference equation by the pole- zero placement method.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd