0% found this document useful (0 votes)
27 views

Assignment 4

The document provides instructions for an Enterprise Application Development assignment. Students are asked to develop a C# project to implement several functions: generating prime numbers within a given range, checking if a string is a palindrome, reversing a string using StringBuilder, checking if an array is symmetric, and counting words in a text file. The assignment also requires generating a random password between 6-10 characters that includes at least one capital letter, one lowercase letter, two digits and two symbols. Guidelines specify that the assignment be submitted as a single Word file by the deadline and include C# comments explaining the logic. Plagiarism and violating instructions will result in no marks.

Uploaded by

Noman Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Assignment 4

The document provides instructions for an Enterprise Application Development assignment. Students are asked to develop a C# project to implement several functions: generating prime numbers within a given range, checking if a string is a palindrome, reversing a string using StringBuilder, checking if an array is symmetric, and counting words in a text file. The assignment also requires generating a random password between 6-10 characters that includes at least one capital letter, one lowercase letter, two digits and two symbols. Guidelines specify that the assignment be submitted as a single Word file by the deadline and include C# comments explaining the logic. Plagiarism and violating instructions will result in no marks.

Uploaded by

Noman Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

University of Gujrat

Narowal Sub-campus

Enterprise Application Development # 4


Assignment deadline Thursday, 22nd Feb 2018, 5:00 PM
Read Guidelines carefully

Develop new C# project and implement the following functions in a class Program. Cs
 void GeneratePrimeNumbers (int, int)
This function should ask the user for a range and generate prime numbers within that
specified range.
 Check if the given string is palindrome
Google the concept if you don’t know what a palindrome is?, before asking your instructor.
 Reverse the given string using ‘StringBuilder’
 bool IsSymmetric (int[] array);
 long CountWords(string file);
Count words in the given text file
 string GenerateRandomPassword (int length);
We are assuming here that password length is always greater than or equal to 6
Random password should specify the following properties:
1. At least have 1 Capital letter and 1 small letter, 2 digits 2 symbols.
2. Shuffle the characters completely.

Guidelines
 A single violation of the guideline will lead to Zero mark in your assignment.
 You are encouraged to take help from the Internet and books.If you find any concept new or not
discussed in class read it yourself first and only ask from instructors if you are not getting the
concept.
 Onlysingle ".doc" file should be submitted in google classroom
 Paste all the tasks from your .cs file to the single .doc file.
 Use C# comments to specify your logic.
 Do not zip your assignment, it should be uploaded as individual file in following format.
 "RollNo_Assignment_2.doc"
 Deadlines should be kept in mind, there would be no extension in assignment dates.
 PLAGARISM IS NOT ACCEPTABLE!!
 Follow the instructions as it is otherwise your assignment would not be accepted at all.

You might also like