In Java: Suppose you want to implement a Sudoku game that consists of 9x9 rows and columns of squares. Which layout would be the best one to use and why? 2D Array or Grid Layout? If its a grid layout why would it be better to use?
In: Computer Science
python. write a program that uses functions, and a loop with turtle graphics.
In: Computer Science
Networking theory. Please, provide the solution.
1) What are the difficulties associated with wireless network connections? Discuss your experiences with wireless access point setup and configuration.
2) What would you do if network availability is a high priority? Describe your solution and benefits?
In: Computer Science
Java Programming
create a program that calculates the average of the prime values in the file.
Process:
"Values.txt"
751
1090
971
1054
7
300
19
834
100
751
549
288
641
989
479
1388
1319
584
Code Outline:
public class ChapterSixMain {
public static void main(String[] args) {
// Read Lines from
"Values.txt"
// Determine if the line is an
integer
// Determine if the integer is
prime
// Keep running average of
primes
// Print running average of primes
(no formatting necessary)
}
}
Example 1:
| Values.txt | Prime Values | Average |
| 751 1090 971 1054 7 300 19 834 100 751 549 288 641 989 479 1388 1319 584 |
751 971 7 19 751 641 479 1319 |
617.2499999999999 |
| Values.txt | Prime Values | Average |
| 61 121 124 479 Blackberry 787 416 541 1011 Lemon 1051 493 827 140 Jackfruit 1103 Mango Blackberry 113 Blackberry 439 Orange Kiwi 1103 562 504 |
61 479 787 541 1051 827 1103 113 439 1 |
In: Computer Science
write a fully-connected neural network to work with MNIST and
Tensorflow 2.x. The labels will be input and MNIST image vectors as
output labels. use tf.GradientTape instead fit. show the
28x28 image with the input vector
In: Computer Science
In C, For this project, you have been tasked to read a text file with student grades and perform several operations with them. First, you must read the file, loading the student records. Each record (line) contains the student’s identification number and then four of the student’s numerical test grades. Your application should find the average of the four grades and insert them into the same array as the id number and four grades. I suggest using a 5th array position to hold the computed average. Once the file has been read and the averages calculated and stored in the array, you must sort the list by grade in descending order. Finally, the records should be printed to screen in descending final grade order with statistics at the end of the file for the class average, highest and lowest grades.
Requirements: Your program should make use of the following functions. 1. A function to read the file into an array of arrays. This function should take an empty multi-dimensional array from the caller. The function should ask the user for the name of the file. You may assume the file name entered will be accurate and accessible. You may omit this requirement and hard code the path to the file. You will be given a test file (shown below). I suggest hard coding the filename while you develop your project to save typing it over and over while you test. 2. A function to compute the grade for each array/record. This function should access the array and average the test grades, inserting the final average into the last position for each record as a float. 3. A function to sort the array of arrays by final grade in descending order (highest grade first). This function should take the entire array. 4. A function to print out the results of the operation to screen calculating the required totals and formatting the output appropriately. This function should take the entire array as well. Your program is expected to only deal with fractional values. Therefore, you are required to use a multi-dimensional array of type float or double. Your program will not have to resize your array; you may hard code the size of the array using a constant (#define). The test files will have 10 records/students, a student number followed by 4 grades. You may not use any global variables save for the use of a constant for array size if you wish as shown often in some examples.
output:
Sample Output: Student Id Test 1 Test 2 Test 3 Test 4 Final ******************************************************************
7899 92 90 88 86 89
6814 85 86 92 88 87.75
8234 77 87 84 98 86.5
7654 76 87 84 88 83.75
3534 86 81 84 73 81
7284 56 81 87 98 80.5
7234 76 81 84 78 79.75
7934 76 91 84 65 79
9901 45 78 79 80 70.5
6465 87 54 68 72 70.25
******************************************************************
File:Print out sorted grades Load Data from file Compute Grade Sort Records Main/Compute Grades.c
Input File (unsorted) grades.txt
Student Id Test 1 Test 2 Test 3 Test 4
6814 85 86 92 88
7234 76 81 84 78
6465 87 54 68 72
7899 92 90 88 86
9901 45 78 79 80
8234 77 87 84 98
7934 76 91 84 65
7284 56 81 87 98
7654 76 87 84 88
3534 86 81 84 73
In: Computer Science
In: Computer Science
C++
How can I insert normal array as degenerate tree. Plz use sequential implementation. Thanks.
In: Computer Science
1) True or False
a. The sum of the dimensions of the eigenspaces of the distinct egenvalues of a matrix of order n can sometimes be bigger than n.
b. A square matrix A is singular if and only if 0 is an eigenvalue of A.
c. If two eigenvectors of a matrix are linearly independent, then they correspond to distinct eigenvalues.
d. Two square matrices are similar if and only if they have the same eigenvalues and the same rank.
e. A square matrix A is diagonalizable if and only if for each eigenvalue c of A, the algebraic multiplicity of c is equal to the dimension of the eigenspace of A corresponding to c.
In: Computer Science
1. Tracking Sales
File Sales.java contains a Java program that prompts for and reads
in the sales for each of 5 salespeople in acompany. It then prints
out the id and amount of sales for each salesperson and the total
sales. Study the code, thencompile and run the program to see how
it works. Now modify the program as follows:
1. Compute and print the average sale. (You can compute this directly from the total; no loop is necessary.)
2. Find and print the maximum sale. Print both the id of the salesperson with the max sale and the amount of thesale, e.g., “Salesperson 3 had the highest sale with $4500.” Note that you don’t need another loop for this; you can do it in the same loop where the values are read and the sum is computed.
3. Do the same for the minimum sale.
4. After the list, sum, average, max and min have been printed, ask the user to enter a value. Then print the id ofeach salesperson who exceeded that amount, and the amount of their sales. Also print the total number ofsalespeople whose sales exceeded the value entered.
5. The salespeople are objecting to having an id of 0—no one wants that designation. Modify your program so thatthe ids run from 1-5 instead of 0-4. Do not modify the array—just make the information for salesperson 1 reside inarray location 0, and so on.6. Instead of always reading in 5 sales amounts, at the beginning ask the user for the number of sales people andthen create an array that is just the right size. The program can then proceed as before.Example of fixed sale person number.
// ***************************************************************// Sales.java//// Reads in and stores sales for each of 5 salespeople. Displays// sales entered by salesperson id and total sales for all salespeople.//// ***************************************************************
import java.util.Scanner;
public class Sales
{
public static void main(String[] args)
{
int numSalesPeople;
Scanner scan = new Scanner (System.in);
System.out.print ("How many Sales people are there: ");
numSalesPeople = scan.nextInt();
int[] sales = new int[numSalesPeople];
int sum;
int maxSales, minSales;
int maxSalesPerson, minSalesPerson;
int amount;
int numOver;
sum = 0;
for (int i=0; i<sales.length; i++)
for (int i=0; i<sales.length; i++)
{
System.out.print("Enter the sales amount for the salesperson " + (i+1) + ": ");
sales[i] = scan.nextInt();
}
System.out.println("\nSalesperson Sales");
System.out.println("--------------------");
// Add your code initialize the values of some variables you declared before //
sum=0;
int max=0;
int min=0;
for (int i=0; i<sales.length; i++)
{
System.out.println(" " + (i+1) + "\t\t" + sales[i]);
sum += sales[i];
}
// Add your code. Please print out Sum, Average Sale, MaxSale by Whom, MinSlae by Whom...
// Get a value from the user and search for sale person whose sale exceed this value
System.out.println();
System.out.print("Enter a sales amount: ");
amount = scan.nextInt();
// Add your code here. Search for sales whose value exceed the above value. Print sale person index and amount
// print the total number of sales person whose sales exceed the above value.
}
In: Computer Science
In: Computer Science
PLEASE WRITE SIMPLE HTML ,CSS(IF REQUIRED) , JAVASCRIPT(IF REQUIRED)
PLEASE TELL HOW TO BRING THE EXTRA SCROLL BAR MENU ATTACHED WITH THE TABLE . I WANT TO BRING THE SCROLL BAR JUST ATTACHED WITH THE EXTREME END OF THE TABLE COLUMN . I DO NOT WANT THE SCROLL BAR TO APPEAR AT THE EXTREME END OF THE PAGE.
Also i want the scroll bar menu to be horizontal and vertical as well.
Also the table column values and all the rows values data are getting disorganized. In MS EXCEL we directly select each column values and align center so that all the text is properly aligned.
i want to know how to the proper alignment of all the table column values as well.
i am posting one link for reference and help but my entire problem was not solved hence posting it again.
https://www.chegg.com/homework-help/questions-and-answers/please-write-simple-html-css-required-javascript-required-please-tell-bring-extra-scroll-b-q43754597?trackid=HHHR8JIP
In: Computer Science
create a linear search function in a c++ comparing 2 arrays that are unsorted and has random numbers. count how many numbers they have similiar
In: Computer Science
Discuss the position of “human cloning” from a religious perspective. Your answers must use at least three reference materials such as books, articles or websites and these references must be clearly stated in writing. The discussion must also include at least one opinion from any religious scholars. Your answer should be written in at least two pages.
In: Computer Science
The pandemic of coronavirus disease 2019 (COVID-19) in Malaysia was first detected on 25 January. Reported cases remained relatively low and largely confined to imported cases, until localised clusters began to emerge in March. To stem the number of new cases, the government imposed a Movement Control Order (MCO) starting March 18, 2020.
Assume that you have been appointed as a database designer for a Non-Governmental Organization (NGO) in your residence community. The NGO's main task is to gather information on the current situation of the pandemic in the local community during the MCO period. This includes information on the percentage of cases detected, the quarantine center provided as well as the services available to assist affected community members. The NGO is planning to implement a database system to manage all information to ensure community members are aware of current situations.
Therefore, as a database designer, you are required to propose a database design prior to its implementation by presenting the following:
Note:
You are free to use any Databases Management System (DBMS) tool (using DDL SQL or GUI).
You should submit a printout (screen capture) of:
In: Computer Science