(a) Write a Java program that computes and prints out all prime numbers <200. Print these prime numbers 8 in a row. A prime number is a positive integer > 1 with 1 and itself as the only two divisors. So, 2, 3, 5, 7, 11, 13, 17, 19 are the first 8 prime integers. To compute prime numbers, you may use the % (modulo) operator.
Q: Discuss the merits and downsides of frequent software updates from the standpoint of the end user.…
A: As the software developer, updating the applications and the software help you a lot because after…
Q: Q1) B) Consider you have library database, with the following relations: Book(bookID, name, auther,…
A: The correct solution is given below with schema diagram and primary key, foreign keys
Q: Do data breaches have any impact on the cloud's security? Do you have any notion what kind of…
A: Data breaches include stolen information, ransomware, phishing, password guessing, viruses, malware,…
Q: Q25/ A stable multivibrator operating at 100 Hz has a discharge time 2ms. The duty cycle of the…
A: A stable multivibrator operating system at 100Hz has discharge time 2ms. The duty cycle of circuit.
Q: After displaying the COVID data for two countries, you wish to add the daily CFR (Case Fatality…
A: According to the question, we have to write a syntax to add a new column for the CFR values in the…
Q: What do you mean by software engineering and why do you think it should be used in software…
A: In this question it is asked that what is software engineering and why it is so important when we…
Q: Calculate the value and the type for the following expressions: a) 11 + 4.2 // 2 * 9 b) ((((13 + 5)…
A: We have to calculate the value and the type for expressions: We will see operator precedence first…
Q: Write a C program to count the number of occurrences of any two vowels in succession in a line of…
A: Hello student, hope you are doing good. The C code for the given problem is attached below along…
Q: Q10/- is minimum sampling rate to avoid aliasing when a continuous time signal is given by x(t) = 5…
A:
Q: Solve by Gaussian elimination x-4y-2z = 21 2x+y + 2z = 3 3x+2y-z = -2
A: the solution is an given below :
Q: Given vec = 1:10, which statement below produces the same value of s as does the ?following script s…
A: The vector will contain the values from 1 to 10.
Q: Explain briefly how the weighted approach may be used to convert decimal to ternary in a ternary…
A: Intro To the above-mentioned query. Please find the answer below. I'm writing the answer to this…
Q: In a setting that relies heavily on timesharing, which type of process scheduling is the most…
A: Process planning / activity is done to complete the task on time. CPU scheduling is a process that…
Q: what is the main difference between ?Jacobi's method and Gauss-seidel Deviation from the correct…
A: One question is incomplete and the other one is complete. So only the final question has been…
Q: Q1/ The unit vector directed from point A(2,5,1) to point B(-1,4,-2) can be expressed as O(a) 0.69…
A: Unit Vector: A vector with magnitude 1 is called unit vector. It is represented by ∧ or →. It is…
Q: C++ Code is allowed: Sachin has a rectangular paper of his usual work. Sachin knows that he will…
A: According to the information given:- We have to follow the instruction in order to get desired out…
Q: Discuss the merits and downsides of frequent software updates from the standpoint of the end user.…
A: Software: Software is a set of instructions, programs, methods, etc., utilized to complete a certain…
Q: Q. what are the types of code cloning in software cloning?|
A: As per the question statement, We need to list the different types of code cloning.
Q: What are the most effective ways to administer a firewall, in your opinion? Explain.
A: Given: What kinds of management tactics for the firewall do you consider to be the most effective?…
Q: The benefits and disadvantages of weighted graphs against adjacency lists should be compared.
A: Introduction: One possible drawback of the adjacency-list format is that there is no faster method…
Q: Create a function which simulates the game "Rock, Paper, Scissors". The function takes the input of…
A: Introduction: In this question, we are asked to write a python program for "Rock, Paper and…
Q: Write a PHP program which iterates the integers from 1 to 10. You will need to create and declare a…
A: Answer: Algorithm Step1: first we have initialized i with 1 and run the while loop up to 10 Stpe2:…
Q: Find the sum of series for which n-th term is given by an= 4/(5^n)
A: Step-1: Start Step-2: Declare variable n and sum Step-3: Take input number of terms and store in n…
Q: Name and describe an operating system that doesn'tu support time sharing feature.
A: Systems have multiple programs, and collections have provided a place where different system…
Q: 1. Apply the bottom-up dynamic programming algorithm to the following instance of the knapsack…
A: The question is to solve the knapsack problem with the given instances.
Q: | IF A = -4 0 3 3 -21 -1 The Cofactor Matrix is :- 0
A:
Q: Having a solid understanding of computers gives a variety of advantages, not just when it comes to…
A: Adopting Technological: Adoption of technology is a word that describes the process through which a…
Q: Do data breaches have any impact on the cloud's security? Do you have any notion what kind of…
A: Given: Theft of data, ransomware, phishing, guessing of passwords, viruses, malware,…
Q: How important is it that students make use of various forms of technology to assist them in their…
A: The answer of this question is as follows:
Q: A binary heap is a complete binary tree which satisfies the heap ordering property. The diagram…
A: Please check the step 2 for code and step 3 for screenshot of code and output
Q: Class definitions for MonthCalender and DateTimerPicker may be found in the sections that follow.
A: This is useful for calculating the worth of a given date or time. This is a graphical interface for…
Q: Write a C program that compares two given dates. To store a date use a structure that contains three…
A: As per the question statement, We need to write C program.
Q: if BMI is a user defined function that called in the command window as shown BMI (L,W)...we may say…
A: QUESTION1: They are group of statements that are used to perform some tasks In a C programme, we can…
Q: algorithm
A: Given :- In the above question, a weighted graph is mention in the above given question Need to…
Q: Discuss the current state of the malware industry and its standards.
A: A network of organizations, persons, and websites that acquire and sell harmful software is referred…
Q: Show parse tree
A:
Q: Is Cisco planning to implement IP networked access control?
A: The Answer is in given below steps
Q: Q41 Correct the following program: (A) (B) Matlab a= = 9 while loop execution whiel a < 20 a = a +…
A: The following MATLAB programs are corrected and given below with output screenshots
Q: What are the benefits of using information and communications technology into educational and…
A: It has been demonstrated that the utilization of ICT in the homeroom builds the inspiration of the…
Q: Are there any issues with using adjacency lists to depict a weighted graph?
A: Weighted Graph: If weight is given to each edge of a graph, that particular graph is referred to as…
Q: Why are paging and linear memory interrelated?
A: Intro \paging: Paging is a feature that is used to make it feasible for a computer to execute a…
Q: Define a function called get_sibling (a_list, index) which takes a binary min-heap represented and…
A: solution in below step
Q: Class definitions for MonthCalender and DateTimerPicker may be found in the sections that follow
A: DateTimerPicker: 1 Useful for calculating the value of a certain date and/or time. This is an…
Q: Explain the distinctions between the three types of memory: EPROM, EEPROM, and Flash Memory.
A: The digital system is described using three memory-related words. EPROM, EEPROM, and Flash Memory…
Q: within the context of education, both formal and informal?
A: normal education is a student in a traditional classroom. Informal education is anything that is…
Q: A binary heap is a complete binary tree which satisfies the heap ordering property. The diagram…
A: Please check the step 2 for code and step 3 for screenshot of code and output
Q: Q23/ The bandwidth for an FSK signal with a mark frequency of 32 kHz, a space frequency of 24 kHz,…
A: Mark frequency = 32 kHz Space frequency = 24 kHz Bit rate = 4 bps
Q: Describe the process through which a downgrade attack occurs.
A: Answer: We will discuss here process through which a downgrade attack occurs Downgrade attack is the…
Q: Take, for example, a database for an airline, which makes use of snapshot isolation in the database…
A: Snapshot Isolation: Snapshot isolation is a guarantee in databases and transaction processing…
Q: What OOP concept/mechanism is employed in the code below? 1-public class Plant { 2- String…
A: answer is F. Polymorphism The above class is an example of polymorphism Polymorphism is nothing…
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- Please code in python Forbidden concepts: recursion, custom classes Create a program that takes a university student’s name, their 1st parent’s income, and their second parent’s income. If the average income between the parents is $40,000 or below, then it would put them into a Tuition Grant list. If it’s above, then it would be a Full Tuition Required list. Once the university admission officer has completed inputting all the students, the program will end and print out the two lists.CSCI 2436:01L Data Structures Lab Lab 1 - Chapter 4 The Efficiency of Algorithms In this lab, you will practice how to measure the running time f a section of code in Java. One approach is to use System.nano Time() where the current time is stored as a long integer equals to the number of nanoseconds. By subtracting the starting time in nanoseconds from the ending time in nanoseconds, you get the run time-in nanoseconds of a section of code. public static void main(String[] args) { int n1 = 10, n2 = 100, n3 = 1000, n4 = 10000; long n1Time, n2Time, n3Time, n4Time; n1Time AlgorithmA (nl); For example, suppose that AlgorithmA is the name of a method you wish to time. The following statements will compute the number of nanoseconds that AlgorithmA requires to execute: } public static long AlgorithmA (int n) { long startTime, endTime, elapsedTime; startTime = System.nanoTime (); int sum = 0; for (int i = 1; i 0 1 2. By midnight, Tuesday, Jan 24th, submit your Java source file and a…JAVA LANGUAGE Body Mass Index Version 2.0 by CodeChum Admin Recall that according to the National Heart, Lung, and Blood Institute of the National Institutes of Health, body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. It is used to monitor one's health by determining whether one is underweight, overweight, has normal weight or is obese. It is computed based as follows (when using standard weight in pounds and height in inches): BMI = 703 x (weight/(height2)) Furthermore, people with BMI scores that are less than 18.5 are said to be underweight. Those with scores between 18.5–24.9 (inclusive) are of normal weight. Those with scores between 25–29.9 (inclusive) are said to be overweight. And those with scores 30 or higher are obese. Input The input is composed of two positive integers representing the weight in pounds and the height in inches. 140·65 Output A single line containing two values: the computed…
- //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 loopClass: Blocks Write a program that prompts for an integer (that a side length) and displays, using asterisks, a filled and hollow square, placed next to each other. For example if the side length is 5, the program should display: ***** ********** * ****** * ****** * ****** *****// SuperMarket.java - This program creates a report that lists weekly hours worked // by employees of a supermarket. The report lists total hours for // each day of one week. // Input: Interactive // Output: Report. import java.util.Scanner; public class SuperMarket { public static void main(String args[]) { // Declare variables. final String HEAD1 = "WEEKLY HOURS WORKED"; final String DAY_FOOTER = " Day Total "; // Leading spaces are intentional. final String SENTINEL = "done"; // Named constant for sentinel value. double hoursWorked = 0; // Current record hours. String hoursWorkedString = ""; // String version of hours String dayOfWeek; // Current record day of week. double hoursTotal = 0; // Hours total for a day. String prevDay = ""; // Previous day of week. boolean done = false; // loop control Scanner input = new…
- Parking Charges Program in java Write a program that works out the amount a person has to pay for parking in a car park in a tourist town. If they say they are disabled, they are told it is free. Otherwise they enter the number of hours as a whole number (1-8) that they wish to park as well as whether they have an “I live locally” badge or are an old age pensioner both of which leads to a discount. The program tells them the cost to park. The calculation is done in this program as follows. If they are disabled it is free. Otherwise ... Take number of hours they wish to park and give a basic charge: • • • • 1 hour: 3.00 pounds 2-4 hours: 4.00 pounds 5-6 hours: 4.50 pounds 7-8 hours: 5.50 pounds Next modify the resulting charge based on whether they are local or not: • If local: subtract 1 pound If OAP: subtract 2 poundsYour program MUST include methods including ones that - asks for the hours and returns the basic charge. - asks whether they live locally /…Part III - Create Your Own Art Art.java In this part you will create a program Art.java that produces a recursive drawing of your own design. This part is meant to be fun, but here are some guidelines in case you're not so artistic. Requirements Art.java must take one (1) integer command-line argument n that controls the depth of recursion. Your drawing must stay within the drawing window when n is between 1 and 7. (The autograder will not test values of n outside of this range.) You may not change the size of the drawing window (but you may change the scale). Do not add sound. Your drawing can be a geometric pattern, a random construction, or anything else that takes advantage of recursive functions. Your program must be organized into at least three separate functions, including main(). All functions except main() must be private. For full credit, Art.java must not be something that could be easily rewritten to use loops in place of recursion, and some aspects of the recursive…Function Overloading and Pass by Array Create a JAVA program that will add two numbers, three numbers and four numbers. Use function overloading named add. Use two arguments for adding two numbers Use three arguments for adding three numbers Use array with size 4 for adding four numbers The function add will return the value of the sum of the numbers EXPECTED OUTPUT:
- *In java* Write a java program that asks the users to enter 2 numbers and the program computes the max value and displays it using methods. and please write algorithmsJava Program 01 - Theater Ticket System A small ten-seat theater has contracted you to build software which will reserve tickets. The theater has two rows of five seats each. Each row is referred to by number (1 or 2) and each seat in the row is referred to by letter (A, B, C, D, and E). When started, the program should ask the user for the row they prefer (row selection). If that row has no empty seats then the program should ask the user if they prefer the other row, if no then display a message stating the next show is tomorrow. Upon selecting a row, the program should present the user with a choice of available seats in the row. The user can then either choose a seat and print the ticket (in this case a simple message will suffice) or return to row selection. If a ticket is printed the program should return to row selection. The program terminates when all seats are reserved. Please enter a row: 1 Available seats: A B C D E Which seat, enter Q for none?: B You have…Sevens rule, zeros drool def seven_zero(n): Seven is considered a lucky number in Western cultures, whereas zero is what nobody wants to be. Let us briefly bring these two opposites together by looking at positive integers that consist of some solid sequence of sevens, followed by some (possibly empty) solid sequence of zeros. Examples integers of this form are 7, 77777, 7700000, 77777700, and 70000000000000. A surprising theorem proves that for any positive integer n, there exist infinitely many integers of such seven- zero form that are divisible by n. This function should return the smallest such seven-zero integer. Even though discrete math and number theory help, this exercise is not about coming up with a clever symbolic formula and the proof of its correctness. This is rather about iterating through the numbers of this constrained form of sevens and zeros efficiently and correctly in strictly ascending order, so that the function can mechanistically find the smallest working…