Joined
Last Seen
0 Reputation Points
60% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #36.9K
Hello all. I'm currently studying computer science, and I need some insight concerning data structures. i'm asked to create the necessary data structure to hold the population and saving factor of all cities. CITY: Population: Saving factor: Nicosia 200 0.4 Limassol 120 0.6 Larnaka 65 0.7 Paphos 30 0.75 Paralimni … |
|
[CODE]#include <iostream.h> float salary (int, float); int main() { int n,h,i; float r,GS; cout <<"Enter number of employees: "; cin >> n; for (i=0;i<n;i++) { cout << "\n Hours= \t"; cin >>h; cout<< "\n Rate= \t"; cin >> r; GS=salary(h,r); cout << "\nSalary=\t"<<GS << "\n"; cout << "Rate=\t"<<r<<"\n\n"; } return … |