Calculate - double f =(90(v.8.2 System.out.println"The...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Calculate { public static void main(String[] args) {double x = 70; double y = 80; double z = 90; double v = (x+y+z)/3; System.out.println("the average before final is " +v);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: double f =((90-(v*.8))/.2); System.out.println("The grade on the final must be "+f); } }...
View Full Document

This note was uploaded on 03/01/2011 for the course CSC 116 taught by Professor Mayes during the Spring '08 term at N.C. State.

Ask a homework question - tutors are online