CSE 110 Lecture Notes - Lecture 3: Data Validation, Negative Number

118 views4 pages

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:

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents