0% found this document useful (0 votes)
36 views1 page

Question 1: Find The Largest Value of Two Numbers

This document outlines a practical exam for a C language course that requires students to create an application with three questions: [1] Find the largest of two numbers, [2] Display and sum prime numbers from user input, and [3] Convert a binary number to decimal. Students must submit their source code and executable files for evaluation and grading.

Uploaded by

Xuân Duy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

Question 1: Find The Largest Value of Two Numbers

This document outlines a practical exam for a C language course that requires students to create an application with three questions: [1] Find the largest of two numbers, [2] Display and sum prime numbers from user input, and [3] Convert a binary number to decimal. Students must submit their source code and executable files for evaluation and grading.

Uploaded by

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

Practical Exam Fall 2021

Subject: PRF192
Duration: 80’

Based on C language, you are required to create an application that likes the description below:

When the program runs, shows a menu:

1. Question 1 [2]
2. Question 2 [3]
3. Question 3 [ 5]
4. Exit

The user inputs an option (1,2,3, or 4), the coincide question will run.

Question 1: Find the largest value of two numbers


for example: input num1=1.5,
num2=3.6
out: 3.60

Question 2: input the list of numbers from the keyboard until input 0.
- display this list.
- get the sum of prime numbers
for example: input 1 2 4 3 5 0
- the list: 1 2 4 3 5
- sum of prime numbers: 5

Question 3: Input the list of numbers that are only 0 or 1. Convert it to the decimal number
For example:
input : 121110 enter, out: invalid
input: 1001 enter => out: 9
input:10000001 enter =>out: 129

The student submits two files: tenSV.cpp/c and TenSV.exe to LMS


Only evaluate if your program is compiled successfully.

The End

You might also like