Write a program contained a class Stadent which has firstName, lastName, mark, grade. The class allows object instance to assign firstName, lastName and mark from input user and perform and assign grade based an mark's ariteria displayed below. SAMPLE OF OUTPUT: Enter student details: First Nane: John Last Name: Kendall Marks : 96 Grade First Nane John Last Name Kendall A+ Another student? (Yes - 1, No - e):> 1 Enter student details: First Nane: Kary Last Nane: Kendall Marks : 76 Grade Last Nane Kendall FirstNane C+ Mary Another student (Yes - 1, No - e):> e Total student : 2 Exit..
Write a program contained a class Stadent which has firstName, lastName, mark, grade. The class allows object instance to assign firstName, lastName and mark from input user and perform and assign grade based an mark's ariteria displayed below. SAMPLE OF OUTPUT: Enter student details: First Nane: John Last Name: Kendall Marks : 96 Grade First Nane John Last Name Kendall A+ Another student? (Yes - 1, No - e):> 1 Enter student details: First Nane: Kary Last Nane: Kendall Marks : 76 Grade Last Nane Kendall FirstNane C+ Mary Another student (Yes - 1, No - e):> e Total student : 2 Exit..
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Java

Transcribed Image Text:okמ /Aורסם זרסרו
Practical Exercise 3 (5).
تعليمات
عرض
مراسلات
Name:
ID:
PROBLEM SOLVING TIPS:
Duration: 280 minutes
Num Tips
Grade
Class Student with four attributes firstName, lastName, mark, grade
/2m
Objective(s):
You are required to write a pIogram in JAVA based on the problem descriion given. Read the
problem descripition and examine the sample of output; then study the program design given
Using the problem-solving tips as a guide, rite a complete program with necessary usefial
COMInent for good documentation Compile and execute the program.
3)
Define a default constructor which is empty.
public set and get method for all attributes.
/3m
public method gradeTo in which will receive input mark and assign a grade
character to grade based on list of conditions displayed in Table 1.
Learning Outcome(s):
1. To introduce business problem specifictation/requirement and translates into JAVA cades.
2 To practice writing simple application of deploying object-oriented programming concept using
public method displayAll() which will show output as in sample output
/2m
JAVA.
A main program in which wil create object instances, then derives user input
and perform suitable set and get method to reflect output as shown above.
f)
DESCRIPTION OF PROBLEM:
Write a program CItained a dlass Student bich has firstName, lastName, mark, grade. The
class allows object instance to assign firstName, lastiName and mark from input user and
perform and assign grade based an mark's aiteria displayed below.
SAMPLE OF OUTPUT:
Enter student details:
First Name: John
Last Nane: Kendall
Marks
:96
Grade
First Nae
John
Last Name
Kendall
A+
Fractice 2:
DESCRIFTIONS OF PROBLEM
Another student? (Yes - 1, No - 0):> 1
DanaStore, a doth department would like to have a cash rejder program that cm calculate sale
for the stare. The stare bas 4 departments cmently Spring Sale Wote a program Contained a
dass CahRegister wiich hao 4 atribates: department (type: int), description (ype String),
discount (type: double) ad total (type double).
Enter student detailss
First Nane: Mary
Last Nanes Kendall
Marks
t 76
Table 1
FirstNane
Mary
Last Nane
Kendall
Grade
C+
Discount
20%
35%
50%
No discomt
Description
Department
00
Mens
11
22
33
Sportawear
Kids
Another student? (Yes -1, NO - 0)> 0
Total student : 2
Edt..
ENM
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education