Question

A construction company pays its temporary workers R100 per day if they work on a Monday to Saturday and R200 if they work on

0 0
Add a comment Improve this question Transcribed image text
Answer #1

/******************************************************************************

Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>

using namespace std;

int main()
{
char entry;
int amount=0,count=0;
while(1)
{
cout<<"\nenter the days that the worker has worked ";
cin>>entry;
if(entry=='x')
break;
if(entry=='1')
{
amount=amount+100;
}
if(entry=='2')
{
amount=amount+200;
count=count+1;
}
  
  
}
cout<<"\ntotal amount need to be paid "<<amount;
cout<<"\ncount of sunday "<<count;

return 0;
}

enter the days that the worker has worked 2 enter the days that the worker has worked 1 enter the days that the worker has wo

DON'T FORGET TO HIT LIKE.

THANKS BY HEART.

Add a comment
Know the answer?
Add Answer to:
A construction company pays its temporary workers R100 per day if they work on a Monday...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A construction company pays its temporary workers R100 per day if they work on a Monday...

    A construction company pays its temporary workers R100 per day if they work on a Monday to Saturday and R200 if they work on a Sunday. They only work when the company contacts them, so they do not work the whole month. Complete the program below that asks the user to enter the days that the worker has worked. The character 'l' is entered if the day is Monday to Saturday and '2' if it is a Sunday. A total...

  • QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they...

    QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they work on a Monday to Saturday and R200 if they work on a Sunday. They only work when the company contacts them, so they do not work the whole month. Complete the program below that asks the user to enter the days that the worker has worked. The character '1' is entered if the day is Monday to Saturday and '2' if it is...

  • QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they...

    QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they work on a Monday to Saturday and R200 if they work on a Sunday. They only work when the company contacts them, so they do not work the whole month. Complete the program below that asks the user to enter the days that the worker has worked. The character 'l' is entered if the day is Monday to Saturday and 2' if it is...

  • QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they...

    QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they work on a Monday to Saturday and R200 if they work on a Sunday. They only work when the company contacts them, so they do not work the whole month. Complete the program below that asks the user to enter the days that the worker has worked. The character 'l'is entered if the day is Monday to Saturday and 2' if it is a...

  • QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they...

    QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they work on a Monday to Saturday and R200 if they work on a Sunday. They only work when the company contacts them, so they do not work the whole month. Complete the program below that asks the user to enter the days that the worker has worked. The character 'l' is entered if the day is Monday to Saturday and '2' if it is...

  • Wadow Help COS1511 2012 2. COS1511 Nov 2012 semester 1 past pap... 2012_2017-sem2... COS1511 201 3...

    Wadow Help COS1511 2012 2. COS1511 Nov 2012 semester 1 past pap... 2012_2017-sem2... COS1511 201 3 2 Solutions to exeras.. COS1511.PDF 9 / 12 100% QUESTION 2 10 marks A construction company pays its temporary workers R100 per day if they work on a Monday to Saturday and R200 if they work on a Sunday. They only work when the company contacts them, so they do not work the whole month. Complete the program below that asks the user to...

  • SECTION B 80 MARKS QUESTION 1 12 marks Parents of the pupils of the Park Primary...

    SECTION B 80 MARKS QUESTION 1 12 marks Parents of the pupils of the Park Primary School must pay an amount for outfits for the annual play. All pupils take part in the play, except the Grade 0 pupils. The amount that the parents have to pay is calculated as follows: The cost of the outfits for Grade 1 and 2 pupils is R45 The cost of the outfits for Grades 3 to 5 is R65 Grade 6 and 7...

  • Need this program ASAP C++ language 1b. Write the implementation file timeClock.cpp for the class TimeClock....

    Need this program ASAP C++ language 1b. Write the implementation file timeClock.cpp for the class TimeClock. Com pile the file, and save it in the Chap 13 folder of your Student Data Files. 1c. Write a C++ program named weeklyPay.cpp to test your class Timeclock Your program should ask the user how many hours the user worked each day of the week. An object should be created for each day of the week with the number of hours for each...

  • Crane Company pays salaries of $10,630 every Monday for the preceding 5-day week (Monday through Friday)....

    Crane Company pays salaries of $10,630 every Monday for the preceding 5-day week (Monday through Friday). Assume December 31 falls on a Tuesday, so Crane’s employees have worked 2 days without being paid at tAssume the company does not use reversing entries. Prepare the December 31 adjusting entry and the entry on Monday, January 6, when Crane pays the payroll. (Credit account titles are automatically indented when amount is entered. Do not indent manually. Record journal entries in the order...

  • "A company currently operates its flour mill 6 days per week (Monday through Saturday). Flour sells...

    "A company currently operates its flour mill 6 days per week (Monday through Saturday). Flour sells for $24.17 per hundredweight (cwt) and the company purchases wheat at a price of $4.76 per bushel. 2.56 bushels of wheat are required per cwt of flour. Fixed costs are currently $7,228 per day of operation. The labor cost of mill operations is $0.60 per cwt. If the company decides to operate on Sunday, the labor cost of Sunday operations increases to $1.07 per...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT