Computes the final price for a sales transaction

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

Create a C program that contains a function that computes the final price for a sales transaction and return that value to a calling method.

The function requires three arguments: product price, salesperson commission rate and customer discount rate. A product final price is the original price plus the commission amount minus the discount amount; the customer discount is taken as a percentage of the total price after the salesperson commission has been added to the original price.

Write a main( ) method that prompts the user for the price of an item, the salesperson commission expressed as a percentage, and the customer discount expressed as a percentage and that then passes the values to the function.

Reference no: EM13322819

Questions Cloud

Write the expression for the charge on the capacitor plate : At time t=0 the capacitor is charged to 200uC,and the current is 0,write the expression for the charge on the capacitor s plate as the time function ?
The biconditional statement p?q is false : The biconditional statement p↔q is false
Explain kclo3 decomposes into kcl and o2 : When Heated, KClO3 decomposes into KCl and O2. 2KClO3 arrow 2KCl+3O2 If this reaction produced 25.8 g of KCl, how much O2 was produced (in grams)
At what rate must the magnetic field change : At what rate must the magnetic field change with the time if an induced current of 10 A is to appear in the loop?The resistivity of copper is 1.7X10^-8 ohm.
Computes the final price for a sales transaction : Create a C program that contains a function that computes the final price for a sales transaction and return that value to a calling method.
Explain hc3h5o2(aq) to obtain a solution with ph=4.7 : How many moles of NaOH must be added to 0.550 L of 0.191 mol/L HC3H5O2(aq) to obtain a solution with pH=4.7. Assume the temperature is 25oC. (For HC3H5O2, pKa=4.89 at 25oC).
Write ieee floating point representation of the following : Write IEEE floating point representation of the following decimal numbers.
What is the largest positive number you can represent : With this number of bits, what is the largest unsigned number you can represent? (Please give answer in both decimal and binary).
Convert these decimal numbers to 8-bit 2s complement binary : Convert these decimal numbers to 8-bit 2's complement binary numbers.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  To reverse the order of elements on a stack

Write a program in C++ to  reverse the order of elements on a stack S using two additional stacks using one additional stack

  Write a c++ program that would take two 3x3 matrix

Write a C++ program that would take two 3x3 matrix and outputs the results of adding, subtracting and multiplying two matrices. Create at least three functions: one that performs addition,

  Attribute information about an array of floating point

Write a program that contains a main function and three other functions that will return various attribute information about an array of floating point

  Use numbers 0 through 23 to represent hours

Write a C function seconds_since_jan1() that takes the time as six integer arguments (year, month, day, hour,minute, and second) and returns the number of seconds since the beginning of the year. Use numbers 1 through 12 to represent months. Use numb..

  Implement method to advance any given date by one day

Write C++ implementation of this method. Create and specify any other methods that you require. Include comments which will be helpful to someone who will maintain implementation in the future.

  Dynamically allocates an array large enough

Write a program that dynamically allocates an array large enough to hold a number of test score. The size of the array should be input by the user

  Your city''s parking violation

Your city's Parking Violation Bureau wants you to write a program to compute fines for parking violations.

  We can combine assignment statements

We can combine assignment statements, for-loops, and if statements to perform a wide range of tasks with lists. Suppose we have a bookstore with each book defined as follows: Book = namedtuple('Book', 'author title genre year price instock') , wher..

  Write a c function void print_triangle(int n)

Write a C function void print_triangle(int n) that prints a triangular pattern of asterisks of height n and width 2 * n + 1 with one asterisk in the first line, three in the second line, etc.,

  A company hired 10 temporary workers

A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee.

  Write a program that allows a user to enter 12 double values

Write a program that allows a user to enter 12 double values representing store sales for each month of one year. After all 12 values are entered,

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

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