Write a program to use parallel arrays to save User ID and Password. Ask the user to enter the user ID and Passwords for 3 users Save the above information in two parallel arrays (using the same index for each user) After the input is completed, ask the user to enter any user ID and then ask the password for that ID. Confirm if the User ID and password match, if not ask the password
Q: Dr. Choi has 5 students who took a midterm and final. 1.First, she wants to store their midterm and…
A: As no coding language is mentioned I am solving this using Python. Written code: First Part: 1 and…
Q: a) Write a function that receives a 2D array with 3 rows and 5 columns and returns the summation…
A: /*Program to receive 2d array, display array and its sum*/ //incude standard header for…
Q: You are supposed to build a system for currency conversion into Pakistani rupees, US dollars,…
A: The ask is to design and build a currency converter program which takes user input of different…
Q: Write a program to simulate the rolling of two dice. The program should use Math.Random and…
A: Program: Programs are used to provide instructions to the computer system. It is mainly for…
Q: Extend the program below so that after closing the files, program asks the user to enter a name. The…
A: Programming instructions: Declare the required variables. Take a string from the user to search.…
Q: Write a program to help your instructor calculate the highest and the lowest grade in the final exam…
A: Let's see the solution.
Q: 1. Create an array of 8 disks with 4 disks of type Audio created at even indices and 4 disks of type…
A: It Iterates over an array holding the even and odd numbers of the two variables to store the…
Q: Rajesh is new in the program and just now he is familiar with the array in programming and he wants…
A: As per the given problem statement we have to develop a code in C++ to help Rajesh solve the task…
Q: Write a program to input two names from the user (let's say first name and second name). The program…
A: Input two string Copy them to arrays Create final array and store both arrays
Q: Using directives to reserve 5 data memory locations for array A, and reserve 9 data memory locations…
A: Assembly language directives provide data to the program and control the assembly process. Assembly…
Q: Draw the following graph with the edge values. Start Vertex = 0 and all the edges value are from…
A: I have written a simple C++ code that stores an array of characters of size 10. And prints the ASCII…
Q: Using the skeleton program file shown, complete a program that will prompt the user to enter in the…
A: As per the given question and the given skeleton, the program for finding the smallest integer in an…
Q: 4)Which of the following gives the memory address of the first element in array? A. array[0]; В.…
A: An arrangement of objects, pictures, or numbers in rows associated columns is named an array. Arrays…
Q: You are the class representative and your class advisor always requests your help to prepare the…
A: Numpy is an important core library for scientific computing. It is used to work with different kinds…
Q: Write a program in MIPS CODE QTSPIM that prompts the user to enter an integer value in an array, and…
A: ans is given below
Q: Write a program that will ask the user to input a number and check if the number exists in the given…
A: Algorithm : Step 1 : declare array of numbers. Step 2 : declare variables. Step 3 : ask for the…
Q: Create a program that add two 2D-Arrays. Prompt the user to input dimensions for row and column for…
A: Problem Description: Prompt user to enter the row and column for matrix 1 Prompt user to enter the…
Q: Write a Java program to display a three-month data usage report for three different yearly…
A: Here I have created a 2D array and then stored the data into it. Next, I have treated over the array…
Q: You are supposed to build a system that converts unit mm, cm, m and km. Write a program that asks 10…
A: Introduction of the Program: The C++ program takes 10 different lengths in a different unit from the…
Q: Don't copy from google or any other source Write a program that finds and shows the minimum and…
A: Here have to determine about c++ code for giving problem.
Q: Write a sub that creates an array day of size 7 and then populates it with the days of the week…
A: I have solved your questions with screenshots of code and output for better understanding
Q: Exercise 2: We are tasked to write a program that shows some information about 12 persons: first…
A: create three parallel arrays. use loop and indexing to store information. Each index represents…
Q: Write a program by taking 10 mix values is that positive n negative in array data type of array…
A: cout<< "Enter 10 numbers separated by space: "; for(int i =0;i<10;i++) { cin…
Q: Which of the following properties of arrays gives the number of elements in an array? a.…
A: Length property gives number of elements in an array. Option a.length is answer
Q: . Use two-dimensional array with size 7 columns and 5 rows. · Seat numbers are populated during…
A: The above java question code:
Q: Write a program that takes 6 integers from user and store them in an array. Calculate the Sum,…
A: Below is the required C program: - Program Approach: - Defining the necessary header file.…
Q: QUESTIOΝ- Write a program, which creates square matrices using two-dimensional array like those in…
A: #include <stdio.h> int main(){ int i,j,k,n,r[20][20],c; printf("\n Enter the matrix…
Q: Given an array of integers named ages, which of the following will query this array to get all…
A: Given: Array of integers named ages, which of the following will query this array to get all values…
Q: You have been hired by the SFPD fraud unit to help detect credit card fraud. They have given you a…
A: The answer is given below:-
Q: Write a program to use parallel arrays to save User ID and Password. Ask the user to enter the user…
A: Source code : IDPassword.java import java.util.Scanner; public class IDPassword {…
Q: Dr. Choi has 5 students who took a midterm and final. 1.First, she wants to store their midterm and…
A: As no coding language is mentioned I am solving this using Python to pass an array for finding the…
Q: Design and Implement a program that will INPUT FROM A FILE, the Name of a Student into a…
A: First, we create the input.txt with the following information: JOE 80.00MARY 94.25KEVIN 75.56ADAM…
Q: <?php /* NOTE: To see your output in the console, follow your output with a new line "\n" Write…
A: We need to provide Php code for given Scenario We assume ledzep consist of four member Robert…
Q: Write a program which asks user to enter total number of customers who have bought fruits today,…
A: The given problem is to be solved as a program where the user will ask the total number of customers…
Q: int table[2][3] = { {1, 2, 3}, {4, 5, 6} }; and consider that when you print the address of the…
A: We are given a 2-d array of integers and let's assume each integer is of 4 byte. Base address of the…
Q: You are the class representative and your class advisor always requests your help to prepare the…
A: PROGRAM: #Importing numpy package import numpy #Declaring array to store students score scores =…
Q: Create a program that creates a matrix when the user is asked for the rows and columns dimensions.…
A: The program is written in Java. Check the program screenshot for the correct indentation. Please…
Q: In the attached spreadsheet, you are given homework grades of 25 students. Sheet 1 (hw1) stores the…
A: possible solution, using two-way databinding <button mat-raised-button…
Q: Write a program to help them analyze their data. Your program must contain parallel arrays: an array…
A: Introduction: In this question, we are asked to create two array, 1st is 1D and 2nd is 2D In 1st…
Q: Using a multidimensional array, create a triangular-shaped array. You will ask the user how many…
A: A multi-dimensional array is an array of arrays. 2-dimensional arrays are the most commonly used.…
Q: write a python program to find whether how many students have scored a zero in a course. Use arrays…
A: marksOfStudents=[12,15,20,0,21,13,30,0,14,0] #an array of markscount=0;…
Q: Rajesh is new in the program and just now he is familiar with the array in programming and he wants…
A: Algorithm: 1. Take input from the user 2. Run a loop to take input array 3. Pass through the…
Q: read the program; it looks a lot like warm up 2, right? instead of reading data from a text file to…
A: Solution: In the code that is given in the question : input validation can be performed as follows…
Q: You are the class representative and your class advisor always requests your help to prepare the…
A: import numpy marksArray= numpy.array([0,1,0,2,3,4,5,0,6,0]); #array to store marks of students…
Q: Write a program to input the following values into an array named volts: 10.95, 16.32, 12.15, 8.22,…
A: As no programming language is mentioned, the program is solved using basic C++
Q: Write a program that creates a 10 element double array to store program grades and reads 10 values…
A: using System; namespace Grades{ public class Program { static void Main(string[] args) {…
Q: Which of the following are true about arrays?
A: Array is a collection of elements of similar datatypes
Q: program to use parallel arrays to save User ID and Password. Ask the user to enter the user ID and…
A: Write a program to use parallel arrays to save User ID and Password. Ask the user to enter the user…
Write a
- Ask the user to enter the user ID and Passwords for 3 users
- Save the above information in two parallel arrays (using the same index for each user)
- After the input is completed, ask the user to enter any user ID and then ask the password for that ID.
- Confirm if the User ID and password match, if not ask the password
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Create 10 accounts in an array with id 0, 1, ..., 9, and an initial balance of $100. The system prompts the user to enter an id. If the id is entered incorrectly, ask the user to enter a correct id. Once an id is accepted, the main menu is displayed as shown in the sample run. You can enter choice 1 for viewing the current balance, 2 for withdrawing money, 3 for depositing money, and 4 for exiting the main menu. Once you exit, the system will prompt for an id again. Thus, once the system starts, it will not stop.Write a program to use parallel arrays to save User ID and Password. Ask the user to enter the user ID and Passwords for 3 users Save the above information in two parallel arrays (using the same index for each user) After the input is completed, ask the user to enter any user ID and then ask the password for that ID. Confirm if the User ID and password match, if not ask the password Note - In java please thank youWrite a program to use parallel arrays to save User ID and Password. Ask the user to enter the user ID and Passwords for 3 users Save the above information in two parallel arrays (using the same index for each user) After the input is completed, ask the user to enter any user ID and then ask the password for that ID. Confirm if the User ID and pas sword match, if not ask the password again.
- Write a java labguage program to use parallel arrays to save User ID and Password. Ask the user to enter the user ID and Passwords for 3 users Save the above information in two parallel arrays (using the same index for each user) After the input is completed, ask the user to enter any user ID and then ask the password for that ID. Confirm if the User ID and password match, if not ask the passwordYou have to store and manage records of different books. Write a program that reads names, prices and authors of 15 books in an arrays getting from user. Program shall than display books in ascending order. It shall display and count books of same authors. Program shall also display and count books with same prices. Program shall also display name of most and least expensive book from the list. When user searches a book from array program shall be able to display index, price and author of that book.create an INDEXCEPTION value of the unique vowels and unique consonants that the name that was given to you can create. Use python processStep 1: For every unique vowel of a name, you need to get the first index of that vowel from the original string.Step 2: For each vowel index you get from step 1, you will get the unique consonant from that position. if the index is out of scope of the consonant array, ignore that vowel index.Step 3: For each unique consonant that you get from step 2, you need to get the first index of that consonant from the original string.Step 4: Get the value of indexception by adding all index you get from step 3.outputTO BE DISPLAYED- 2 lists that consists of unique vowels and unique consonants- The vowel, the vowel index, the consonant, the consonant indexFINAL OUTPUT- The total indexception value of the name that was given to you.
- Write a program that has 3 separate arrays: firstName, lastName, phone. Each array should should be populated with at least 10 entries and should include the 6 entries in the sample. The program should allow the user to enter a name and then search to determine if the name is in the array and the number of the subscript location. If found, the program should then display the first name, last name, and phone number. If not found, the computer should display a message saying "This name does not exist in database." If the first name exists more than once in your array, it should print all entries that meet the search parameter Use a loop to print all of the entries in your arrays. Technical Requirements: Include comments through out the program Use if and if-elif-else where appropriate Use 3 arrays Use at least 2 loops, depending on your implementation, you may need more Format output according to sample output data below You must have at least 10 entriesWrite a program that has 3 separate arrays: firstName, lastName, phone. Each array should should be populated with at least 10 entries and should include the 6 entries in the sample. The program should allow the user to enter a name and then search to determine if the name is in the array and the number of the subscript location. If found, the program should then display the first name, last name, and phone number. If not found, the computer should display a message saying "This name does not exist in database." If the first name exists more than once in your array, it should print all entries that meet the search parameter Use a loop to print all of the entries in your arrays. Technical Requirements: Include comments through out the program Use if and if-elif-else where appropriate Use 3 arrays Use at least 2 loops, depending on your implementation, you may need more Format output according to sample output data below You must have at least 10 entries In python below is what i'm…Create a program that allows you to create a fantasy football roster based on the existing list of available players. Your team can only have 5 players, so create an array that can store 5 possible players. Prompt the user to pick 5 players to add to their team. If the player is available in the list of availablePlayers, then add that player to the users array, and remove that player from the availablePlayers list. Then prompt the user to pick another player. Once all five players have been added, then print the list in the console. Create a search method to find the index at which the player is located in the availablePlayers list so you can remove the player, and make sure that they are an eligible pick. Here is a sample run of the program: Enter Player you would like on your team: Cam Newton Great! That player is added to your team! Enter Player you would like on your team: Travis Kelce Great! That player is added to your team! Enter Player you would like on your team: Alvin Kamara…
- Extend the program belowso that after closing the files, program asks the user to enter a name. The program should store this input as a string, and then search the name array for the ‘search name’ just entered by the user. If the search name is found in the name array, the program will print the name, age and wage corresponding to the search name to the screen. If the search name is not found in the name array, your program prints “Name not found” to the screen. The search would need to use string comparison functions. #include<stdio.h>#include<stdlib.h> char c;char name[10][50];int roll[10];float marks[10]; int main (int argc, char **argv) { FILE* f; if (argc != 2) { printf("No filename in the argument"); return 1; } f = fopen(argv[1], "r"); if (f == NULL) { printf("The file cannot be opened successfully: %s\n",argv[1]); return 1; } printf("The file has been opened successfully\n\n"); int lines = 0;…Write a program in which the user will create an array of numbers. Take note the user will be the one to decide the number of rows and columns, and will be the onė to input the elemets of the array. Let the program display the matrix. Then, the program must ask the user which one is to display-the minimum or the maximum element of the array.Write a program to help your instructor calculate the highest and the lowest grade in the final exam of his/her CSC1250 section. Your program should ask the instructor to enter the number of students and then the grade for every student. The grades should be stored in an array. Then the program should find and display the highest and the lowest grade in the array as shown the sample run below. Sample run 1: Enter the number of Students: 5 Enter grade for student l: 80.5 Enter grade for student 2: 35 Enter grade for student 3: 75.5 Using java Enter grade for student 4: 90 Enter grade for student 5: 63.4 The highest grade is 90 The lowest grade is 35.0 Sample run 2: Enter the number of Students: 3 Enter grade for student 1: 80 Enter grade for student 2: 60 Enter grade for student 3: 80 The highest grade is 80 The lowest grade is 60