MindTapV2.0 for Farrell's Java Programming with 2021 Updates, 9th Edition [Instant Access], 1 term
9th Edition
ISBN: 9780357505540
Author: Farrell; Joyce
Publisher: Cengage Learning US
expand_more
expand_more
format_list_bulleted
Question
Chapter 8, Problem 3RQ
Program Plan Intro
To find the correct from the given options.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Fill-in-the-Blank
The number inside the brackets of an array definition is the _________, but the number inside an array’s brackets in an assignment statement, or any other statement that works with the contents of the array, is the _________.
Program Number 2: Password Verifier Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that user’s passwords meet the following criteria:
The password should be at least six characters long.
The password should contain at least one uppercase and at least one lowercase letter.
The password should have at least one digit.
Contains at least one @ in array.
Write a program that asks for a password and then verifies that it meets the stated criteria. If it doesn’t, the program should display a message telling the user why.
FYI: Please write the code in Pseudocode (no programming language please)
1. Write pseudocode to load a single array with data. Then search that array for a match. Here are the specifics. You do NOT have to write the entire program.
Load the array with data from a file named customerNumbers
Ask the user to enter their customer number
Search the array for the customer number
If you find a match output FOUND
If there is no match output NOT FOUND
Chapter 8 Solutions
MindTapV2.0 for Farrell's Java Programming with 2021 Updates, 9th Edition [Instant Access], 1 term
Knowledge Booster
Similar questions
- (Electrical eng.) Write a program that declares three one-dimensional arrays named volts, current, and resistance. Each array should be declared in main() and be capable of holding 10 double-precision numbers. The numbers to store in current are 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, and 3.98. The numbers to store in resistance are 4, 8.5, 6, 7.35, 9, 15.3, 3, 5.4, 2.9, and 4.8. Your program should pass these three arrays to a function named calc_volts(), which should calculate elements in the volts array as the product of the corresponding elements in the current and resistance arrays (for example ,volts[1]=current[1]resistance[1]). After calc_volts() has passed values to the volts array, the values in the array should be displayed from inside main().arrow_forwardFill-in-the-Blank By using the same _________ for multiple arrays, you can build relationships between the data stored in the arrays. These arrays are referred to as parallel arrays.arrow_forwardPython: Numpy def shopping_spree(spending_limit, store_nums):"""QUESTION 1- You and your friends decide to go on a shopping spree! You each have a spendinglimit listed in a 1D array called spending_limit.- You each know you will be going to a specific number of stores, store_nums, which is alsoa 1D array.- Sales tax is 7% at every store.- Calculate the average amount that you and each of your friends can spend at astore- Excluding sales tax from this calculation.- Return an array of how much you can each spend at a store, excluding sales tax.- THIS MUST BE DONE IN ONE LINEArgs:spending_limit (np.array)store_nums (np.array)Returns:np.array>> store_nums = np.array([15, 12, 8, 3, 4, 3, 6, 5, 7, 4])spending_limit = np.array([200, 500, 330, 120, 85, 60, 220, 190, 490, 300])>> print(shopping_spree(spending_limit, store_nums))[12.46105919 38.94080997 38.55140187 37.38317757 19.85981308 18.6915887934.26791277 35.51401869 65.42056075 70.09345794]"""# store_nums = np.array([15, 12,…arrow_forward
- Fill-in-the-Blank Array names can be used as __________ and vice versa.arrow_forwardAn array ’s elements are related by the fact that they have the same________ and_______ .arrow_forwarda) create a method that accepts a 2D array and shuffles it values (like playing cards) b) test your method from main: print your 2D array before and after c) create a similar method that will return the array. Call and test it from main .arrow_forward
- Assignment: Create a program which does the following: 1. Asks the user for 5 numbers and stores them in an array. 2. Prints out the numbers entered. 3. Prints out the average of all the numbers 100 or less. Cree un programa que haga lo siguiente: 1. Imprime los números ingresados. 2. Imprime los números ingresados. 3. Imprime el promedio de todos los números 100 o menos. An example of possible output is shown below: A continuación se muestra un ejemplo de salida posible. Output You entered the following numbers: 101 100 155 90 65 There were 2 numbers larger than 100 [101, 100, 155, 90, 65] The average of the numbers 100 or smaller is: 85.0arrow_forward3x3 2d array filled with random numbers from 0-9 without repetitions using functions and pointers let the user choose from 5 options.1-fill the array with random numbers.2-print the array.3-print the largest number in the array.4-print the diagonal line from the array.5-type "." to exit the program.arrow_forwardQuestion 1 Write a program, ArrayRange, that asks the user to input integers and that displays the difference between the largest and the smallest. You should ask the user the number of integers user would like to enter (this will allow you to set the length of the array). Allow the user to input all the numbers and then store them in the array. Search the array for the largest number, then search for the smallest, and finally compute the calculation. Display all the numbers given by the user, the max number, the min number, and the difference. (Use Loop, Array)arrow_forward
- Choose correct option: Which statement is true for the Array class? a) Arrays can have variable length b) The length array can be changed c) Each class has an associated Array class d) Arrays can contain different type of valuesarrow_forwardTRUE or FALSEA static array's capacity will change whenever it deems necessary.arrow_forwardAssignment: Create a program which does the following: 1. Asks the user for 5 numbers and stores them in an array. 2. Prints out the numbers entered. 3. Prints out the average of all the numbers 100 or less.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning