Write a C++ program that performs the following: (15 points) Prints on screen a selection menu...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C++ program that performs the following: (15 points) Prints on screen a selection menu as follow: a. Calculations. b. cos (x) and marks. (8 points) (6 points) (1 point) c. Exit. (marks will be distributed equally between the branches of each main point except the last branch) A.If user presses a or A, the following sub menu should be displayed: 1- If user presses 1, program should call a function that Count Vowels Characters: write a function which should read a set of characters from the keyboard until q is pressed. The program should count the occurrence of each of vowel characters (a, e, w, u and o.). (2 points) 2- If user presses 2, Write a code that will allow the user to enter three integers and order these integers from smallest to largest using functions. (Use function to enter the three integer numbers by the user and another function that receives the three integers and order them). (3 points) 3- If user presses 3, Max Odd Digit: program should call a function that receives an integer number and returns the max odd digit of this number as the following example: x=12675, max digit = 7). (2 points) 4- If user presses 4, Return to the main menu. (1 point) b.lf user presses b or B, the following sub menu should be displayed: 1- If user presses 1, program should call a function that solves cos(x): write a function which receives the degrees and prints out the result of cos (x)= 1 -x/2!+ x^/4! - x/6!...... (note that x in radians) (note that you should define a function to calculate the factorial and a function to calculate the power using recursion). (2 points) 2- If user presses 2, your program should allow the user to enter marks for M students and each. student has N marks. Your code should output the number of passed students. (i.e. the student is passed if his/her average >= 50 (average of N student marks) (and also your code should output the average marks of failed students. (3 points) 3- If user presses 3, Return to the main menu. (1 point) To Exit press e or E. (1 point) Write a C++ program that performs the following: (15 points) Prints on screen a selection menu as follow: a. Calculations. b. cos (x) and marks. (8 points) (6 points) (1 point) c. Exit. (marks will be distributed equally between the branches of each main point except the last branch) A.If user presses a or A, the following sub menu should be displayed: 1- If user presses 1, program should call a function that Count Vowels Characters: write a function which should read a set of characters from the keyboard until q is pressed. The program should count the occurrence of each of vowel characters (a, e, w, u and o.). (2 points) 2- If user presses 2, Write a code that will allow the user to enter three integers and order these integers from smallest to largest using functions. (Use function to enter the three integer numbers by the user and another function that receives the three integers and order them). (3 points) 3- If user presses 3, Max Odd Digit: program should call a function that receives an integer number and returns the max odd digit of this number as the following example: x=12675, max digit = 7). (2 points) 4- If user presses 4, Return to the main menu. (1 point) b.lf user presses b or B, the following sub menu should be displayed: 1- If user presses 1, program should call a function that solves cos(x): write a function which receives the degrees and prints out the result of cos (x)= 1 -x/2!+ x^/4! - x/6!...... (note that x in radians) (note that you should define a function to calculate the factorial and a function to calculate the power using recursion). (2 points) 2- If user presses 2, your program should allow the user to enter marks for M students and each. student has N marks. Your code should output the number of passed students. (i.e. the student is passed if his/her average >= 50 (average of N student marks) (and also your code should output the average marks of failed students. (3 points) 3- If user presses 3, Return to the main menu. (1 point) To Exit press e or E. (1 point)
Expert Answer:
Answer rating: 100% (QA)
Code include using namespace std void countVowels function to count the vowels char c int a0 e0 i0 o0 u0 whiletrue cout tEnter character q for quit cin c ifc q c Q break else ifc a c A a else ifc e c ... View the full answer
Related Book For
Intermediate Accounting
ISBN: 978-1260481952
10th edition
Authors: J. David Spiceland, James Sepe, Mark Nelson, Wayne Thomas
Posted Date:
Students also viewed these programming questions
-
Determine if the matrix is in echelon form, and if it is also in reduced echelon form. 1306-2 0019 3 0000 0
-
Michelle operates a food truck. Indicate the amount (if any) that she can deduct as an ordinary and necessary business deduction in each of the following situations. a. Michelle moves her food truck...
-
In the Month of March, Baldwin Corporation received orders of 191 units at a price of $15.00 for their product Bead. Baldwin uses the accrual method of accounting and offers 30 day credit terms....
-
A saver invests 100,000 in a savings account which pays a stated annual rate of interest of 4.5% compounded quarterly. Assuming no additional deposits or withdrawals, how much is in the account at...
-
Mercury Company has only one inventory pool. On December 31, 2018, Mercury adopted the dollar-value LIFO inventory method. The inventory on that date using the dollar-value LIFO method was $200,000....
-
Confidential client information may generally be disclosed only with the permission of the client. What are the exceptions to this rule?
-
The first column in Table 8-5 lists transaction amounts that have been summed to obtain a batch total. Assume that all data in the first column are correct. Columns a through d contain batch totals...
-
Gray, Stone, and Lawson open an accounting practice on January 1, 2009, in San Diego, California, to be operated as a partnership. Gray and Stone will serve as the senior partners because of their...
-
Based on below information calculate for a final Good under 9007.91 Net Cost Transaction Value Value of Non- Originating Materials RVC under TV method - Will it pass the 60% rule to qualify for CUSMA...
-
Huegel Hollow Resort has ordered 20 rotomolded kayaks from Current Designs. Each kayak will be formed in the rotomolded oven, cooled, and then the excess plastic trimmed away. Then, the hatches,...
-
Micro Computers Inc. sponsors a defined benefit pension plan for its employees. It is now the 20X2 fiscal year. Long-term corporate borrowing rates for companies with this risk profile are 4%....
-
Owen invested $ 1 0 , 0 0 0 on April 9 th into an account earning prime + 0 . 5 % . Prime was 5 % at the time. On June 1 0 th , prime rose by 0 . 2 5 % . Owen decided to withdraw his money on...
-
Around the globe (Global Mart) is a dominant force in the international e-commerce landscape, renowned for its extensive product range and vast customer base. As a market leader, the company has...
-
I need the PESTEL ANALYSIS for SAN FRANCISCO CITY, including the aspects: 1. Political 2. Economical 3. Social and cultural 4. Technological 5. Legal Please add the references and bibliography
-
se the Gauss-Jordan reduction to solve the following linear system: X1 X2 + 2x3 == -4 3x1 4x2 + 3x3 -3 -3x1 15x3 = 39 1 X2 X3 000 +
-
How can we relate this back to HR: https://thehustle.co/04242023-trade-school-enrollment/
-
2. Convert 9210 to Binary, Octal and Hexadecimal using repeated division. Show your work. Answer: Binary: Octal: Hexadecimal:
-
What does non-recourse financing mean?
-
International Network Solutions provides products and services related to remote access networking. The company has grown rapidly during its first 10 years of operations. As its segment of the...
-
Additional disclosures are required pertaining to deferred tax amounts reported on the balance sheet. What are the needed disclosures?
-
FF&T Corporation is a confectionery wholesaler that frequently buys and sells securities to meet various investment objectives. The following selected transactions relate to FF&Ts investment...
-
The economy of large-scale production _________ new firms from entering a market because high initial average total costs impose heavy losses on new entrants.
-
Because they are mutually interdependent, oligopolists are tempted to get together and agree to act jointly, or to _________, to reduce uncertainty and raise profits.
-
Mutual interdependence means that no firm knows with _________ what its demand curve looks like. The demand curve and the profit-maximizing price and output will depend on how others _________ to the...
Study smarter with the SolutionInn App