(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
-
The exchange rate between the US$ and the C$ declines from US$0.8993 to US$0.8846 per C$. What will be the change in the C$ price to an importer of a US$2000 item?
-
When most elastomeric polymers (e.g., a rubber band) are stretched, the molecules become more ordered, as illustrated here: Suppose you stretch a rubber band. (a) Do you expect the entropy of the...
-
The author collected sample data by randomly selecting 20 different pages from a printed version of the Merriam-Webster Dictionary and then counting the number of defined words on each of those...
-
The trial balance of Ron Salem Co. shown below does not balance. Each of the listed accounts has a normal balance per the general ledger. An examination of the ledger and journal reveals the...
-
Resistant PLC is an investment property management firm of two years standing. It is run by a managing director (Ray) and a financial director (Neville), and supported by a team of administrative...
-
The file Problem5_9.xlsx contains passing statistics for NFL teams during the 2017 season. Using formulas that do combine INDEX and MATCH in the same cell, return the desired statistics in the range...
-
Mahisha Ayurveda, Trivandrum has a branch at Ayoor to which goods are sent at cost. The branch is authorised to sell goods for cash only. All expenses at branch are paid by Head Office and all amount...
-
You are a bookkeeper with ABC Accounting PTY. LTD. and a client has made an appointment with you after being referred by one of their friends who is a client of yours. The new client you are about to...
-
Find s F(s) = 1 2 s + 4s +13
-
A store rents movies. if the rental fee is 2 dollars each, the store knows they can rent 108 movies per week. For each additional $1 increase the store loses 9 rentals per week. What rental fee...
-
Columbia manufactures bowling balls with a mean weight of 13.7pounds and a standard deviation of 1.6 pounds. A bowling ball is too heavy to use and is discarded if it weighs over 16 pounds. Assume...
-
4. Find an integer b so that the last number printed is 6. (a) n:=0 while n
-
The intensity of vertical stress (0) of the soil just below the load point is given by ________ where Z-vertical distance between point load and the stress and Q-point load.
-
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...
-
In the chapter, we mentioned that if Cafe Revive came up short four coffee gift packs, it should increase its cost of goods sold account and decrease its inventory account by the cost of those gift...
-
State whether you think a business would recognise the following as an expense. When would it be recognised? a Depreciation $350 b Wages to be paid in the next month $1200 c Electricity bill due to...
-
What is the difference between operating expenses and non-operating expenses. Give examples of each.
Study smarter with the SolutionInn App