Code the algorithm shown in Figure 6-41. Use the switch statement to code the multiple-alternative selection structure.
Question:
Code the algorithm shown in Figure 6-41. Use the switch statement to code the multiple-alternative selection structure. If necessary, create a new project named TryThis11 Project, and save it in the Cpp8\Chap06 folder. Enter the C++ instructions into a source file named TryThis11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Save and run the program. Test the program using the following codes: 1, 2, 3, and 7.
Figure 6-41
Transcribed Image Text:
IPO chart information C++ instructions Input department code (1, 2, or 3) int deptCode 0; Processing none Output salary int salary = 0; Algorithm: 1. enter the department code 2. íf (the department code is one of the following:) salary = 25000 salary = 30000 salary = 32000 display "Invalid code" salary = 1. 3 4 end if 3. display salaryy
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 83% (12 reviews)
TryThis11cpp displays the salary associated with a department code Createdrevised by on include usin...View the full answer
Answered By
Ashington Waweru
I am a lecturer, research writer and also a qualified financial analyst and accountant. I am qualified and articulate in many disciplines including English, Accounting, Finance, Quantitative spreadsheet analysis, Economics, and Statistics. I am an expert with sixteen years of experience in online industry-related work. I have a master's in business administration and a bachelor’s degree in education, accounting, and economics options.
I am a writer and proofreading expert with sixteen years of experience in online writing, proofreading, and text editing. I have vast knowledge and experience in writing techniques and styles such as APA, ASA, MLA, Chicago, Turabian, IEEE, and many others.
I am also an online blogger and research writer with sixteen years of writing and proofreading articles and reports. I have written many scripts and articles for blogs, and I also specialize in search engine
I have sixteen years of experience in Excel data entry, Excel data analysis, R-studio quantitative analysis, SPSS quantitative analysis, research writing, and proofreading articles and reports. I will deliver the highest quality online and offline Excel, R, SPSS, and other spreadsheet solutions within your operational deadlines. I have also compiled many original Excel quantitative and text spreadsheets which solve client’s problems in my research writing career.
I have extensive enterprise resource planning accounting, financial modeling, financial reporting, and company analysis: customer relationship management, enterprise resource planning, financial accounting projects, and corporate finance.
I am articulate in psychology, engineering, nursing, counseling, project management, accounting, finance, quantitative spreadsheet analysis, statistical and economic analysis, among many other industry fields and academic disciplines. I work to solve problems and provide accurate and credible solutions and research reports in all industries in the global economy.
I have taught and conducted masters and Ph.D. thesis research for specialists in Quantitative finance, Financial Accounting, Actuarial science, Macroeconomics, Microeconomics, Risk Management, Managerial Economics, Engineering Economics, Financial economics, Taxation and many other disciplines including water engineering, psychology, e-commerce, mechanical engineering, leadership and many others.
I have developed many courses on online websites like Teachable and Thinkific. I also developed an accounting reporting automation software project for Utafiti sacco located at ILRI Uthiru Kenya when I was working there in year 2001.
I am a mature, self-motivated worker who delivers high-quality, on-time reports which solve client’s problems accurately.
I have written many academic and professional industry research papers and tutored many clients from college to university undergraduate, master's and Ph.D. students, and corporate professionals. I anticipate your hiring me.
I know I will deliver the highest quality work you will find anywhere to award me your project work. Please note that I am looking for a long-term work relationship with you. I look forward to you delivering the best service to you.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
If necessary, create a new project named TryThis11 Project, and save it in the Cpp8\Chap10 folder. Code the IPO charts shown in Figure 10-26. Enter your C++ instructions into a source file named...
-
In this exercise, you will modify the code from Exercise 10. If necessary, create a new project named ModifyThis11 Project, and save it in the Cpp8\Chap08 folder. Enter (or copy) the TryThis10.cpp...
-
Complete TRY THIS Exercise 11. If necessary, create a new project named ModifyThis12 Project, and save it in the Cpp8\Chap06 folder. Enter (or copy) the instructions from the TryThis11.cpp file into...
-
A construction company is considering taking on a new project. The total project cost is $5 million, and there is a 70% chance that the project will be completed on time and within budget, resulting...
-
The p.d.f. of a random variable T is h(t) = 1/t for 1 t e. Find the variance and standard deviation of a continuous random variable with the given p.d.f.
-
Find the minimum distance of the codes. BIBIGNAR 1. _0
-
Air at \(V_{1}=800 \mathrm{~m} / \mathrm{s}, p_{1}=100 \mathrm{kPa}\), and \(T_{1}=300 \mathrm{~K}\) passes through a normal shock. Calculate the velocity \(V_{2}\), temperature \(T_{2}\), and...
-
Interim Reporting Snider Corporation, a publicly traded company, is preparing the interim financial data which it will issue to its stockholders and the Securities and Exchange Commission (SEC) at...
-
Refer to case law and/or statutory authority where appropriate and relevant to support your answers. Use IRAC method. Chris, Mia, and Lily teamed up to establish a health consultancy named...
-
Imax Corporation is a large entertainment technology company, with headquarters in New York and Toronto, and theatres worldwide. Its share price, which was as high as Can.$ 13.89 on the Toronto Stock...
-
Figure 6-40 shows a partially completed chart for a program that displays the amount of a salespersons commission. The commission is based on the salespersons sales amount, as indicated in the...
-
Karlton Learning wants a program that displays the amount of money a company owes for a seminar. The fee per person is based on the number of people the company registers, as shown in Figure 6-42....
-
The divisor for the Dow Jones Industrial Average (DJIA) is most likely to decrease when a stock in the DJIA: a. Has a stock split. b. Has a reverse split. c. Pays a cash dividend. d. Is removed and...
-
Solve S x + x 11 (x4 + 2x + 3) dx =?
-
ces Primare Corporation provided the following data for last month's manufacturing operations. Purchases of raw materials Indirect materials used in production Direct labor Manufacturing overhead...
-
What is the difference between sale of assets and the sale of stocks? How would you Compare the sale of assets and the sale of stocks.
-
Chesterfield Company holds cash of $61,000, inventory worth $112,000, and a building worth $141,000. Unfortunately, the company also has accounts payable of $191,000, a note payable of $91,000...
-
What sort of buyer strategic or financials is more likely to give a bigger purchase premium? Explain.
-
The Four-Leaf Clover Corporation makes two products, LC1 and LC2. Each product uses a different type of raw materials, and the company provides you with the following data for the most recent year:...
-
Why do markets typically lead to an efficient outcome for buyers and sellers?
-
Evaluate the following expression: 5 * 7 > 6 2. a. True b. False
-
Evaluate the following expression: 5 * 4 > 6 2 AndAlso True OrElse False. a. True b. False
-
What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains the number 65? a. 0 b. 5 c. 8 d. 10 If intAge
-
For this problem, consider a model of the hydrogen atom where the "atom" is an electron confined to be in a one-dimensional box. Take the length of the box, L, to be twice the Bohr radius ao. The...
-
Two blocks are stacked on top of one another (7 kg and 12 kg). A 50 N force is applied to the bottom block. There is 8 N of friction between the bottom block and the desk. Show a free body diagram...
-
2) A load of bricks with mass m = 15.0 kg hangs from one end of a rope that passes over a massless, frictionless pulley. A counterweight of mass m2 = 28.0 kg is suspended from the other end of the...
Study smarter with the SolutionInn App