Skip to main content

VP Practical Questions

 1. Write a program to find simple interest of any principal amount taking all input from user.

2. Write a program to find the sun of n natural numbers and also find the average of those.

3. Writre  program to display whether the year entered by user is leap year or not.

4. Write a program to find find whether the number entered by user is palindrome or not.

5. Write a program to find the smallest among 3 numbers.

6. Write a program to print the factorial of numbers.

7. Write a program to print multiplication table of any numbers.

8. Write a program to print the fibonacci series upto n numbers.


9.  Develop a Student Result Processing System that takes a student’s name and marks of five subjects, then calculates the total and percentage. If any subject mark is below 40, the student is Fail. Otherwise, assign division based on percentage: 80%+ Distinction, 60–79 First, 50–59 Second, 40–49 Third. 

Finally, display total, percentage, division, and Pass/Fail status.


10. Develop a Bank Loan Eligibility System that takes the applicant’s age, monthly income, and credit score as input. The loan is approved only if the age is between 21 and 60, monthly income is at least 30,000, and credit score is 650 or above.

If eligible, assign loan type as follows: income 80,000 or more – Premium Loan; income 50,000 or more – Standard Loan; otherwise – Basic Loan.

If not eligible, display the specific reason for rejection.


11. Develop a Restaurant Billing System with the following menu: Mo:Mo – 150, Chowmein – 120, Pizza – 500, and Burger – 250. The program should take the quantity of each item, calculate the total bill, and apply discount as follows: if the bill is more than 2000, give 10% discount; if more than 5000, give 20% discount. Finally, display the final bill amount after discount.


12. Number Pattern System

Print:

1
12
123
1234
12345

13.  Star Pyramid Pattern

Print pyramid based on user input rows.

Example for 4 rows:

*
***
*****
*******

Comments

Popular posts from this blog

Function of OS 1. Process Management The operating system helps in running many programs at the same time. It keeps track of each running program (called a process), decides which one should run next, and stops or starts them as needed. It makes sure that all the programs get a fair chance to use the CPU.   2. Memory Management The OS manages the computer's memory (RAM). It decides which program will use how much memory and keeps track of it. When a program is closed, it frees up the memory so that other programs can use it. This helps the computer run smoothly without crashing.   3. File System Management The operating system helps us to create, save, open, and delete files. It organizes files in folders and keeps them safe. It also controls who can open or edit a file to protect our data.   4. Device Management The OS controls all the input and output devices like the keyboard, mouse, printer, and monitor. It tells the devices what to do and makes su...

UNIT 3 Array in C#

  Array in C# An array is a collection of variables of the same data type , stored in contiguous memory locations , and accessed using a common name and index . Each item in an array is called an element , and the index of arrays in C# starts from 0 .     Key Points About Arrays in C#: 1.       Elements are stored in contiguous memory locations. 2.       Index starts from 0. So, for an array of size 5, valid indexes are 0 to 4. 3.       Arrays are reference types and are allocated on the heap. 4.       C# array is an object of base type System.Array . 5.       Array elements can be of any type , including another array (array of arrays). 6.       Jagged array (array of arrays) elements are reference types and are initialized to null . 7.       Arrays can be single-dimensi...

Unit 5 SEP

  Software analysis and Design tools Software Analysis and Design Tools are special computer programs that help developers and designers in every stage of making software. These tools make it easier to understand, plan, design, and document a software system so that the final product works well and meets user needs. They help in collecting requirements by recording what users want, modeling the system using diagrams such as flowcharts and UML, and designing the structure and interface of the software. These tools also help in creating documentation for clear communication, analyzing the design to find and fix problems early, and supporting teamwork by allowing different people to work together on the same project smoothly. Introduction of ER Model The Entity-Relationship (ER) Model is a conceptual model used to design and represent the logical structure of a database . It shows entities, their attributes, and relationships among them. Example: A Student enr...