[Solved] CSE 102 Homework 2

$25

File Name: CSE_102_Homework_2.zip
File Size: 169.56 KB

SKU: [Solved] CSE 102 –Homework 2 Category: Tag:
5/5 - (1 vote)

CSE 102 ComputerProgrammingHW 02Prepare your homework 02 without using array. If you use, the grade will be zero.1. (50 Points)Write a C program that takes the number of the students from keyboard between 3 and 50. After taking a number of the students, you must generate a random grade for each student (the number of the grades is equal to the number of the students). The grade is between 0 and 100. After the grades are generated, the program displays a menu which is shown below. The menu consist of 5 options:I. Show most successful student,II. Show most unsuccessful student,III. List the number of students for each letter grade,IV. Show calculated average gradeV. Show all four options data.Options should give same results as in the figures and letter grades must be calculated programmatically according to grade scale which shown in table below. The program wont close or restart after any option selection until user enter -1 on menu selection. Also, the menu is shown after every selection.Note: You must use switch cases to construct the menu. Use rand(void) function to create random grades. Take as srand(40) ;.

2. (50Points)Write a C program to find all digits of a number which is entered from the keyboard (the number must be between 23 and 98760). The program screen is shown in below. Do not use #include <stdlib.h>.You can only use #include .If you use other library header files, your grade will be zero.Enter the number: 79045The fifth digit is 7The fourth digit is 9The third digit is 0The second digit is 4The first digit is 5General:1. Obey honor code principles.2. Read your homework carefully and follow the directives about the I/O format (data file names, file formats, etc.) and submission format strictly. Violating any of these directives will be penalized.3. Obey coding convention.4. Your submission is HW02_studentnumber.zip and include the following files and NOTHING MORE (no data files, object files, etc): HW02part1.c HW02_<student_name>_<studentSurname>_<student number>_part2.c HW02_<student_name>_<studentSurname>_<student number>.pdf (includes some programming screens and any details of part 1 and part 2, separately).

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSE 102 Homework 2
$25