Question: bx Gcse 110 assignment 1-GoogleSx C CSE 110 Assignment 3 pd labxMy ASU ontent-rid-145505368-1/courses/2019Spring-T-CSE 1 1 0-1 6223/hwl-spring20 199.281 %29pdf ASU Computer Science and Engineering
bx Gcse 110 assignment 1-GoogleSx C CSE 110 Assignment 3 pd labxMy ASU ontent-rid-145505368-1/courses/2019Spring-T-CSE 1 1 0-1 6223/hwl-spring20 199.281 %29pdf ASU Computer Science and Engineering Department CSE 110-Assignment #1 Teachers open the door Maximum Points: 20 pts. But you must enter by yourself" Topics: Entering compiling, and running a Java program . Using arithmetic expression .Using Scanner dass for input . Using the Math class Important Note: All subemitted assignments mast begin with the descriptive comment block similar o the one shown below under Part I, Program WI. It must contain your name and the other information illustrated. To avoid losing trivial points, make sure this comment header is included in every assignment you submit, and that it is updated accordingly from assignment to assignment Part 1: Program #1 Compilc and Run: (4 pts Type the following code into a file called Expressions jaxa After the program is cntcred, compile and t works. Each invocation of print1n outputs an arithmetic expression The first two printin commands are followed by comments that describe the operations that occur in the first two expression as an example. Write the answers for cach printin statement describing the output. The answers should be typed a-j in block of comments inside the file Assignment 1 java after the comment block. (The comment block shown here is a good example to base yours off of for Part 2 Program #2, namely Assignment 1 Java). You DO NOT have to submit this file. / Nane: Faye Navabi // Title: Expressions java Author: tir not you) ModiE sed from an example in Leviss / Lottus book Description: Example of using fundanental data types Tine spent: 20 minutes Date: 1/1/2018 public class Expressions t pubiic atatic void sain (Strlngtl argay int a- 5 intb- 6i Systen . out ,printin 4(a b), e s and aze added and the reauit is divided by with quotient 2 ystem.out printiniabch s is divided by 4 vith quotLent then s in added to 1 with sun d 1-Google GCSE 110Assgrment 3pdfLab 4 x 1-MyAsu content-rid-145505368-1/courses/2019Spring-T-CSE 1 10-16223/hwl-spring2019%281%29.pdf System.out.printin(a +1)s 1l System.out.printiaid s el: d system.out.printin(d/ e:l/e System,out.printin(d + System.out printinid+ a) db/g System.out. printin (Hath, sqrt (a.a, i//h System.out.printin (Math, pow (a, 21) Systen.out.printin (Math.max (a, bl: dblli Noter The anwers to che questions o hrough ) abeve should be typed in the block or Program #2: Programming (15 pts) Overview: Write a program that the number of credit for each course and the grade earsed in each course, and then determines the GPA based on user input. The course credit hours is an inseger between 1-4 and the grade earmed is a deubie value from 0.0 to 4.0. To find the GiPA weighted by credit hours, follow these steps: computes a student's GPA for throe courses. The peogram asks user for 1. Multiply each numeric grade value by the number of credits the course is woth 2. Add these numbers together 3. Divide the number from sep 2 by the total number of credits Here is a sample output:User input is in RED Credits for course 1:3 Credits for course 2:4 Credits Sor counse 33 GPA: 3.0 Geade for course 1:4 Grade for course 2: 3 Grade for course 3: 2 Sample Run 2 Crodits for course 1: 3 Grade for course 1: 40 Credits Sor courve 2 Grade for course 2: 3 Credits for course 3: 3 Grade foe course 3: 3.40 GPA: 33 For this and all sabsequest assigements, prwvide a h demeestrated in Program 81. Make sare your pregra a brading (in conmeats) descrited ahove and is called AssigemeatI.jasa Submit your homework by following the instructions below: edu/b X G cse 110 assignment 1 -Google x CCSE 110 Assignment 3.pdf Lab 4, x My ASU nd-1 45505368-1/courses/2019Spring-T-CSE 1 10. 16223/hwl-spring201996281 %29.pdf Submit your Assignmentl java file on-line at the link provided on Blackboard for assignment I under "Assignments" tab. Assignment 1 java file should have the following, in ornder o In comments the asignment Header deseribed in "Important Note' and demonstrated in Do NOT submit the Program In comments, the answers to questions a-j presented in Program #1 code given in Program #1. o The working Java code requested in Program o The Assignment 1. java file must compile and run as you submit it. Important Note: You may resubmit as many times as you like until the deadline, but we will only mark your last submission NO LATE ASSIGNMENTS WILL BE ACCEPTED
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
