LabGrade - / * / LabGrade.java / / This program computes a...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// ************************************************************************ // LabGrade.java // // This program computes a student's lab grade from // the grades on the three components of lab: the pre-lab // assignment, the lab itself, and the post-lab assignment. // *********************************************************************** import java.util.Scanner; public class LabGrade { //----------------------------------------------------- // Read in grades for pre-lab, lab, and post-lab // and compute a weighted average for the lab grade. //----------------------------------------------------- public static void main (String[] args) { // Declare variables double inWeight; // in-class weight double outWeight; // out-of-class weight int preLabPts; //number of points earned on the pre-lab assignment int preLabMax; //maximum number of points possible for pre-lab int labPts; //number of poitns earned on the lab int labMax; //maximum number of points possible for lab int postLabPts; //number of points earned on the post-lab assignment
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/22/2010 for the course CS 202 taught by Professor Fong during the Spring '10 term at SIU Carbondale.

Page1 / 2

LabGrade - / * / LabGrade.java / / This program computes a...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online