Member Avatar

This should be written in Python. The program will determine all of the magic squares when given an n, display permutations that match the magic squares to the screen AND write it to a file. It will only test when n == 3!!! But code it for n of ANY number!! It must come up with every possible arrangement (permutation) of numbers within the square. These are known as the permutations of that list of numbers. Each permutation needs to be checked to see if it has formed a magic square. The program must: Use command line arguments. At the …

Member Avatar
0
20
Member Avatar

Your task is to write a program that checks html files, (web pages) to determine whether the embedded XHTML tags are balanced. Balanced tags are necessary for the file to be a valid XHTML file as explained above. The first phase takes care of reading the file and finding all of the tags from the file. The first phase will print out the tags as it finds them and also save them into a queue of tags. If the input file ends in the middle of a tag, the program will report the error and end. The second phase of …

Member Avatar
0
26
Member Avatar

I am writing a program that contains python code that will decode an English message that was encoded using a Caesar cypher with a fixed rotation length. It makes use of letter frequencies in the English language to determine the rotation length.The program should also have some comments within your code to explain what confusing-looking code is doing. These comments should be directly above and indented evenly with the code it is explaining. The output should look like this linuxserver1.cs.umbc.edu[101] more code.txt BJ YMJ UJTUQJ TK YMJ ZSNYJI XYFYJX, NS TWIJW YT KTWR F RTWJ UJWKJHY ZSNTS, JXYFGQNXM OZXYNHJ, NSXZWJ …

Member Avatar
-1
10
Member Avatar

i have a question but am confuse the question is create and array of random double floating point numbers,calculate and print the sum off all the numbers in the array.truncates all of the numbers in the array up to 7 decimal places and then calculate and print the sum of the truncated numbers.calculate and print the difference between the actual sum of the numbersand the sum of the truncated numbers.the part i understand was how to then you can use the java.text.NumberFormat class. double value = 5.9999999999999; NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(7); String displayValue = nf.format(value); System.out.println(displayValue); //should print >5.9999999 …

Member Avatar
0
2
Member Avatar

have a java program that have evaluate thefunction,calculate the derivative and roots haw can i demonstrate numerical methods to solve the runge kutta method. This ma functiuon package Iterative.Newton; import java.io.*; import java.text.DecimalFormat; public class Newtonlastest { public static void main(String[] args) throws Exception{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //Format to display with six decimal places DecimalFormat root = new DecimalFormat("####0.000000"); //Format to display with seven decimal places DecimalFormat rootseven = new DecimalFormat("####0.0000000"); //This is the const to select delta final double select_delta = 0.5; double xnew; double fxold; double fdashxold; double absfxnew; int iteration; System.out.print("Enter the initial approximation …

Member Avatar
0
3
Member Avatar

i have this code [code=Java]//***************************************************** //Angles.java // // // //***************************************************** import java.util.Scanner; public class Angles { public static void main (String[] args) { double degree=1/360; double minutes=1/60; double seconds=1/60; double PI=3.14159;; Scanner scan = new Scanner(System.in); // takes the first angles from the user System.out.print("Enter the Degrees of the first angle < 360: "); int Angle1 = scan.nextInt(); // takes the first minutes from the user System.out.print("Enter the Minutes of the first angle < 60: "); int Minutes1 = scan.nextInt(); // takes the first seconds from the user System.out.print("Enter the Seconds of the first angle < 60: "); int Seconds1 …

Member Avatar
0
4
Member Avatar

Write a Java program that uses an algorithm implementing the Gauss-Jordan method to solve the system of linear equations given in the introduction. Your output must show the output of every calculation to no more than seven (7) decimal places. You must create and use a function that cuts off the result of each calculation at exactly seven decimal places and uses this cutoff value in any subsequent calculation

Member Avatar
-1
3

The End.