Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

You are an employee of a marketing organization that pays you a monthly salary of Ksh. 10,000

if you work for the recommended 160 hours a month (Monday - Friday, 9am - 5pm, for a month).

This salary can however fluctuate based on the number of hours worked, in that if you work for

more than the recommended working hours ie above 160 hours, you earn an extra 10% of your

salary but if you work for less than 160 hours, you will be deducted 10% of your salary. With the

aid of a SWITCH CASE select structure Implement a program written in C++ that would help

the finance department calculate your monthly salary based on the hours worked being the input

value of the program.


Write a c++ program using loops that outputs the binary, octal, and hexadecimal equivalent of the integer in the range from 1 to 256.

Write to program to create a file. input user defined data entered from keyboard and write to the file. Read the contents of the file in reverse order and store to another file.

Roll a die from N faces M times and count how many times face X came out (N, M and X chosen by the user)


write a program to read the last word from a file and print to output screen.


 Write 2 program to create a file. input user defined data entered from keyboard and write to the file. Read the contents of the file in reverse order and store to another file.


  1. How real world problems can be solved with the help of object oriented programming? Elaborate at least five real world examples in your own words
  1. Design a nested structure by considering the production of at least 5 fruits in Pakistan’s provinces. Consider suitable attributes of fruits, names of use defined constructs must be user friendly. Use proper string messages to make your program readable.  

. Write a C++ program which takes electric units consumed and rate per unit as input

from user. Also take general sales tax (%), tv license fee and bank charges as input.

Calculate total payable amount for user and display on screen both Total amount

payable and amount without gst, bank Fee and tv fee.


Write a program to plot a graph of function f(x) = x

n + xn-1

. Your program should take a maximum

absolute value of x as well as a positive integer n as input. You will plot a graph for the range [0, x]. You

should label the y-axis according to the maximum value of x.

Sample Output: For x = 3 and n = 2, you should have the following output

12 *

10

08

06 *

04

02 *

00 *

0 1 2 3


LATEST TUTORIALS
APPROVED BY CLIENTS