CSE 110 Lecture Notes - Lecture 3: Data Validation, Negative Number
Document Summary
What this lab is about: familiarization with basic data types, using the scanner class with input validation, understanding order of operations, getting familiar with control statements (if-else, switch) This includes classes, methods, and code associated with ifs, switches and loops. Problem description: calculate final grade and corresponding letter grade. The program will calculate the final grade of the student, using the input the formula: A letter will be calculated based on finalgrade, if student passes class value should be "p", if not value should be "f". If the input grade is not valid, end program with proper message. Please follow these guidelines and ask your ta for help if needed. You may also collaborate with your classmates if needed. Use the same setup for setting up your class and main method as you did in previous labs and assignments. At the beginning of each programming assignment you must have a comment block with the following information: