Thread: create a C++ program that uses the object-oriented programming style

  1. #1
    Registered User
    Join Date
    Apr 2020
    Posts
    1

    Arrow create a C++ program that uses the object-oriented programming style

    Create either a C++ application that will accept the following information from its user:
     Employee Id
     Employee Name
     Sales Code
    o if sales code is A, gross earned amount is 175 + 50% of the sales amount
    o if sales code is B, gross earned amount is 100 + 20% of the sales amount
     Sales Amount
    As a reward for those who are very good in product marketing, if the sales amount is greater than 2500,
    an additional sales commission is 5% of sales amount. Take home pay is the summation of gross earned
    amount and commission (if any).Create either a C++ application that will accept the following information from its user:
     Employee Id
     Employee Name
     Sales Code
    o if sales code is A, gross earned amount is 175 + 50% of the sales amount
    o if sales code is B, gross earned amount is 100 + 20% of the sales amount
     Sales Amount
    As a reward for those who are very good in product marketing, if the sales amount is greater than 2500,
    an additional sales commission is 5% of sales amount. Take home pay is the summation of gross earned
    amount and commission (if any).

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,163
    1. This is the C part, not the C++ part.

    2. We don't do entire homework assignments with zero effort from 1-posters.
    https://cboard.cprogramming.com/cplu...uncements.html

    Try again, this time posting your C++ question on the C++ forum.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-07-2017, 11:35 AM
  2. What is Object Oriented Programming?
    By sunrising in forum C++ Programming
    Replies: 6
    Last Post: 04-23-2008, 07:58 AM
  3. Object Oriented Programming
    By obaid in forum C++ Programming
    Replies: 5
    Last Post: 08-22-2007, 05:31 AM
  4. Object Oriented Programming
    By eric123 in forum C++ Programming
    Replies: 6
    Last Post: 11-30-2005, 04:56 AM
  5. OBJECT ORIENTED VS C STYLE for small projects
    By Shadow12345 in forum C++ Programming
    Replies: 17
    Last Post: 01-15-2003, 03:50 PM

Tags for this Thread