0% found this document useful (0 votes)
38 views9 pages

Assignment Individual (Khant Eaint Hmoo)

The document provides instructions for three programming assignments: 1. Design a program to assign letter grades based on numeric marks. The program should take a mark as input and output the corresponding grade. 2. Propose a suitable software development life cycle model for developing a campus management system. The waterfall model is selected and explained. 3. Write a C program to perform division of two numbers entered by the user. The program should prompt for inputs, perform the division, handle division by zero, and output the result.

Uploaded by

Khant Eaint Hmoo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views9 pages

Assignment Individual (Khant Eaint Hmoo)

The document provides instructions for three programming assignments: 1. Design a program to assign letter grades based on numeric marks. The program should take a mark as input and output the corresponding grade. 2. Propose a suitable software development life cycle model for developing a campus management system. The waterfall model is selected and explained. 3. Write a C program to perform division of two numbers entered by the user. The program should prompt for inputs, perform the division, handle division by zero, and output the result.

Uploaded by

Khant Eaint Hmoo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

CENTRE FOR FOUNDATION AND GENERAL STUDIES

SEMESTER 2, ACADEMIC SESSIONS 2023/2024

COURSE CODE: FCC124


COURSE: INTRODUCTION TO PROGRAMMING
TYPE: INDIVIDUAL ASSIGNMENT
EVALUATION: 20%

ASSIGNMENTS

1. The Centre for Foundation and General Studies has decided to implement a digital record
of their students marking and grading for all their tests and examinations. Their Headmaster
has submitted a grade specification below for you to design a system.

Marks and Grades

Marks Grades
80 - 100 A
70 - 79 B

60 - 69 C
50 - 59 D

40 - 49 E
0 - 39 F
Given the following output as a guideline below, you are required:

I. Draw a flowchart and write the pseudocode.


Pseudocode
Start

Enter the student’s mark

If the mark is between 80-100

Display “Grade A”

Else if the mark is between 70 -79

Display “Grade B”

Else if the mark is between 60 -69

Display “Grade C”

Else if the mark is between 50-59

Display “Grade D”

Else if the mark is between 40-49

Display “Grade E”

Else;

Display “Grade F”

End
Flowchart
Start

Enter the student’s mark

If the mark is yes Display “Grade A”

80-100

No

if the mark is yes Display “Grade B”

70 -79

No

If the mark is yes Display “Grade C”

60 -69

No

if the mark yes Display “Grade D”

is 50-59

No

if the mark yes Display “Grade E”

is 40-49

No

If the mark yes Display “Grade F”

is 0-39

end
II. Write a code at a specific comment which is labeled as shown below.

Welcome to Student Assessment System Please key-in


students mark:

Result:
Welcome to Student Assessment System
Please key-in students mark: 100
Your grade is A

Answer:

#include <stdio.h>
int main () {

int mark;
char grade;

printf("Welcome to Student Assessment System\n");


printf("Please key-in students mark:");
scanf("%d",&mark);

if (mark>=80){
grade='A';}

else if (mark>=70){
grade='B';
}
else if (mark>=60){
grade='C';
}
else if (mark>=50){
grade='D';
}
else if (mark>=40){
grade='E';
}
else{
grade='F';
}

printf("Your grade is %c\n",grade);


return 0;
}
2. Campus Management System Development:

A university administration wants to develop a Campus Management System to streamline


various administrative tasks such as student enrollment, course registration, faculty
management, and examination scheduling. They aim to improve operational efficiency and
enhance communication between different departments within the university. Due to the
complexity of the system and the need for seamless integration with existing university
infrastructure, the administration decides to adopt a structured approach for software
development.

Your task is to design an appropriate Software Development Life Cycle (SDLC) model for the
development of the Campus Management System. Considering the requirements and
constraints, propose a suitable SDLC model and provide a brief explanation of why you
selected that particular model.

Answer:

According to the needs of the university which requires to streamline and improve the
complexity of the system, I would like to adopt “Waterfall Model” for the development if
the campus management system.

Here is the brief explanation of why Waterfall model is suitable for the university
administration;

1. Requirements:

In this stage, the university administration will work closely with stakeholders from
various departments to gather and document all the requirements for the Campus
Management System. This will include understanding the needs of students, faculty,
and administrative staff, as well as identifying integration points with existing university
systems.

2. System Design:

Once the requirements are finalized, the system design phase will involve creating a
detailed design of the Campus Management System. This will include defining the
system architecture database design, user interface design, and data flow diagrams.
The design will also consider scalability, security, and usability aspects.
3. Implementation:

In the implementation phase, the development team will start building the Campus
Management System based on the approved design specifications. This will involve
coding, database development, and integration with other university systems. Regular
progress updates and reviews will ensure that the development is on track.

4. Testing:

After the implementation is complete, thorough testing of the Campus Management


System will be conducted. This will include unit testing, integration testing, system
testing, and user acceptance testing to ensure that the system meets all requirements
and functions as expected. Any bugs or issues identified during testing will be fixed
before moving to the next stage.

5. Deployment and Maintenance:

Once testing is successful, the Campus Management System will be deployed for use
by students, faculty, and staff. Post-deployment, ongoing maintenance and support
will be provided to address any issues that arise, implement updates or
enhancements, and ensure the smooth operation of the system.

In conclusion, the Waterfall Model is a suitable SDLC model for the development of
the Campus Management System due to its emphasis on clear requirements,
structured approach and risk management capabilities.

3. Suppose you are developing a simple calculator program. Your task is to implement the
division operation in the calculator.

Write a C program to perform division between two numbers entered by the user. Your
program should prompt the user to enter two integer values, perform the division operation,
and then display the result.

Instruction:

Declare two integer variables numerator and denominator to store the input numbers.

Prompt the user to enter the numerator and denominator values.

Perform the division operation (numerator / denominator) and store the result in a variable
named result.

Print the result of the division operation.

Your program should handle cases where the denominator is zero and inform the user about
the impossibility of division by zero.
Answer:
#include <stdio.h>

int main() {

int numerator;

int denominator;

float result;

printf("enter the numerator:\n");

scanf("%d",&numerator);

printf("enter the denominator:\n");

scanf("%d",&denominator);

if(denominator==0){

printf("the answer is underfined");

else{

result=(float) numerator/denominator;

printf("the result of %d divided by %d is %f",numerator,denominator,result);

return 0;

You might also like