Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~7K People Reached
Favorite Tags
Member Avatar for mical700

max <- 0 for(i in 1:1000){ x1 <- runif(1:10, 1) x2 <- runif(1:10, 1) x3 <- runif(1:10, 1) z <- (exp(x1)+x2)^2 + (3(1-x3)^2) if(z > max) max <- z } print(max) This has to print maximum number between 1 to 10000 and 'z' is the formula. I am getting error …

Member Avatar for mical700
0
121
Member Avatar for mical700

I need to output in four columns. 1) The first will contain n. 2) The second will contain pi(n) 3) The third will contain n/ln(n) 4) The fourth will contain the ration of pi(n) to n/ln(n). #include <stdio.h> #include <string.h> #include <stdint.h> #define MAXN 100000000 /* maximum value of N …

Member Avatar for mical700
0
192
Member Avatar for mical700

Write a program with subclass InterestAccount and CDAccount. The driver program (Account.java) must perform following transactions: 1) Print the name of your bank and yours at the top. 2) Creat an Intrest Account for "Benjamin Franklin" with PIN of 1234 and a starting balance of $100. 3) Creat a CD …

Member Avatar for mical700
0
4K
Member Avatar for mical700

Write a java code, Extend class Fraction by adding methods for the arithmetic operators +, - and /, and the six relational operators (==, !=, <, >, <= and >=). Then compute a menu-driven fraction calculator. Program shoud do all 9 arithmetic operations and 0 to stop. User should first …

Member Avatar for stultuske
0
481
Member Avatar for mical700

C program that extends my.c to take file names as command line arguments. It will read each named file and write the first 10 lines to standard output. If there are no command line arguments, it will read from standard input. If "-" is given as a file name, it …

Member Avatar for mical700
0
146
Member Avatar for mical700

How to convert C++ code to C. Write a program in C that asks a user for the name of a file. The program should display the first 10 lines of the file on the screen (the "head" of the file). If the file has fewer than 10 lines, the …

Member Avatar for deceptikon
0
1K
Member Avatar for mical700

I have problem reading file form command line. I am trying to do " abcd: ./rev < numbers", but it gives me an error: ./rev < numbers Usage : ./rev FILENAME Here is the code: #include <stdio.h> #include <stdlib.h> void reverse(FILE * file) { int fscanf_return_value; char x; /* read …

Member Avatar for mical700
0
363
Member Avatar for mical700

I am getting wrong output. My Code is following, in which I have to use function unsigned long powerof2(int n); #include <stdio.h> #include <stdlib.h> #include <math.h> //int powerof2(int n); unsigned long powerof2(int n); int main(void) { printf(" n 2^n\n"); printf("-- ---\n"); for (int n=0; n<65 ;n++) { //printf(" n 2^n\n"); …

Member Avatar for mical700
0
229
Member Avatar for mical700

I am trying to print: 0 1 1 2 2 4 3 8 4 16 5 32 6 64 7 128 8 256 9 512 10 1024 11 2048 12 4096 13 8192 14 16384 15 32768 16 65536 17 131072 18 262144 19 524288 20 1048576 21 2097152 22 …

Member Avatar for mical700
0
350
Member Avatar for mical700

Histo.java import java.util.*; // Scanner import java.io.*; // PrintStream class Histo extends Object { static PrintStream theScreen = new PrintStream(System.out); static Scanner theKeyboard = new Scanner(System.in); public static void main(String args[]) throws FileNotFoundException { final int MAX_SCORES = 5000; // define nameArr as an array of String objects String[] nameArr …

Member Avatar for peter_budo
0
321
Member Avatar for mical700

Write a program that (using an array) analyzes student performance on an exam using the information from such a file. The program should input the name of the text file, and then display the worst score, the best score, the average score, the standard deviation, and a histogram -- a …

Member Avatar for JamesCherrill
0
121
Member Avatar for mical700