Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

euros, third contains equivalent number of pounds and fourth contains equivalent

ID: 3121976 • Letter: E

Question

euros, third contains equivalent number of pounds and fourth contains equivalent number of yens. Print 25 lines in the table. Table should include a title, column labels and formatted output (use disp and fprintf commands) The height of the rocket can be represented by the following equation height = 2.13t^2 -0.0013t^4 0.000034t^4.751 Where time is in seconds and the height of the rocket is in meters. Use for loop to create a table of the time and height of the rocket from the time it launches until it hits the ground, use 0 to 100 seconds in increments of 2 seconds. Write a program that receives an integer (n) and then calculate the sum of integers 1 to n (exp. 1 + 2 + 3 + ..... + n) using for loop. Display the result in a format shown below Write a program that receives the Total Cholesterol, LDL, HDL and Tryglycerides of a patient and then use IF and AND (&) to determine that patient is healthy or not using the following the normal level of -Total Cholesterol: below 200 mg/dl -LDL: below 130 mg/dl -HDL: above 35 mg/dl -Tryglycerides: below 200 mg/dl If the patient is healthy show "Good health", ifnot then show "See a Doctor". Save the file "Lab_Excel_2.txt" on your computer from the Blackboard's Excel folder. Using fopen() function read the data from "Lab_Excel 2.txt", the file has 4 columns. Then plot three lines in one graph, (i) col #1 vs. Col#2, (iii) col #1 vs. Col#3, (ii) col #1 vs. Col#4.

Explanation / Answer

Question 2: Answer

import java.util.Scanner;

public class Sumcalculator {

public static void main(String args[])

{

Scanner scanner = new Scanner(System.in);

System.out.print("Enter a integer: ");

int number = scanner.nextInt();

int sum=0;

for(int i=1;i<=number:i++)

{

sum =sum+i;

}

System.out.println("The sum of integers from 1 to "+number+" is "+sum);

}

}