” 辅导S308留学生程序、program语言程序 写作S308 Assignment 2 Student Loan CalculatorEach year, IUK Corp. provide students loan for those in need. However, the maximum loan amounteach student can get is different. In this assignment, your job is to create a WPF application that allowsstudents to enter the following information: birthday, email, tuition fees, types of students (u=undergraduate, g = graduate), and residential status (in-state, out-of-state, or foreign).The program should show two results after a user clicks the apply button: Maximum Loan Amount, andYearly Interest Rate. All output should be rounded to 2 decimal places and formatted appropriately ascurrency for Loan Amount and percentage for Interest Rate. A clear button that clears all valuesshould also be included (both outputs and inputs).More Requirements:1. You must check that the tuition entered by the user is a double number. If the user enters somethingother than a double number, your program should communicate that to the user using a MessageBox.Also, if the user enters a number that is less than 0, the application should request the user to enter anon-negative number using a MessageBox.2. For Birthday Textbox, assume a user would only use the following format: xx/xx/xxxx (e.g.,06/15/1998). (This means you do not have to validate Birthday.)3. For student types, you Should check whether users enter U or G. If not, you should useMessageBox to ask the users to reenter the corrected information. In addition, the program is caseinsensitive and white space insensitive, which means U, U , u are the same for the program.4. Residential status should be a Combobox, and have only three values: in-state, out-of-state, orforeign. A user must choose one of the three values. If a user does not choose a value, the programshould communicate that to the user using a MessageBox.5. Email should contain @. If an email doesnt contain any, the program should communicate that to theuser using a MessageBox.In all cases where the input isnt valid, you should prevent the program from executing any more codeuntil the user corrects the problem and submits the form again.Rules to calculate loan:1. For an undergraduate student, the default loan amount is $30,000.2. For a graduate student, the default loan amount is $50,000.3. The following table provides a rule for adjustment. 辅导S308留学生作业、program语言作业 写作Resident Status Rulein-state Get Extra 20% (i.e., multiply by 1.2)out-of-state Get 80% of the default value (i.e., multiply by 0.8)foreign Get 50% of the default value (i.e., multiply by 0.5)Important!This is an individual assignment. Students are NOT allowed to work together or seek help fromanyone else including current and former S308 students. Any questions about the assignmentshould be sent to the instructor or the TA. Anyone found to have received help from anotherperson will receive a zero (0) for the assignment and will be reported for academic misconduct.4. In addition, IUK Corp. would like to provide an extra $3,000 loan amount for undergraduate studentsand an extra $5,000 loan amount for graduate students if applicants are IU students. If a students email domain equals to iu.edu, then the student is an IU student.Rules to calculate Yearly Interest Rate:1. The following table provides a rule to decide interest rate.Tuition Fees Loan Amount = 30,000 Loan Amount 30,000$0 to $20,000 4.52% 4.21%Over $20,000 to $50,000 3.83% 3.765%Over $50,000 3.59% 3.15%2. Lucky draw(a) Summing up the value of an individuals Day, Month, and Year of Birthday. (e.g. 06/15/1999 =6 + 15 + 1999 = 2020)(b) If the value can be divisible by 4, the student gets an extra reduction of Interest Rate by 0.2%.Tips:1) Consider using the Function TryParse() to test whether the string entered by the user is anumber.2) Consider using one of the Round functions to round the number in your output.Consider using ToString() to format your output.3) Consider using the String methods to handle specific rule.4) Use string function such as Splits and Convert functions to complete the lucky draw.Grading Notes: Name you file ****_A2.zip where **** is your IU Network ID All applicable grading criteria from previous assignments will be applied to this assignment.Including but not limited to:o Assignment Opens and runs without error.o Well-designed User interface with appropriate controls, proper naming, labels,title/instructions.o The controls should be centered aligned horizontally and vertically (i.e. neatly ordered).o Proper coding practices including organized easy-to-read code and appropriate datatype choices Include proper comments in your code.Sample data to test Your program:This sample data is just for your reference. You should test your program with other data to make sureit calculates correctly.InputEmail temp@iu.eduStudent Type GResident Status in-stateOutputLoan Amount $65,000.00Yearly Interest Rate 2.95%Tuition Fee 55000Birthday 09/04/1999如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。