Create a new Java project/class called Examine1. Prompt user as to how many numbers they would like to enter. Use a for loop to read in and sum that many numbers. Once all numbers entered, program should print out the sum total and average of those numbers entered by the user. Use the printf command to format.
Q: Write the pseudocode for an application that will implement the requirements below. Declare a…
A: Pseudocode is a made-up, informal language that aids in the creation of algorithms by programmers. A…
Q: Write a program that uses an array (of size 10) to demonstrate how to use the linear search…
A: Java: Java is a high level, class based, object oriented programming language. It was developed by…
Q: Distinguish between fast and slow frequency hopping spread spectrum with a suitable example in…
A:
Q: List the different types of malicious code and compare the virus protection tools.
A:
Q: The number of is panning is four...please explain...
A: As we can see that total number of spanning tree are 4 in the mentioned graph.
Q: Why are disc files fragmented and scattered across the disc surface(s)?
A: Introduction: In a computer, a disc is used to store data.
Q: Complete the following tasks: Design a class named StockTransaction that holds a stock symbol…
A: Design a class named StockTransaction that holds a stock symbol (typically one to four characters),…
Q: Explain the General Structure of CPU.
A: INTRODUCTION A CPU is the rationale hardware that answers and cycles the fundamental guidelines…
Q: A petroleum cut has the following TBP Distillation data: Volume % distillate 0 10 30 50 70 90 95…
A:
Q: What happens if the priority levels of several processes are the same in CPU scheduling?
A: Introduction: Priority Scheduling is a prioritization-based scheduling approach.
Q: Write a python code to get a 5 letter words in a user entered string. Please don't use nested loops.
A: Introduction to the question: In this question we have to find out the first 5 word form the user…
Q: A Read Replica appears "stuck" after a Multi-AZ failover and is unable to obtain or apply updates…
A: Question wants solution for a problem in AWS AZ.
Q: Alice and Bob use the ElGamal scheme with a common prime q= 131 and a primitive root a = 6. Let…
A: The answer is
Q: Describe the significance and applicability of information systems in several corporate functional…
A: Introduction: For a corporation to be successful, handling organisational and financial data…
Q: ow to its equiv
A: Given DFA:
Q: Write a note on Computer virus
A: Virus is a type of software that can be harm our computer, tab or mobile.
Q: How may port numbers be used? What are they?
A: Answer:- A port is a number that specifies the host and the service in order to specifically…
Q: Compute the subnet mask, subnet address, broadcast address and the IP host ranges of 192.168.3.55/24…
A: subnet mask - 255.255.255.0 subnet address- 192.168.3.55 Broadcast address -192.168.3.255 IP host…
Q: Explain what application virtualization is and why it's important.
A: Introduction- Through the process of application virtualization, we use many machines. 1>The…
Q: Explain the cache memory in detail.
A: One of the special memories that possesses the property of very high speed is termed as cache…
Q: HAZOP SAFETY SUBJECT Hazards at work can be diminished by using several layers of protection and…
A: Here we have given a brief note on couple of questions posed. you can find the solution in step 2.
Q: Question 2 Suppose a fire broke out on your campus and most of the furniture, the computer systems…
A: Your campus director has a few business continuity methods from which to choose. The first step is…
Q: What are the two criteria for classification of the advanced operating systems? Discuss any two…
A:
Q: We create a binary search tree B₁ by inserting the numbers 1, 2, 3, 4, 5 into an empty binary search…
A: Creation of B1
Q: What are the difficulties in troubleshooting DNS errors?
A: What is DNS? DNS, or domain name system, is the mechanism that links website domain names (like…
Q: Why do ML programmers frequently specify variable types even when they are not required to?
A: As a high-level programming language, ML possesses many qualities that programmers and language…
Q: Instructions A pedometer treats walking 2,000 steps as walking 1 mile. It assumes that one step is a…
A: Given that, 1 step is considered as 18.315 inches and 1 inch is taken as 36630. Which means, 1 step…
Q: Write a note on Computer virus
A:
Q: The output of the following program is: public class MCQ { public static void main(String[] args) {
A: Introduction: Below run the program with output
Q: Distinguish between system analysis and system design, and discuss the importance of the two in…
A: System analysis is a process which is used to study a system including an information system that…
Q: edure to eliminate unit productions Need a prop
A: Introduction: Below the procedure to eliminate unit productions Need a proper explanation.
Q: Explain the General Structure of CPU.
A:
Q: Explain the following terms and describe what they are used for: HTML, URL, XML, Java, JSP, XSL,…
A:
Q: creen. Explain what Mike must do to try
A: SUMMARYQuestions that you must keep in mind :When did you last back up all your important documents…
Q: Q1) Write a query that count the employees in each department? Q2) Write a query that retrieve all…
A:
Q: How would you use SQL to change the layout of a table? What kinds of changes are generally possible?…
A: Introduction: Tables, which are database objects, are used as containers for the data in the…
Q: Explain the following terms: Cursor, Embedded SQL, JDBC, SQLJ, stored procedure.
A: Explain the following terms: Cursor, Embedded SQL, JDBC, SQLJ, stored procedure.
Q: Write a note on Computer virus
A:
Q: Process the records and display the results formatted as a table, evenly spaced, as shown in the…
A: Solution- Programming Language - Python Make sure your csv file is stored on same location of…
Q: Explore what a hacker can do to make use of the coding problem of buffer overflow.
A: Given: We have to discuss Explore what a hacker can do to make use of the coding problem of buffer…
Q: QUESTION 2 Given the following text file named Stud FKM. txt in Figure 1 that contains the…
A: Solution:: RecruitAthlete.java import java.io.*; public class RecruitAthlete { public…
Q: Write a function called translate_to_italian () that takes a string as a parameter (a colour).…
A: We chose C++ to execute this logic but this can be applied in any programming language.
Q: C++ Input an integer, output the absolute value of the integer。 use switch-case Can't be use…
A: #include< iostream > #include< cstdlib > using namespace std ; int main () { int number…
Q: Compute the subnet mask, subnet address, broadcast address and the IP host ranges of 192.168.3.55/24…
A: ANSWER:
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: Given the following grammar in BNF:→=→X | Y | Z → % | →→? |→ () | a) Change the grammer rules so…
A: New Grammar Rules → < var > = → X | Y | Z → % → ? → ( ) → ! → ~ < var >
Q: Many companies advertise open positions on their Web sites. Some even allow candidates to submit…
A: ANSWER:-
Q: As Per the AWS Acceptable Use Policy, penetration testing of EC2 instances can happen or not?
A: Question is asking for penetration testing of AWS EC2 instances.
Q: Describe how authentication and authorization differ.
A: The following is the difference between authentication and authorization Authentication: Verifying…
Q: 3.1 Define and explain the purpose of the run () method in the Runnable Interface. 3.2 Write a Java…
A: 3.1 A concurrent thread can run code using the Java runnable interface. Any class must implement…
Create a new Java project/class called Examine1.
Prompt user as to how many numbers they would like to enter.
Use a for loop to read in and sum that many numbers.
Once all numbers entered, program should print out the sum total and average of those numbers entered by the user. Use the printf command to format.
Step by step
Solved in 3 steps with 3 images
- USE 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. An example of the program is shown below: Enter a name Lan Enter birthdate with slashes between the month, day, and year 12/25/1983 Enter a name or ZZZ to quit Marylouise Enter birthdate with slashes between the month, day, and year 2/20/1992 Enter a name or ZZZ to quit Arminda Enter birthdate with slashes between the month, day, and year 8/30/1992 Enter a name or ZZZ to quit Gudrun…Using a Counter-Controlled whileLoop Summary In this lab, you use a counter-controlled while loop in a Java program provided for you. When completed, the program should print the numbers 0 through 10, along with their values multiplied by 2 and by 10. The data file contains the necessary variable declarations and some output statements. Instructions Ensure the file named Multiply.java is open. Write a counter-controlled while loop that uses the loop control variable to take on the values 0 through 10. Remember to initialize the loop control variable before the program enters the loop. In the body of the loop, multiply the value of the loop control variable by 2 and by 10. Remember to change the value of the loop control variable in the body of the loop. Execute the program by clicking Run. Record the output of this program.Write a program with a loop that lets the user enter a series of integers, followed by 99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered.
- Write a program that asks the user to enter today’s sales for five stores. The program shouldthen display a bar chart comparing each store’s sales. Create each bar in the bar chart bydisplaying a row or asterisks. Each asterisk should represent $100 of sales. You must usea loop to print the bar chart.If the user enters a negative value for the sales amount, the program will keep asking theuser to enter the sales amount until a positive amount is entered,You must use methods, loops and arrays for this assignment.Sample Run 1:Enter today's sale for store 1 (negative value not allowed)1000Enter today's sale for store 2 (negative value not allowed)1200Enter today's sale for store 3 (negative value not allowed)1800Enter today's sale for store 4 (negative value not allowed)800Enter today's sale for store 5 (negative value not allowed)1900SALES BAR CHARTStore 1:**********Store 2:************Store 3:******************Store 4:********Store 5:*******************Sample Run 2:Enter today's sale…Write a procedure called print_nums(n). This procedure should take a number n as its only parameter and print all numbers from 1 up to and including n as its output. Your program must use a while loop to print these numbers. No for loop is allowed in your answer. Do not call the procedure. For example: Test Result print_nums(5) 1 2 3 4 5 print_nums(2) 1 2Write a program uses a loop to have the user enter several numbers and keep a running total. The loop should iterate 10 times, input one number from the user each time, and keep a running total of the numbers entered. When the loop finishes, display the accumulated total of all ten numbers. Please use JOptionPane and the for loop.
- create a loop which, in each iteration, generates a new random value, assigns it to val using the line provided and checks to see if that val is greater than 0.5. If val is greater than 0.5, a variable named counter should be incremented. The loop should continue this process (generate random value, check if it is greater than 0.5) until a total of three random numbers generated are greater than 0.5 (values do not have to be consecutive). You should also use the variable named numIterations, which is included for you, to track how many iterations of your loop were required for you to generate three random numbers greater than 0.5. A println() statement is included for you that displays the value of numIterations. public class Question1 {public static void main(String[] args) {double val;int counter = 0;int numIterations = 0;/*** Part a: Implement a branching condition that increases counter by 1 if val is larger than 0.5*/val = Math.random();/*** Part b: Add a loop around the code…n is an integer variable.Write a while loop that prints integer numbers starting with n and dividing the number to 4 each time, while the new number is greater than 0.(Example: If n is 2077, it will print 2077 519 129 ...)Write only the statements to perform the above explained task, nothing else.Use while loop, don't use for loop.Please solve this using java Write an application that allows a user to enter the names and birth dates of up to 10 friends. Continue to prompt the user for names and birth-dates 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 birth-date or an error message if the name has not been previously entered. The loop continues until the user enters “ZZZ” for a name.
- Write a program that asks the user for a starting value and an ending value and then writes all the integers (inclusive) between those two values. Use a while loop.Your program should use a loop to read data from a text file which contains students' names and 3 exam scores. The program should calculate the exam average for each student, determine the appropriate letter grade for that exam average, and print the name, average, and letter grade. After printing all this, you need to print the count of the total number of A's, B's, C's, D's, and F's for the whole class. The text file you need to use can be accessed using this link: scores.txt. Copy this file to the folder where your program will reside. The text file contains a list of 30 records, and each record contains a name and that person's 3 test scores. Each field is separated by a tab character. The first 2 records looks like this: Davis 88 92 84Wilson 98 80 73 and so on. Your program will need to open this file and read each line until the end of file. I recommend calculating a student's exam average and letter grade as you read the file, although this is not a…ASAP IN PYTHON Write a program which uses a loop to repeatedly read numbers between 10 and 99 until the user enters "done". Once "done" is entered, print out the mean, median, minimum, and maximum. If the user enters anything other than a number or an invalid number, print an error message and skip to the next number