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. “

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
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
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education