C programming question

Status
Not open for further replies.

AmalMadina

Commendable
May 22, 2016
5
0
1,510
Write a complete C program that reads 55 salaries from a file called “salaries.txt”. Your
program should store the salaries in an array of double values. Then you should send the
array to a function called raiseSalaries which will give a raise to each salary based on the
following rules:
1. Salary less or equal 700, give a raise = 4%
2. 700< salary <=1000, give a raise = 7%
3. 1000< salary <=1500, give a raise = 9%
Then your program should call another function called getMaxMin which accepts the
array, and returns using pointers the largest and lowest salaries. Finally your program will
print max and min salaries and also all new salaries on screen.
 
Solution


Dozens of people out here could create this, in multiple languages. And just give you the answer.
But you will have learned zero.

What needs to happen is:
You create something
Compile it
Run it
It fails
Post the code here
Then....we out here might say "Oh, your syntax on Line 18 is incorrect"

AmalMadina

Commendable
May 22, 2016
5
0
1,510

Excuse me, im asking for this question , so i need the write answer, but the question formula is given in this way, sorry if it is any mistake

 

rgd1101

Don't
Moderator


Your only mistake, you need to do your own work to learn from it.
 

USAFRet

Illustrious
Moderator


Dozens of people out here could create this, in multiple languages. And just give you the answer.
But you will have learned zero.

What needs to happen is:
You create something
Compile it
Run it
It fails
Post the code here
Then....we out here might say "Oh, your syntax on Line 18 is incorrect"
 
Solution
Status
Not open for further replies.