4. Write a user-defined function inputData to take 15 students' names and total marks from user...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. Write a user-defined function inputData to take 15 students' names and total marks from user input. Print students names here and pass total marks to OddCal and evenCal functions dd or cr rk as do Write a function oddCal to calculate odd numbers and store them in an array. Return the result to the main function ents Write another function evenCal to calculate even Numbers and store them in an array.Return the result to the main function. Finally, print the odd and even from the main function. (10) 4. Write a user-defined function inputData to take 15 students' names and total marks from user input. Print students names here and pass total marks to OddCal and evenCal functions dd or cr rk as do Write a function oddCal to calculate odd numbers and store them in an array. Return the result to the main function ents Write another function evenCal to calculate even Numbers and store them in an array.Return the result to the main function. Finally, print the odd and even from the main function. (10)
Expert Answer:
Answer rating: 100% (QA)
include include include include include include include using namespace std define NOOFSTU... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Accepting integer numbers and store them in an array |n), then divide it into two arrays odd and even. Write a program in the programming language Candy(1) display the contents of odd array and even...
-
Write a user-defined function to calculate a firm's return on equity using the DuPont method as defined by (4-29) on page 125. You will need the function to accept three arguments: the net profit...
-
Students in California are required to pass an exit exam in order to graduate from high school. The pass rate for San Luis Obispo High School has been rising, as have the rates for San Luis Obispo...
-
The value of a log is based on the number of board feet of lumber the log may contain. (A board foot is the equivalent of a piece of wood 1 inch thick, 12 inches wide, and 1 foot long. For example, a...
-
Many small businesses operate with local servers running in broom closets or the like. Explain what using a cloud vendor that is compliant with these standards and statements means to such companies.
-
In 2017, Congress and the Trump administration enacted changes to the federal tax code, including reducing the top corporate income tax rate from 35 percent to 21 percent. An editorial in the Wall...
-
Superhero Industries reported the following at September 30: Requirements 1. Record retirement of half of the bonds on October 1 at the call price of 101. 2. Record conversion of the remainder of the...
-
Salamone Heaters selected data for October 2013 are presented here (in millions): Direct materials inventory, 10/ 1/ 2013 $ 75 Direct materials purchased 335 Direct materials used 380 Total...
-
During the current year, Martinez Company disposed of two different assets. On January 1, prior to their disposal, the accounts reflected the following: Asset Machine A Machine B Original Cost...
-
The Silver Star Bicycle Company will be manufacturing mens and womens models of its Easy-Pedal 10-speed bicycle during the next two months, and the company would like a production schedule indicating...
-
complete the graphic organizer based on the image (a). complete all rows separately. 5Ws + H Who What Where When Why How What inference can you make based on the photo about the community? What...
-
First Bank has cash reserves of \($200,000,\) loans of \($800,000,\) and deposits of \($1,000,000\). a. Prepare a balance sheet for the bank. b. If the bank maintains a reserve requirement of 15...
-
What are IBFs? Why do you think they were legalized?
-
What is the Eurocurrency market, and how is banking in the Eurocurrency market different from domestic banking?
-
What is a financial intermediary? Give an example of how your bank or credit union serves as a financial intermediary between you and the rest of the economy.
-
During World War II, cigarettes were used as money in prisoner of war camps. Considering the attributes that a good money should possess, why would cigarettes emerge as money among prisoners?
-
(4 marks) Define the following terms used in hypothesis testing: 1. Type I error 2. Type II error 3. Significance level a 4. Power of the test.
-
Repeat the previous problem, but close the positions on September 20. Use the spreadsheet to find the profits for the possible stock prices on September 20. Generate a graph and use it to identify...
-
A sphere has a radius of 24 cm. A rectangular prism has sides of a, a/2, and a/ 4. (a) Determine a of a prism that has the same volume as the sphere. (b) Determine a of a prism that has the same...
-
For the triangle shown, a = 48 mm, b = 34 mm, and y = 83o. Define a, b, and y as variables, and then: (a) Calculate c by substituting the variables in the Law of Cosines. (Law of Cosines: c2 = a2 +...
-
Write a user-defined MATLAB function that determines the cross product of two vectors. For the function name and arguments, use w = crosspro (u,v). The input arguments to the function are the two...
-
Find the natural frequency of the system shown in Fig. 2.55 with and without the springs \(k_{1}\) and \(k_{2}\) in the middle of the elastic beam. a b k 0000 0000 m FIGURE 2.55 Elastic beam with...
-
A rotating machine weighing \(1000 \mathrm{~N}\) (including the foundation block) is isolated by supporting it on six identical helical springs, as shown in Fig. 2.54. Design the springs so that the...
-
Find the natural frequency of the pulley system shown in Fig. 2.56 by neglecting the friction and the masses of the pulleys. 0000 m k 0000 4k 0000 4k FIGURE 2.56 Pulley system with springs and mass.
Study smarter with the SolutionInn App