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.
-
Where do stereotypes come from? What are some examples of Christian stereotypes present in U.S. media? How does the presence of stereotypes in mediated communication influence interpersonal...
-
A candidate invited for a visit has probability 0.6 of being hired. Let \(X\) be the number of candidates that visit before 2 are hired. Find (a) \(P(X \leq 4)\); (b) \(P(X \geq 5)\).
-
The units of an item available for sale during the year were as follows: There are 50 units of the item in the physical inventory at December 31. The periodic inventory system is used. Determine the...
-
The unadjusted trial balance as of December 3 1 , 2 0 2 4 , for the Bags Consulting Company appears below. December 3 1 is the company s reporting year - end. Account Title Debits Credits Cash $ 1 1...
-
Examine the integrated log file shown in Figure 10-19. a) Identify the stages in this apparent attack. b) For each stage, describe what the attacker seems to be doing? c) Decide whether the actions...
-
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....
-
Mamas Stuffin is a popular food item during the fall and winter months, but it is marginal in the spring and summer. Use the following demand forecasts and costs to determine which of the following...
-
Solve the systems in Problems 7-14 by graphing. \(\left\{\begin{array}{l}3 x+2 y=5 \\ 4 x-3 y=1\end{array} \quad ight.\)
-
Write a method find() that takes the first Node in a linked list and a string key as arguments and returns true if some node in the list has key as its item field, and false otherwise.
-
Show that the diameter in a 2-ring graph on \(V\) vertices is \(\sim V / 4\). Show that if you add one edge connecting two antipodal vertices, the diameter decreases to \(\sim V / 8\).
-
Suppose \(x\) is a linked-list Node. What is the effect of the following code fragment? \[x \cdot \text { next }=x \cdot \text { next } . \text { next; }\]
-
Compare and contrast structured design-based methodologies in general to RAD-based methodologies in general.
-
Suppose that the momentum of an electron is measured with complete accuracy (i.e., the uncertainty in its momentum is zero). The uncertainty in a simultaneous measurement of the electron's position...
-
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
-
What are some key traits and qualities that define an effective leader in today's complex and dynamic business environment?
-
How has digital marketing transformed the healthcare industry? What are the key strategies for successful healthcare marketing in 2023? How can healthcare providers ensure compliance with healthcare...
-
If you invest $250 a month for 40 years at 10% interest. How much money will you have.
Study smarter with the SolutionInn App