عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 25-10-2016, 11:42 PM   #528

rawan_1

جامعي

 
تاريخ التسجيل: Sep 2016
كلية: كلية الحاسبات وتقنية المعلومات
نوع الدراسة: إنتظام
المستوى: الأول
البلد: جــــدة
الجنس: أنثى
المشاركات: 4
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

سلام عليكم ✋🏼💗.
ياليت احد يساعدني في هذا الواجب :

Purpose: The purpose of this Assignment is to make use of string data type and related methods as well as selection statements in some real world problem like "KAU Library".

Description Suppose a University Library (ike KAU Library) has provided the KAU members (faculty members, staff, Phd Master students, Undergraduate students and others) the facilities of borrowing books. Information of borrowing and returning books are entered by user at runtime. Write a Java program that allows the user to enter the required information such as Identity number, First name, Last name, Category (faculty members, staff, Phd Master students Undergraduate students and Other, and other required information. The program then displays the output similar to the one shown below. You should study the sample runs (output) of the program to identify for yourself what is required Input validation The user has to enter Borrow (Upper case or lower) for Borrowing books, Return (Upper case or lower) for Returning books and Exit (Upper case or lower) for exiting from the program. Then, user will enter F or f (for Faculty members), S or s (for Staff G or g (for PhD/Master Students), U or u (for Undergraduate Students) and O or o (for Others). Next, the user will enter the number of books for borrowing or returning. Finally the user will enter the remaining information. If the user inputs a character that is not recognized (NOT from F, f, S, s, G, g, U or u, O or o) for name, then the program displays "Wrong Selection of category name!", and exits 2. If the user inputs a word that is not recognized (NOT Borrow, Return or Exit) for transaction type, then the program displays "Wrong Selection of transaction type! and exits If the user inputs number of books greater than number of books allowed for that category the program displays "Sorry! Number of books are exceeding the allowed quantity and exits 4. If the user enters O or o for other member, then he should also enter the following information: number of allowed books, number of allowed months) for Borrowing transaction
and same information
plus percentage of penalty for returning transaction. 5 You have to calculate the penalties if the member returns the books after due date, according to the data mentioned in the table below. 6. The program output should be similar to the one shown below. You should strictly make sure your output is 200% identical to the output shown below.

 

rawan_1 غير متواجد حالياً   رد مع اقتباس