EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
Java代做
您的位置: 主页 > 编程案例 > Java代做 >
代做Java:loops代写 Assignment代写 Java loops代写 Programs代写 - Java代做
发布时间:2021-07-25 21:22:01浏览次数:
Concordia University COMP 248 – Winter 2019Java loops代写 It is quite common at that time of the semester where you start speculating what grade you are going to get in a particular courseAssignment 3Due Date: By 11:55pm March 22, 2019Evaluation: 6% of final mark (see marking rubric at the end of handout)Late Submission: none acceptedPurpose: The purpose of this assignment is to help you learn Java loops, control flow statements: if, if/else, switch, and creating a simple class. Java loops代写CEAB/CIPS Attributes: Design/Problem analysis/Communication SkillsGeneral Guidelines When Writing Programs:Refer to handout of assignment1Java loops代写Question 1  Java loops代写It is quite common at that time of the semester where you start speculating what grade you are going to get in a particular course and how that grade will affect your GPA. This assignment will help you and your friends to do just that. In this assignment, you will create a GPA calculator for an undergraduate Concordia student. Java loops代写The letter grades and their weights the program must support are:Java loops代写The program will start by asking the user about his/her current GPA and the number of credits he/she has accumulated so far.If the student is a new student, then he/she will enter 0 for the number of credits and the program will NOT ask the student about his/her current GPA since that question would be considered useless.Java loops代写Here you are an example of a run with all valid data:Java loops代写The program, will display the above menu, once it has gotten:the total number of credits the student has achieved sofarthe student’s currentGPAThe courses the student is currently taking. These are the courses the student wants to check their effect on his/herGPA  Java loops代写When menu option 1 is chosen, the following will be displayed:Java loops代写So, the point of option number 1 is to display the info given to the program When the user chooses option 2, the new GPA is calculated and displayed.Notice here that the menu option keeps displaying after executing each option. The calculation formula for the new GPA is as follows:x = (current GPA * total number of credits achieved so far) + ∑ (weight of grade *course credit) for all current courses)y = total number of credits achieved so far + ∑ (course credit) for all current coursesNew GPA = x/yFor example, for the above example,x= (4.0*120) + (4*3) + (3*3) + (4*3) = 513 y= 120 + 3 + 3 + 3 = 129New GPA = 513/129 = 3.976When the user chooses option 3 ,a list of the current courses will be listed and the user will be asked to choose the course number of the course to be deleted.Java loops代写After the deletion of course number 2, you can see the effect of that on the GPA:Option 4 is used to add a course:Java loops代写After adding this 6 credit course with a letter grade of D, we can check the effect of that on the GPAOption 5, will make the program terminate.There are lots of data validations that have to be done: Here you are some examples:Numberof credits accumulated so far must be greater than or equal to 0; it can not be a negative numberJava loops代写2.Current GPA has to be between 0 to 4.3inclusiveNumber of courses to add to the system has to be greater than0Java loops代写Number of credits of a course has to be greater than0Letter grade has to be a validoneJava loops代写The chosen menu option has to be between 1 and 5inclusiveSome technical requirements you must abide by:Use a switch/case statement to handle the menuUse one array to store the added coursenamesUse one array to store the added coursecreditsUse one array to store the added course lettergradesUse a constant for the maximum number of courses the system cansupportIf the user tries to add more courses, display an errormessageQuestion 2  Java loops代写Create a simple class Course with its accessors, mutators, and toString methods. There should only be a default constructor. The data members of the course class are as follows:name € which is a string credits € which is a double letterGrade € which is a stringTwo constructors are needed: a default one and a parameterized one. Java loops代写The toString method when called, it should return a string representation of the course object in the following format:Course name: name Number of credits:  credits Grade: letterGrade where name , credits  and letterGrade  are the content of the attributes of the object. Java loops代写Create a driver class to test the course object. In the driver class, you need to instantiate three Course objects for the following three courses and then the toString method to display the content of each one of them.COMP248, 3.5 credits, A+ 2. COMP232, 3,BMATH123, 4, B+The output of the driver class, should be

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。