Write the code for the following problem using either C or C++. If there are 8 cars with its car number {11,10,34,56,68,89,65,78} parked in a parking area, then you are looking for a car number 68 by checking every car sequentially from the beginning.
Design an algorithm to convert a lower triangular matrix to upper triangular matrix.
Write a java program to throw an exception (checked) for an employee
details
a If an employee name is a number, a name exception must be
thrown
b If an employee age is greater than 50, an age exception must be
thrown. Or else an object must be created for the entered employee details.
Create an array of characters which will be initialized during run time with vowels.
If user enters any consonant, your code should generate a user-defined checked
exception, InvalidVowelException. The description or message of
InvalidVowelException is "character is consonant". Handle the exception by using
try, catch, finally, throw and throws.
Develop an application in Java for automating the Hostel Management
System using packages. Create Hostel class in pkg1, Student class, and
SRA class in pkg2. Perform menu driven operations like SRA Allocation,
List of SRA’s in a Hostel, List of Students under a particular SRA, and
View Student Details from a Test class by importing these two packages.
Create an interface “Academic” with methods: calAcademicCredit(), registerSub(),
assignFaculty(). Create another interface “NonAcademic” with method:
calNonAcademicCredit(), registerClub().
Create an abstract class called “Course” with details such as name, reg_no, subjects,
faculty, non_acad_club etc. Add necessary constructors.
Implement these interfaces and inherit the class in “Student” class to perform the specific
operations.
Demonstrate the operations in a menu driven fashion from a Main class. Write logics in
the corresponding methods.
Develop an interface called “Event” which contains Expenditure (), Prizes () are unimplemented
methods. Also include few specifications given below,
A default method called welcome_msg(),
A static method called Thank_you msg(),
Create another interface called invitation that extends Event which contains design_invitation()
as private member and display_invitation() as public method
create two customized classes called Birthday and Symposium utilize the above structure;
Prompts the user for a password. Check if the password is valid where a valid password has the following criteria. It must be at least 5 characters long. It must start with either a c or a 5. It must contain at least one special character from &,@,# and %
A small business wants to create a file to store its customer information. Each record in the file is to
contain the following data: customer ID number, first name, last name, city, zip code, and account balance.
Write a program to create such a customer file named “customer.txt”. Write the file with space-separated
fields.
Write another program that displays the contents of the file “customer.txt” in column form with
appropriate column headings.
A moving contractor wants you to write a program that he can use to estimate the cost
of moving a residential customer. The charge for moving is based on two factors.
First, the labor cost is estimated by charging $4.00 for every 100 pounds of furniture to
be moved.
Second, the travel charge is $50.00 plus $1.75 for each mile the furniture is to be moved.
The program should prompt the user for the estimated weight of the furniture and the
distance the furniture is to be moved.
Finally, the program should display the labor charge, the travel charge, and the total
charge.