Write a program that allows a salesclerk to enter an item

Assignment Help C/C++ Programming
Reference no: EM13701563

Program: Write a program in C++ that allows a salesclerk to enter an item's price and the quantity purchased by a customer.

The store gives the customer a 10% discount when the quantity purchased is over 5.

The program should calculate and display the total amount the customer owes in fixed point notation with two decimal points of precision.

You need to implement a program that enters an item's price and the quantity. It must compile with no errors and follow the directions.

 

Reference no: EM13701563

Questions Cloud

Which two are valid constructors for thread : Can you tell which constructor is valid? Give the answer of given question and also give details.
Pick a labor union movement leader from the us : Pick a labor union movement leader from the US who was in the news or in power at any time between 1900 and 1970. Then, research this person and his or her contributions to the growth of unionization in the United States. After you have conclud..
Draw the logic diagram for a circuit : Draw the Logic diagram for a circuit that resolves priority among eight active-low inputs, 10_L-17_L, where 10_L has the highest priority.
Stealing and putting the company at risk for tax liability : Todd must face the possibility his best managers may be stealing and putting the company at risk for tax liability action by the IRS. The company is Jennings Department Store and their code of ethics is vague, sparse, and lacks any contact info..
Write a program that allows a salesclerk to enter an item : Write a program in C++ that allows a salesclerk to enter an item's price and the quantity purchased by a customer.
Write a matlab script and calculate the normalized scores : Write a MATLAB script that, when given a vector of numbers, nums, creates a vector newNums containing every other element of the original vector, starting with the first element.
Products-chocolate bars or bottles of expensive : Choose one of these products-chocolate bars or bottles of expensive perfume-and describe how marketers can apply their knowledge of the J.N.D. to packaging, pricing, and promotional claims during periods of (a) rising ingredient and materials c..
Values of the cf and of : assume that EAX contains a given contents before the instruction is executed, and give the contents of EAX as well as the values of the CF, OF, SF, and ZF flags after the instruction is executed:
Describe the relationship between a corporation commont : 1. Describe the relationship between a corporation's common stockholders, its board of directors, and its chief executive officer (CEO).

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Ansi-c program complete assignment as per written in the

complete assignment as per written in the attachment

  Program to declare array alpha of components of type int

Write C++ statements to do the following: Declare an array alpha of 15 components of the type int. Output the value of the tenth component of the array alpha.

  It would be cool if a device was actually part

Have you ever been low on cash and couldn't go beyond a certain dollar limit when shopping? You sort of need a calculator in your head. It would be cool if a device was actually part of the cart and as you add an item into the cart it would increm..

  Write a program to evaluate infix expressions

Write a program to evaluate infix expressions. An infix expression looks like the following:   9 * (5 - 4) + 2 / 6

  Write a function named is_prime

Write a function named "is_prime" that takes a positive integer argument and returns as its value the integer 1 if the argument is prime and returns the integer 0 otherwise.

  Describe what kind of architecture the new payroll

you have been tasked with building a payroll program for a large organization with offices spread across the united

  Wrie a program that will generate a list of 10000 numbers

Wrie a program that will generate a list of 10000 numbers stored in an array with values 1 and 500.Print out any original 200 numbers to show the results(not one number per line either).Now sort the number using bubble sort

  Modify the program in 6a so that, in addition to the cents

Modify the program in 6a so that, in addition to the cents, the user enters the denomination of the coin to which to convert the pennies, such as 5 for nickles or 25 for quarters.

  Give a recursive definition of s.

Let S be the set of positive integers that can be written as a sum of one or more 4's and/or 7's. For example, 7 ? S and 18 ? S (because 18 = 4 + 7 + 7)

  Writing a program that creates a linked list

Writing a program that creates a linked list from 100 randomly generated numbers and sorts the using a heap. One heap in ascending order and one heap in descending order. Then displays the original linked list and both sorted lists.

  Program to compute diameter in centimeters of a steel rod

Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load.

  Assume we have an array named $students

Assume we have an array named $students. Each entry in the array contains a student's full name (e.g. "Jane Smith"). Write the PHP code needed to display all students (in the array) whose first name starts with the letter "J".

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