(a) Write a pseudocode for your program. Exercise 2 [Find & Generate] Please answer the following:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(a) Write a pseudocode for your program. Exercise 2 [Find & Generate] Please answer the following: Which variables do you need? ) Which variables do you use for input? ) Which types do you use for which variable. Explain why? What type of loop is best to validate the input? What is the loop condition? Exercise 3 [Evaluate & Reflect] ( Please describe at least three test cases that will allow you to assess whether the program is correct. Which inputs should you choose, and what outputs would you expect? Answer in less than 300 words. Does your program actually satisfy those test cases? Exercise 4 [Communicate & Apply Ethically] The program for this assignment is honest, in that it reports honestly what the user provides as input and what the random number is. Of course, rather than reporting what the user enters and/or the generated random number, your program could make a biased report a preferred option - more wins if it wants to. Would this be ethical to do? Would this be in line with the ACS Code of Ethics and with basic Programming Ethics? Explain. Please answer in less than 300 words. (a) Write a pseudocode for your program. Exercise 2 [Find & Generate] Please answer the following: Which variables do you need? ) Which variables do you use for input? ) Which types do you use for which variable. Explain why? What type of loop is best to validate the input? What is the loop condition? Exercise 3 [Evaluate & Reflect] ( Please describe at least three test cases that will allow you to assess whether the program is correct. Which inputs should you choose, and what outputs would you expect? Answer in less than 300 words. Does your program actually satisfy those test cases? Exercise 4 [Communicate & Apply Ethically] The program for this assignment is honest, in that it reports honestly what the user provides as input and what the random number is. Of course, rather than reporting what the user enters and/or the generated random number, your program could make a biased report a preferred option - more wins if it wants to. Would this be ethical to do? Would this be in line with the ACS Code of Ethics and with basic Programming Ethics? Explain. Please answer in less than 300 words.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer engineering questions
-
Describe at least three situations where an American company might want to keep the product the same but alter the promotion. Also, give three examples where the product must be altered.
-
Describe at least three important Internet issues.
-
Net Income before Income Tax (do not consider comprehensive income) Total of Depreciation Expense (including Amortization) Property, Plant, and Equipment (net book value) Earnings per Share Current...
-
from the given option three are similar to each other becausethey follow the same patter identify the option that is dissimilarto the other three A. BCED B. EFhG c. KLNM D. RSVT
-
There are 200 students in a particular graduate program at a state university. Of them, 110 are female and 125 are out-of-state students. Of the 110 females, 70 are out-of-state students. a. Are the...
-
An igloo is built in the shape of a hemisphere, with an inner radius of 1.8 m and walls of compacted snow that are 0.5 m thick. On the inside of the igloo the surface heat transfer coefficient is 6...
-
Information from Goddard Picture Frames cash account as well as the January bank statement is presented next. Requirements 1. Prepare the bank reconciliation on January 31. 2. Prepare all necessary...
-
Mexico Timeshare, Inc., has the following transactions related to notes receivable during the last two months of 2008: Nov. 1 ....Loaned $18,000 cash to Norma Hanson on a one-year, 10 percent note....
-
The KLS Co. is expected to pay the following annual dividends for the next three years: $1.00, $1.50, and $1.60, respectively. After that time, they are expected to increase their dividends by 3%...
-
Forrest runs Y Not Flowers, Inc. (YNF), a wholesale flower distributor with stores in several major metropolitan areas of the U.S. He is considering expanding his business, but he thinks his current...
-
A cookie company receives a profit of $4/bag for the first 5000 bags they make. If they make more bags, their profit/bag for all the bags produced will decrease by $0.0003 for each additional bag...
-
What are the three categories of sin that we must consider as counselors? Why is it so important that we not neglect sin's role in counseling struggles?
-
Reproducing melodies and playing some instruments accurately is an indicator of which stage of musical development? Experimental Imitative Discovery Listening
-
You must think school-wide for an action plan. No one person can fulfill all parts of a school-wide plan. Think about who you may need to assemble to work on and oversee such a plan. Who are some of...
-
What part of the title insurance policy lists standard exceptions or title defects that are not insured in the policy? Unset starred question Lender's approval letter Schedule B-2 The lender's policy...
-
Assume that investor I holds a portfolio P consisting of stock A and stock B. Stock A has an expected return of 8% and a standard deviation of 15.1%. Stock B has an expected return of 15% and a...
-
The points A(1, 0, 2), B(2, 0, 1) and C(1, 2, k) form a triangle of area 6. Determine the value(s) of k for which this is true. Throughout your mathematical solution explain your thinking in words....
-
It is possible to investigate the thermo chemical properties of hydrocarbons with molecular modeling methods. (a) Use electronic structure software to predict cHo values for the alkanes methane...
-
Given (a) Find the best straight line y = a + fit that fits the data in the least squares sense; (b) Find the best parabola y - α + βt + yt2 that fits the data. Interpret...
-
According to Example 3.33. the n n Hilbert matrix Hn is positive definite, and hence we can apply the conjugate gradient method to solve the linear system Hnu = f. For the values n = 5. 10. 30, let...
-
From the list in Exercise 7.5.1, choose different inner products on the domain and target space, and then determine the adjoint of the matrix A. Exercise 7.5.1 Choose one from the following list of...
-
CPA firms performing management consulting services can accept contingent fee contracts when: a. The amounts are not material in relationship to the audit billings. b. The consulting services are for...
-
Applying utilitarianism as a concept in addressing ethical situations requires the auditor to perform all of the following except: a. Identify the potential stakeholders that will be affected by the...
-
A CPA is permitted to disclose confidential client information without the con- sent of the client to: I: Another CPA who has purchased the CPA's tax practice. II. Another CPA firm if the information...
Study smarter with the SolutionInn App