Programming Exercise 3 Assessment component B Weight 12 from 60 This exercise is to develop programming skills in comparative operations using the conditional statements. The students are required to develop a program using "if-statement" in the first program and switch statements in the second program. Your code must be properly commented. Exercise 3.1: Write a C++ program for a college admission system. The program takes candidates personal, academic information and Admission Year; information includes civil no, name, phone, age, qualification, marks and year of passing and offers admission to applicants in the relevant discipline based on the following criteria. 1- BSc Electrical Engineering Department Applicant Qualification = 12 years education Obtained Marks (%) = 60 Applicant age = 18 to 23
2- BSc Mechanical Engineering Department Applicant Qualification = 12 years education Obtained Marks (%) = 65 Applicant age = 18 to 23 3- MSc Mechanical Engineering Department Applicant Qualification = 14 years education Obtained Marks (%) = 70 Applicant age = 18 to 40 You need to consider the following exceptions for candidate's qualification, obtained marks and candidate's age. 1. If obtained marks are less than 60 percent, then applicant is not eligible for any admission 2- If difference in the admission year and passing year of qualification is more than 5 years, then applicant is not eligible for any admission. 3- If applicant highest qualification years are less than 12 years, then applicant is not eligible for any admission. Sample Input and Output: "Welcome to Admission System" "Admission open for year 2022" Press 1 for BSc Electrical Engineering Department Press 2 for BSc Mechanical Engineering Department Press 3 for MSc Mechanical Engineering Department
"Program Appling for" 1- Select program applying in: 1 "Personal Data" 1- Enter Applicant Civil No: 123456 2- Enter Applicant name: Salim 3- Enter Applicant age: 22 4- Enter Applicant Contact No.: 123456789 5- Enter Program Applying for.: 123456789 "Education" 1- Enter Applicant highest qualification passing years: 12 2- Enter Qualification Passing Year: 2021 3. Enter Obtained marks (%): 80 Sample Output: "Admission Result" The Applicant is eligible/not eligible for the relevant program). Reason for not eligibility (if not eligible) Last Date of Fee Submission: 01/04/2022 (if eligible)
Exercise 3.2: Write a C++ Program for an ATM Simulator. ATM Simulator System is based on a concept of managing cash transactions of a personal account. The system will display authentication screen at the start of program which will ask from user to input ATM number and pin number to proceed further. On successful entry of both fields system will display dashboard to the user which includes withdrawal, deposits and balance inquiry options. You need to consider the following exceptions for user transaction • The program displays wrong selection message if a user enters wrong transaction option. • The program will display invalid amount, if user enters amount <0 or withdrawal amount is exceeding the current balance Sample Input/output: NBO ATM System Simulator Enter Card No:856649548 Enter Pin:1234
Main Menu Transactions [1] Withdraw [2] Deposit [3] Balance Enter your choice:1/2/3 1. Withdraw Withdraw Transaction AVAILABLE BALANCE(OMR): 2500 ENTER THE AMOUNT(OMR): 150 Your remaining balance (OMR) is 2350 PRINTING RECEIPT TILL ATM TRANSACTION RECORD DATE: 25/03/2021 TIME: 16:40:29 LOCATION: MUSCAT TRANSACTION: WITHDRAW AMOUNT: 150 CURRENT BAL(OMR): 2350 AVAILABLE BAL(OMR): 2350
TIILIT 11111111111|||||||||||||||||||| 2- Deposit Deposit Transaction CURRENT BAL(OMR): 2350 ENTER THE AMOUNT(OMR): 3000 Your new available balance (OMR) is 5350 3- Balance Balance Transaction CURRENT BAL(OMR): 2350
Programming Exercise 3 Assessment component B Weight 12 from 60 This exercise is to develop programming skills in compar
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Programming Exercise 3 Assessment component B Weight 12 from 60 This exercise is to develop programming skills in compar
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!