Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSc 1301: PRINCIPLES OF COMPUTER SCIENCE Lab 8 This lab requires a submission in iCollege during lab time. No submission will be graded after lab

image text in transcribed
CSc 1301: PRINCIPLES OF COMPUTER SCIENCE Lab 8 This lab requires a submission in iCollege during lab time. No submission will be graded after lab time. Example Below is a sample program to take age as input from user. Then apply arithmetic operation orn the input value import java.uti1 public class UserInputExample public static void main(Stringt) args) Scanner input- new Scanner (System. in)i System.out.print("How old are you? ); int age-input nextint int years- 65- age: System.out.printin (yearsyears to retirement Lab Task 1 Write a program to take marks for a course from the user. The find out its GPA Given that: Grade Marks Ran 95-100 90-94 80-89 Sample Input: Please enter your grade of Course 1301 92 Sample Output Your GPA for this course is: A Hint: You have to use if else ladder to solve the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions

Question

=+Identify the type of global assignment for which CCT is needed.

Answered: 1 week ago

Question

Describe Balor method and give the chemical reaction.

Answered: 1 week ago

Question

How to prepare washing soda from common salt?

Answered: 1 week ago