Bijak Tuition Centre has hired your company to develop a system called Fees Calculation System to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Bijak Tuition Centre has hired your company to develop a system called Fees Calculation System to calculate their client tuition fees based on the total number of registered subject. The user is required to enter just one input which is the total number of registered subject. The fee for each subject is RM30.00. After entering the input, system will display outputs consists of total number of registered subject, total fees need to be paid and a message displaying "thank you". Figure 4 shows the example of the main function of this system. #include <stdio.h> (1) inputTotal Subject (2); (3) calcFees (4); (5) displayFees (6); (7) displayMsg (8); int main() { } int totalSubject; float fees; totalSubject inputTotal Subject (); fees-calcFees (total Subject); displayFees (total Subject, fees); displayMsg (); return 0; Figure 4: Example of the main function Based on that scenario, answer the following questions: Identify the correct value for (1), (2), (3), (4), (5), (6), (7) and (8) in Figure 4? Based on Figure 4, construct complete function definition for function inputTotal Subject (), calcFees (), displayFees () and displayMsg (). Your program should apply modular programming and have all the following function types: i) ii) iii) iv) Non void function with parameter Non void function with no parameter Void function with parameter Void function with no parameter. Bijak Tuition Centre has hired your company to develop a system called Fees Calculation System to calculate their client tuition fees based on the total number of registered subject. The user is required to enter just one input which is the total number of registered subject. The fee for each subject is RM30.00. After entering the input, system will display outputs consists of total number of registered subject, total fees need to be paid and a message displaying "thank you". Figure 4 shows the example of the main function of this system. #include <stdio.h> (1) inputTotal Subject (2); (3) calcFees (4); (5) displayFees (6); (7) displayMsg (8); int main() { } int totalSubject; float fees; totalSubject inputTotal Subject (); fees-calcFees (total Subject); displayFees (total Subject, fees); displayMsg (); return 0; Figure 4: Example of the main function Based on that scenario, answer the following questions: Identify the correct value for (1), (2), (3), (4), (5), (6), (7) and (8) in Figure 4? Based on Figure 4, construct complete function definition for function inputTotal Subject (), calcFees (), displayFees () and displayMsg (). Your program should apply modular programming and have all the following function types: i) ii) iii) iv) Non void function with parameter Non void function with no parameter Void function with parameter Void function with no parameter.
Expert Answer:
Answer rating: 100% (QA)
The code snippet provided shows the main function of a C program that calculates tuition fees for a tuition centre In the program four functions are u... View the full answer
Related Book For
An Introduction to Management Science Quantitative Approach to Decision Making
ISBN: 978-1337406529
15th edition
Authors: David R. Anderson, Dennis J. Sweeney, Thomas A. Williams, Jeffrey D. Camm, James J. Cochran
Posted Date:
Students also viewed these programming questions
-
You will design and implement your own data class. The class will store data that has been read as user input from the keyboard (see Getting Input below), and provide necessary operations. As the...
-
For the following two graphics, provide the specified information below for each. Inverse Demand: P= 43.75 - .00625 Q; MR = 43.75 - 0.0125 Q 25 20 15 $ per unit 10 10 5 0 MC 500 1000 1500 ATC 2000 -...
-
28. The amount of time spent by an employee in the factory is usually recorded on: a. time tickets b. job order cost sheets c. employees' earnings records d. statement of owners'equity 29. The entry...
-
What is the role of equations in this book?
-
Six volts are applied across a resistor. A current of 2 mA is measured. What is the value of the resistor?
-
Fly Fast Ltd operates a small charter plane operation in South West Queensland. The airline provides a fly-in fly-out service to mining operations in this area. Currently Fly Fast operates one plane...
-
Grand Devices Corporation assembles handheld computers that have scaled-down capabilities of laptop computers. Each handheld computer takes 6 hours to assemble. Grand Devices uses a JIT production...
-
Consider how an emphasis on effectiveness instead of success might change your perspective on your assessment of personal, vocational, and relational flourishing. What changes in your attention,...
-
BookWeb, Inc., sells books and software over the Internet. A recent article in a trade journal has caught the attention of management because the company has experienced soaring inventory handling...
-
The following information has been taken from the budget for the forthcoming financial year: Direct materials cost 1495,000 Direct materials usage 65,000kg Direct labour cost 560.000 Direct labour...
-
The most recent financial statements for Alexander Company are shown here: Income Statement Balance Sheet Sales Costs $ 45,000 28,800 Current assets $70,470 Long-term debt $ 48,600 Fixed assets...
-
A chipmunk scampers about collecting safflower seeds that birds dropped from a feeder hanging overhead. Initially, the little creature is at position vector r1x = 3.07 m and ry = -1.71 m. After...
-
(4) Tim has also received another offer from a Canadian Basketball club in the Alberta province. The club provides him with a three-year contract with an annual salary of 520,000 Canadian dollars...
-
OHIN ww Decide for what yo, the solution to the following differential equation: y = (sin t)ev, y(0) = 30 exists for all t 0. Next suppose yo = 0, decide the largest T+ (including +00) such that the...
-
Prepare the Statement of Financial Position of Sherwin's Delivery Services using the information of their first month of operation for the month of November 2019. The business had the following...
-
V= 94 If the angular acceleration of the wheel is given by a = (2t+4) rad/s2. Determine the magnitude of velocity and magnitude of acceleration of point at t=3 seconds. (15%) a = 0.8 m
-
If (x) 0 on the interval [a, b], the definite integral gives the exact area under the curve between x = a and x = b.
-
A project has four activities (A, B, C, and D) that must be performed sequentially. The probability distributions for the time required to complete each of the activities are as follows: a. Construct...
-
The Corporate Average Fuel Economy (CAFE) regulations were put into law by Congress in 1975 to promote the sale of fuel-efficient automobiles and light trucks. The law requires automakers to boost...
-
Schneiders Sweet Shop specializes in homemade candies and ice cream. Schneider produces its ice cream in-house, in batches of 50 pounds. The first stage in ice cream making is the blending of...
-
Light of wavelength \(\lambda\) is incident on an aperture of width \(a\), producing diffraction. Describe the change(s) in the diffracted waves \((a)\) when the aperture width is doubled and \((b)\)...
-
Which wavelength of electromagnetic radiation do you expect to be diffracted by a window screen? What is the frequency of this radiation?
-
Name some characteristics that allow you to observe light diffraction.
Study smarter with the SolutionInn App