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.
-
How does damage to the brain affect the ability to form visual images? (282)
-
4. Which fund financial statements include internal service fund data? Which government-wide statements include internal service fund data?
-
The ABC Corporation is designing its new assembly line. The line will produce 50 units per hour. The tasks, their times, and their immediate predecessors are shown in Table 10-19. (a) Which task is...
-
8. On May 15, 2018, Breyer Co. invests $17,000 in Jojo, Inc. stock. Jojo pays Breyer a $400 dividend on November 15, 2018. Breyer sells the Jojo stock on December 10, 2018, for $16,450. Assume the...
-
Why may it be argued that the concept of the manager is socially constructed rather than real?
-
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....
-
Colquhoun International purchases a warehouse for $300,000. The best estimate of the salvage value at the time of purchase was $15,000, and it is expected to be used for twenty-five years. Colquhoun...
-
Malaysian Agrifood Corporation Berhad reported sales of RM 7 0 , 0 0 0 in May and RM 8 0 , 0 0 0 in June. The forecast sales for July, August and September are RM 9 0 , 0 0 0 , RM 1 0 0 , 0 0 0 , and...
-
1. Refer to the \"Plotting Data\" lesson (end of "Patterns to Notice") and plot the "Skydiver Velocity vs. Time\" data (taken from the video) on the following graph. to c) d) e) f) 9) Which is the...
-
The Star Company is considering a change in its credit terms to increase sales. Its current credit sales are $8.5 million per year and its present credit terms are 2/16 net of 20 basis. Discount is...
-
Determine the shear flow distribution for a torque of 57265.0Nm applied to the three cell section shown in the figure below. Note that the section has a constant shear modulus throughout. All answers...
-
2 a) Figure 1 shows the orientation of the carbon fibre which is orientate at 0.A9 radians from the vertical plane. Draw and label the element's normal and shear stresses acting on the carbon fibre...
-
One-half of the adjustment is given below. Indicate the account title for the other half of the adjustment. a. Salaries and Wages Expense is increased. b. Depreciation Expense is increased. c....
-
Which of the following streaming TV devices does not involve use of a remote controller? A) Google Chromecast B) Apple TV C) Amazon Fire TV D) Roku
-
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
-
please help Problem 13-7 (Algo) Prepare a Statement of Cash Flows [LO13-1, LO13-2] [The following information applies to the questions displayed below.] Comparative financial statements for Weaver...
-
A firm has 1000 shareholders, each of whom own $59 in shares. The firm uses $28000 to repurchase shares. What percentage of the firm did each of the remaining shareholders own before the repurchase,...
-
Vancouver Bank agrees to lend $ 180,000 to Surrey Corp. on November 1, 2020 and the company signs a six-month, 6% note maturing on May 1, 2021. Surrey Corp. follows IFRS and has a December 31 fiscal...
Study smarter with the SolutionInn App