c++ programming

posted by .

Solve the following problem. Apply all the steps i.e decomposition, Flowcharting and Pseudo code. Also write C++ program.

Design and Write an interactive program that computes the salary in Rupees of a part-time employee based on:
- Number of days worked.
- Number of hours per day assuming that he worked the same hours every day.
- The hourly wage.

  • c++ programming -

    #include<iostream>
    using namespace std;
    int main()
    {
    int hours;
    int days;
    int hourRate;
    int salary;
    double product;

    do
    {
    cout<<"enter part time work"<<endl;

    cin>>salary;




    product=hours*days*hourRate; //store


    cout<<"salary"<<hours<<days<<hourRate<<endl;
    }while

    return ;
    }
    //end main()

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. PROGRAMMING

    PLS, I NEED TO BE GUIDED ON HOW TO WRITE A SIMPLE PROGRAM IN BASIC THAT WOULD PROMPT 3 LEVELS OF AUTHENTICATION WHEN UNAUTHORISED LOG-ON IS EFFECTED. You are not going to be able here to get detailed help on the program code, as there …
  2. computers

    I have just started a basic class in programming and I am totally lost. Can someone help me out?
  3. Programming

    Here is the question that I need help to write the code for the following program in Visual Basic 2010. I am trying to write the code but it has a run time error. If your could helps me to write the code it would be greatly appreciated. …
  4. Programming logic and design

    Design a program that lets the user enter the total rainfall for each 12 months into an array. The program should calculate and display the total rainfall for the year the average monthly rainfall, and the month with the highest and …
  5. Programming

    Read two numbers from the keyboard Display the menu options as follows: 1 - computes the sum of two numbers. 2 - computes the difference (first minus second). 3 - computes the product of the two numbers. 4 - if the second number is …
  6. programming

    Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedules. a.A call made between 8:00 AM and 6:00 PM is billed at a rate of 6 rupees per minute. b.A …
  7. Programming and Design

    Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a number …
  8. c programming

    a student designed a program to accept the age of an employee and then compute the employees retirement year and display the same in a statement on the screen required. a) write out the pseudo-code for the program above b) write the …
  9. science

    Write a java program using classes and object to read the em[loyee code (Integer), Imployee name (string), Basic salary )double), Category (Character)then calculate the bonus(double)and the total salary(double)eligible for each employ. …
  10. computer,science, java

    Inorder to motivate the employees, the company has decided to announce the different types of bonus depends up on the employee’s Grade. If the employee belong to Grade A bonus=20% basic Grade B bonus=15% basic Grade C bonus=10% basic …

More Similar Questions