Write a program that will compute the students average •The user will input the following: Name Math Science English •If the average is equal and above 75, it will display “Congratulations. You passed the semester” otherwise “You failed the semester.” •However, if his average is equal and above 75 but fail to pass one or two subjects, it will display “Congratulations. You passed the semester. But you need to re-enroll (subject name) subject. “

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

Problem No.1

•Write a program that will compute the students average

•The user will input the following:

Name

Math

Science

English

•If the average is equal and above 75, it will display “Congratulations. You passed the semester” otherwise “You failed the semester.”

•However, if his average is equal and above 75 but fail to pass one or two subjects, it will display “Congratulations. You passed the semester. But you need to re-enroll (subject name) subject. “

Problem 2

Write a program that will check the employees years in service and office.

•The user will input number for years and in service and the following offices(IT, ACCT, HR)•Check the following conditions:

Assignments | Microsoft Teams
https://psueduph1.sharepoint.co X
b Answered: Write a program that X +
->
i teams.microsoft.com/_?culture=en-us&country=ww&lm=Ddeeplink&lmsrc=homePageWeb&cmpid=DWebSignln#/apps/66aeee93-507d-479a-a3ef-8f494af4394.. *
Microsoft Teams
Q Search
LEARNING ACTIVITY NO 2.pdf
Close
Activity
Chat
LEARNING ACTIVITY NO. 2
Problem No.1
• Write a program that will compute the students average
• The user will input the following:
= Name
= Math
- Science
= English
• Ii the average is equal and above 75, it will display "Congratulations. You passed
the semester" otherwise "You failed the semester."
• However, if his average is equal and above 75 but fail to pass one or two
subjects, it will display "Congratulations. You passed the semester. But you need
to re-enroll (subject name) subject.
COJ
Teams
Assignments
::*
Sample Output
Calendar
Name: Daisy Jean
Math: 99
Science: 92
English: 74
Calls
Average: 88.0
Congratulations! You
passed the semester. But
you need to re-enroll
English subject
Problem No. 2
• Write a program that will check the employees years in service and office.
The user will input number for years and in service and the following offices(IT,
АССТ, HR)
Check the following conditions:
Years
more than or equal 10 years below 10 years
Office
IT
10000
5000
аcct
12000
6000
hr
Apps
15000
7500
1
of 1
Help
Bitnami for XAMPP ...
htdocs
XAMPP Control Pan...
Assignments | Micr..
a localhost/PhpinVisu.
|activity2.php - Untit.
) 8:51 am
..
Transcribed Image Text:Assignments | Microsoft Teams https://psueduph1.sharepoint.co X b Answered: Write a program that X + -> i teams.microsoft.com/_?culture=en-us&country=ww&lm=Ddeeplink&lmsrc=homePageWeb&cmpid=DWebSignln#/apps/66aeee93-507d-479a-a3ef-8f494af4394.. * Microsoft Teams Q Search LEARNING ACTIVITY NO 2.pdf Close Activity Chat LEARNING ACTIVITY NO. 2 Problem No.1 • Write a program that will compute the students average • The user will input the following: = Name = Math - Science = English • Ii the average is equal and above 75, it will display "Congratulations. You passed the semester" otherwise "You failed the semester." • However, if his average is equal and above 75 but fail to pass one or two subjects, it will display "Congratulations. You passed the semester. But you need to re-enroll (subject name) subject. COJ Teams Assignments ::* Sample Output Calendar Name: Daisy Jean Math: 99 Science: 92 English: 74 Calls Average: 88.0 Congratulations! You passed the semester. But you need to re-enroll English subject Problem No. 2 • Write a program that will check the employees years in service and office. The user will input number for years and in service and the following offices(IT, АССТ, HR) Check the following conditions: Years more than or equal 10 years below 10 years Office IT 10000 5000 аcct 12000 6000 hr Apps 15000 7500 1 of 1 Help Bitnami for XAMPP ... htdocs XAMPP Control Pan... Assignments | Micr.. a localhost/PhpinVisu. |activity2.php - Untit. ) 8:51 am ..
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT