PRF192_-_PE01_-_FA_2024_2868.webp
Yami92

PRF192_-_PE01_-_FA_2024_2868.webp

  • Media owner Yami92
  • Ngày thêm
2 of 3
Paper No: 1
The given file Q1.c already contains statements to input the number of working days in a month and the daily salary (USD) for an employee. You will write statements to calculate the wage for a month as following the rule:
If the number of working days is greater than 24, the wage for a month is [24*daily salary + (thenumber of working days-24)*2* daily salary], otherwise, the wage for a month is [24* daily salary].
Notes:
- Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
- The output value is formatted in two decimal places
Sample input and output:
-INPUT:
Enter working days: 23
Enter daily salary: 12.56
After processing: the result is 288.88
Output for marking:
OUTPUT:
288.88
-INPUT:
Enter working days: 25
Enter daily salary: 12.56
After processing: the result is 326.56
Output for marking:
OUTPUT:326.56
Zoom FUD + 100%
Close
  • Like
Reactions: nolovestillive

Thông tin

Category
PRF192
Thêm bởi
Yami92
Ngày thêm
Lượt xem
3,068
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_PE01_-_FA_2024_2868.webp
File size
174.9 KB
Dimensions
1920px x 859px

Share this media

Back
Bên trên Bottom