Using a C project, create a program for the following requirement: A. utility.h 1. function 1: series_generator1(int n);  // n is the number of elements to display // series: 1 2 4 8 16 32 64 128 256 512 ... 2. function 2: series_generator2(int n); // n is the number of elements to display // series: 19683 6561 2187 729 243 81 27 9 3 1 ... 3. function 3: compute_gpa(float units[], float grades[]); // units is number of units of each subject // grades is the grade of each subject // to compute the student’s General Point Average is by multiplying the grade per subject by its corresponding unit, sum up the products and divide the sum by its total units. // the mapping of units to grades should be observed B. utility.c Implement all the functions above. C. utility_demo.c Subject size for function 3 is 7. Create a main function to test functions above. - ask for input for n for functions 1 and 2 - call the functions 1 and 2 - ask for input for units and grades arrays - call function 3 to get the GPA and display the result   Compress and submit the entire project.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Using a C project, create a program for the following requirement:

A. utility.h

1. function 1: series_generator1(int n); 
// n is the number of elements to display
// series: 1 2 4 8 16 32 64 128 256 512 ...

2. function 2: series_generator2(int n);
// n is the number of elements to display
// series: 19683 6561 2187 729 243 81 27 9 3 1 ...

3. function 3: compute_gpa(float units[], float grades[]);
// units is number of units of each subject
// grades is the grade of each subject
// to compute the student’s General Point Average is by multiplying the grade per subject by its corresponding unit, sum up the products and divide the sum by its total units.
// the mapping of units to grades should be observed

B. utility.c
Implement all the functions above.

C. utility_demo.c
Subject size for function 3 is 7.
Create a main function to test functions above.
- ask for input for n for functions 1 and 2
- call the functions 1 and 2
- ask for input for units and grades arrays
- call function 3 to get the GPA and display the result
 
Compress and submit the entire project.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY