2. In this assignment you are designing the following methods by creating flowcharts and writing the method signature. Y

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

2. In this assignment you are designing the following methods by creating flowcharts and writing the method signature. Y

Post by answerhappygod »

2 In This Assignment You Are Designing The Following Methods By Creating Flowcharts And Writing The Method Signature Y 1
2 In This Assignment You Are Designing The Following Methods By Creating Flowcharts And Writing The Method Signature Y 1 (35.09 KiB) Viewed 37 times
2 In This Assignment You Are Designing The Following Methods By Creating Flowcharts And Writing The Method Signature Y 2
2 In This Assignment You Are Designing The Following Methods By Creating Flowcharts And Writing The Method Signature Y 2 (35.09 KiB) Viewed 37 times
2. In this assignment you are designing the following methods by creating flowcharts and writing the method signature. You are not writing code for this assignment. a. A method that takes a String and returns trae if the String has 13 digits and false otherwise. a("123456789012")-false al"1234567890123")-true b. A method that takes a String of 13 digits creates and retums an array of ints with 13 positions. The array should contain the integer equivalents of the digits in the original string b("1234567890123") arr(1.2.3.4.5.6,7,8,9,0,1,2,3) b(9781623363581") arr(9.7,8.1.6.2.3.3.6,3,5,8,1) c. A method that takes an array of 13 ints and returns an array of 13 ints that is computed as follows: i. Digits at even index locations in the original array are copied directly to the return array at corresponding positions ii. Digits at odd index locations in the original amay are multiplied by 3 and copied to the return array at corresponding positions c(arr{1,2,3,4,5,6,7,8,9,0.1.2.3))-arr(1.6.3.12,5,18,7,24,9,0,3,2,3) c(arr (9.7.8.1,6.2.3.3.6.3.5.8.1))-arr(9.21836639.69.5.24.11 d. A method that takes an array of 13 ints and calculates and returns the sum of the first 12 ints in the array d((1.6.3.12,5.18,7,24.9.0.3,2,3})-90 d((9.21.8.3.6.6.3.9.6.9.5.24,1))-109 ©2022. Grand Canyon University. All Rights Reserved. e. A method that takes the sum calculated in part d and the last value in the integer array and returns i. True if the sum and the last integer are both o ii. True if (10- (sum%103) is equal to the last integer i. False otherwise e(90,3)-false e(109,1)-true f. Create a flowchart for a solution that i. reads in strings of digits from a file ii. calls the methods you've designed to determine whether or not each string of digits has the desired property iii. outputs each string of digits that satisfies the property, one per line. 3. Create a video in which you present your method signatures and flowcharts. Videos over 5 minutes in length will not be accepted. 4. Submit the following: a. A .png file containing the requested method signatures and flowcharts b. A link to your video Sample method signature and flowchart for method a
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply