(21) 2. Write a Java application that asks the user to enter a car model or 'done' when finished. If the user enters a car model, ask the user to enter the color of that car model. Store the cars and colors in ArrayLists of type String. When the while loop completes, use a for loop to print out the car and color as shown below:
Q: Nowadays, you may connect to the Internet using your cell phone or other mobile device, which is…
A: Some of the ways to prevent data loss or theft from a mobile device include: -Avoid using public…
Q: Modern home appliances now come with wireless connection as a given thanks to technical…
A: Wireless technology has helped people in various ways, especially in business where time is profit.…
Q: If the operating system is not routinely patched, what configuration is recommended for each server?
A: Introduction Poor patch management may expose an organization's data to malware and ransomware…
Q: What are the boundaries and scope of cybercrime?
A: Introduction: Cybercrime is defined as any illegal activity carried out with the use of a computer,…
Q: What are the two most frequently used file types? Do these two types of files vary in any way, or…
A: Introduction: A binary code represents text, computer processor instructions, or any other data…
Q: You and a coworker often participate in online role-playing games. Someone recently used malware…
A: Introduction: Three Identity theft hazards when playing: Online gaming is a common danger. Users…
Q: how different operating systems handle files. How can you distinguish NTFS from FAT? no similarity
A:
Q: How do you begin your search for a reporting tool like Tableau? What skills will you need, and how…
A: Introduction: I believe that data visualization is essential to decision-making.Data visualization…
Q: What sets materialized views apart from other views in comparison to the others?
A: In this question we need to explain how materialized views are different from the other views in…
Q: What is TCP/IP protocol model?
A: Let's discuss the TCP/IP protocol model with each layer in detail:- TCP/IP protocol model TCP/IP…
Q: E-commerce has been more and more popular recently. What are the main factors that contributed to…
A: E-commerce has been more and more popular recently. The main factors that contributed to this…
Q: The possibility of Business Process Re-Engineering helping a corporation restructure its Information…
A: Given: Procedures in Business Re-engineering a company's business process refers to the act of…
Q: thanks but can i get this in the java language?
A: Code in java: import java.util.*; public class FindAlpha { static boolean isApha(char c) {…
Q: A data mart is precisely what? What does a data mart serve as?
A: info Mart: - That's why it's put to work for a certain purpose. It's a database for handling…
Q: Describe the Domain Name System, including its many forms, purposes, uses, and problems.
A: DNS security The Domain Name System (DNS) has vulnerabilities that hackers have discovered over time…
Q: What feature of filesystems stands out the most? In your answer, provide one filesystem example.
A: Example of File System: The Network File System (NFS) and the a Andrew File System are two examples…
Q: A cyberattack on the network system had an effect on the protocol.
A: Answer is given below:
Q: What methods and tools are available to deal with issues before and after a release?
A: Introduction: Error in calculations. This may be due to a novice coder. If the programmer is…
Q: What are the best methods for reducing the energy consumption of computer hardware?
A: Introduction: Get an 80%+ certified power adaptor since they are the greatest at keeping your cost…
Q: How does single-user multitasking operate? What is it? Explain using instances from ordinary life…
A: Introduction: A single user multitasking operating system enables a single user to run numerous apps…
Q: What will the value of eax be after this sequence? O 8 09 O 10 mov eax, 10 push eax dec [esp] inc…
A: Answer: 10
Q: Discuss five characteristics of of Decisions Support Systems
A: A decision support system is an internal business element that provides owners, executives, and…
Q: Do you know that a computer is a piece of technology with a lot of parts but no energy needed to run…
A: Computer: The computer is an electrical device capable of storing, retrieving, and processing data.…
Q: Distribution-based systems: Give a definition of the term "distributed systems." What important…
A: provided data: Systems that are distributed: Give a definition of the term "distributed systems. "…
Q: How would you manage the data flow between client and server apps when creating a multimedia…
A: A client/server network is a medium through which clients access resources and services from a…
Q: A storage device that the operating system does not recognize has been connected to your new MacBook…
A: Required: Your brand new MacBook Pro has a storage device attached to it that is not recognised by…
Q: Is it possible to lock yourself out during a transaction? Could you please tell me when this…
A: Introduction: Transaction locks.Locking uses lock modes, lock granularity, and transaction isolation…
Q: Choose one of the names of the next technologies from the list below: Internet of Things or 3D…
A: With these two technologies, we must provide an explanation of the technology and its uses. IOT…
Q: Why are formal software project management techniques required? What are your FYP/research…
A: Give a concise explanation of the necessity for formal software projects in your own words.…
Q: how several manifestations of cybercrime may occur Cybercrime could be avoided by creating new…
A: Introduction: When private information is intercepted or disclosed, whether intentionally or…
Q: 22FA CSC321-PRINCIPLES OF PROGRAMMING LANG 98312 Modify the following ambiguous grammar to…
A: Unambiguous Grammar A grammar can be unambiguous if the grammar does not contain ambiguity that…
Q: What are the advantages and disadvantages of using a probabilistic model for information retrieval?
A: PROBABILISTIC MODELS IN INFORMATION RETRIEVAL DEFINITION: In order to rate the matched documents in…
Q: the characteristics of the microprocessor that affect its speed. What will you say in answer, then?
A: The most important performance characteristic of a microprocessor is the speed at which it can…
Q: The hardware used to replicate Pep/9 has 64K memory. But what is its purpose? So far, just 0x0030 of…
A: Pep/9 equipment: The three parts that make up the Pep/9 hardware are the disc, the CPU, and the main…
Q: How do you add a link to an email message's body on a Windows computer?
A: Given: The first thing you need to do is log in to your Gmail account so that you may embed a link…
Q: What exactly is OWASP Zed Attack Proxy (ZAP), also known as WebScarab? Its place in security testing…
A: Introduction: OWASP ZAP: OWASP (Open Web Application Security Project) ZAP is a popular security…
Q: Modern home appliances now come with wireless connection as a given thanks to technical…
A: Given: Users are able to connect network devices wirelessly, eliminating the need for cables in the…
Q: Why is it possible that when you look at a folder's properties, the Security tab is missing from the…
A: Introduction: Folder security is provided by Security, which prevents anyone from accessing the…
Q: what does the word "computer" mean?
A: A device that accepts information and manipulates it for some result based on a program or sequence…
Q: e potential of artificial intelligence in light of its current developments
A: in the following section we will be discussing about the potential of artificial intelligence in…
Q: In message synchronization, what is a rendezvous? When receive blocks, but send is non-blocking When…
A: Message sychronization , rendezvous
Q: number to month name in dataframe in pandas
A: Lets see the solution.
Q: Depending on what it does, it may also go by the names hub, repeater, firewall, T-connector, or…
A: Introduction: Network devices are the pieces of hardware that allow you to link many sources and…
Q: Given the context Free Grammar G = {{S}, {a, b, +, x), P, S} where P consists of the following…
A: Hi please find the solution below and I hope it would be helpful for you.
Q: Making sure that only approved packets enter the network is the responsibility of a router,…
A: Answer: Among computer networks, a router is a networking device that forwards data packets. On the…
Q: Why should we test and evaluate the performance of neural networks?
A: A neural network is a collection of algorithms that aims to identify underlying links in a piece of…
Q: You and a coworker often participate in online role-playing games. Someone recently used malware…
A: When playing the game Identity Theft, there are three potential risks: It is one of the common risks…
Q: research "primary and foreign keys" and summarize your findings. In your writing be sure to answer:…
A: Primary Key: What are they? An primary key is a field in a table which extraordinarily recognizes…
Q: In this problem, we wish to design and build components of an assessment management system using…
A: import ballerina/io; import ballerina/grpc as grpc; ReposityOfFunctionsClient ep = check new…
Q: What are five examples of software applications that the government and business consider to be…
A: What it mean legal and illegal software applications : Software platforms created especially to…
Step by step
Solved in 4 steps with 3 images
- Rest of code in image / This is a bad programming style since it is using goto. // This is an spagetti code and not working.// Use function to display menu, and display game rules,// Use different color for text display.// fix it so it works any way you like./*HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE); // Write 16 lines in 16 different colors. for (int color = 0; color < 16; color++) { SetConsoleTextAttribute (screen, color); cout << " Hello World!" << endl; Sleep(400); // Pause between lines to watch them appear } // Restore the normal text color) SetConsoleTextAttribute(screen, 7);*/#include <iostream>#include <windows.h>using namespace std;int main(){ //textbackground(WHITE); //textcolor(RED); system("cls"); char ch, a[20], ch2; int num = 100, rnum, guess, count, ch1, c = 0; cout << "**********************************************************"<<endl; cout << "*…Design a program that allows two players to play a game of tic-tac-toe. Use a two dimensional String array with three rows and three columns as the game board. Each element of the array should be initialized with a asterisk (*). The program should run a loop that does the following: Display the contents of the board array. Allows player 1 to select a location on the board for an X. The program should ask the user to enter the row and column number. Allows player 2 to select a location on the board for an O. The program should ask the user to enter the row and column number. Determines whether a player has won or if a tie has occurred. If a player has won, the program should declare that player the winner and end. If a tie has occurred, the program should say so and end. Player 1 wins when there are three X's in a row on the game board. Player 2 wins when there are three O's in a row on the game board. The winning X's or O's can appear in a row, in a column, or diagonally…Computer Science Part C: Interactive Driver Program Write an interactive driver program that creates a Course object (you can decide the name and roster/waitlist sizes). Then, use a loop to interactively allow the user to add students, drop students, or view the course. Display the result (success/failure) of each add/drop.
- Computer Science C# Programming Object Orientation Please use Arrays or ArrayLists where appropriate Implement a menu driven program that has some operations for a food truck. A food truck has multiple food items as well as a menu which contains a selection of the food items which will be sold for that day. A maximum of 10 food items can appear on the menu for any day. For each food item keep a code, description, category, price and quantity in stock (code, description and category are not usually changed). Create a comma delimited text file called "items.txt" for 15 or more food items, indicating the item's description, category, price and quantity in stock. Read all the food items from the text file “Items.txt” Display all the food items available for this food truck. Continuously prompt the user for a food item’s code to be placed on the menu until the menu is full or the user enters -1. Note that only food items which have a positive quantity in stock may be added to…Any loop statement can be used to traverse an array. True or False1. In the first loop, the low number will be the starting point for the loop and thehigh will be the ending point. The loop should display the iterator number andthat number x 10 on the same line, separated by a tab. See example on p. 177.2. The second loop should accumulate all the numbers between the starting pointand ending point. You will need to create and initialize an accumulator such astotal before you start the loop.
- Using a Sentinel Value to Control a while Loop Summary In this lab, you write a while loop that uses a sentinel value to control a loop in a Java program that has been provided. You also write the statements that make up the body of the loop. The source code file already contains the necessary variable declarations and output statements. Each theater patron enters a value from 0 to 4 indicating the number of stars the patron awards to the Guide’s featured movie of the week. The program executes continuously until the theater manager enters a negative number to quit. At the end of the program, you should display the average star rating for the movie. Instructions Ensure the file named MovieGuide.java is open. Write the while loop using a sentinel value to control the loop, and write the statements that make up the body of the loop to calculate the average star rating. Execute the program by clicking Run. Input the following: 0, 3, 4, 4, 1, 1, 2, -1 Check that the average…subject: microprocesor and assembly language Write a program that displays a string in all possible combinations of foreground and background colors (16 x 16 =256). The colors are numbered from 0 to 15, so you can use a nested loop to generate all possiblecombinations.In visual basic Write a For…Next loop that will printout each value in the array from problem 4.
- Java Write an application that allows a user to enter the names and birthdates of up to 10 friends. Continue to prompt the user for names and birthdates until the user enters the sentinel value ZZZ for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birthdate or "Sorry, no entry for name" if the name has not been previously entered. The loop continues until the user enters ZZZ for a name.In C++ Declare a constant “ SIZE = 5 ” Declare an array of ints , of size SIZE . Initialize that array to have the values 10, 12, 15, 19, 6 . – Write a loop that calculates and prints out the minimum value of the array. – Write a loop that calculates and prints out the maximum value of the array. – Write a loop that calculates and prints out the average value of the array.//Program 2 Write a Java program that displays a list of cars and their owners, and prices only four cars and four owners. This is what the program should include: 1. Array of objects 2. Passing array to methods 3. For traditional loop