Write a program that calculates the inverse of a
matrix and proves that. “AA -1 = A -1 A = I”
Qno1: Write a program that helps to find factorial,
percentage, average, Min Number, Max Number, and sort
the array in ascending and descending order. User select
the option what operation he/she wants to perform and
then enter data according to requirement.
Perform all things by using functions.
When buying a Tesla Model 3, you have a choice between three versions/trims: 1) Standard Range Plus, 2) Long Range, and 3) Performance. All trims have the same base features, but the 2nd trim includes additional features, and the 3rd trim adds features on top of those from #2. In other words, the feature list is incremental.
Write a program that asks the user to choose which Model 3 they want to buy. You will then output the feature list based on the user's selection. So that you understand which feature list belongs to each, my example below is for the most expensive trim (Performance), which includes everything. I used an empty line to separate the features for each trim. Be sure to reject invalid menu choices.
When buying a Tesla Model 3, you have a choice between three versions/trims: 1) Standard Range Plus, 2) Long Range, and 3) Performance. All trims have the same base features, but the 2nd trim includes additional features, and the 3rd trim adds features on top of those from #2. In other words, the feature list is incremental.
Write a program that asks the user to choose which Model 3 they want to buy. You will then output the feature list based on the user's selection. So that you understand which feature list belongs to each, my example below is for the most expensive trim (Performance), which includes everything. I used an empty line to separate the features for each trim. Be sure to reject invalid menu choices.
Menu/Prompts:
Enter the letter that corresponds to your desired Tesla Model 3 from the choices below:
[S]tandard Range Plus
[L]ong Range
[P]erformance
Enter your choice: [Assume user enters P]
Output for 'P':
Using Enumeration type
Sample Run 1:
Enter the measurement of the sides of the triangle: 3 4 5
The triangle is an example of scalene triangle.
Sample Run 2:
Enter the measurement of the sides of the triangle: 10 10 8
The triangle is an example of isosceles triangle.
Sample Run 3:
Enter the measurement of the sides of the triangle: 10 10 10
The triangle is an example of equilateral triangle.
Sample Run 4:
Enter the measurement of the sides of the triangle: 10 1 2
The triangle is an example of notriangle triangle.
Input numbers from the user and find the sum of all those input numbers until the user
inputs zero. In other means, the loop should end when the user enters 0. Finally, display the
sum of all those numbers entered by the user.
Take input of your registration number in the University. Write a programme to print all the
prime numbers digits in your registration number.
Create a class named 'Student' with a string variable 'name' and an integer variable 'roll_no'. Assign the value of roll_no as '20021' and that of name as "Sidra" by creating an object of the class Student.
Write a C++ program that stores the grades of N students in an array of size 100. The
user must input at the beginning of the program the number of students N., then the
user must input the grade for each student. The program then must display the
following menu (use functions):
1. Print the minimum and maximum grade. (10 points)
2. Print the number of passing and failing students. (10 points)
3. Print the average grade, the percentage of passing students (grade >=70), and
the percentage of students that got a grade greater or equal to the average
grade. (15 points)
4. Exit. (5 points)
1. Write a list of book defining parameters. (5 at least)
o Name (String) – Topic (String) – Pages (int) – IsEnglishLanguage (bool) – Price
(float)
2. Declare and initialize the variables of book parameters.
3. Take input from user and output all the parameters given by user.
4. Create a function to initialize book parameter taken form user.
5. Initialize and store 2 books’ parameters. Print the book with more pages, total number of
pages.
6. Print the page numbers of each book using loop. (1 – 2 – 3 – 4 …..)
7. Store the 3 books data using array (each parameter separate).
8. Use loop store 10 books data in array, given by user. Print the data after input using
function and loop.
9. Store one book data via pointer
10. Store one book data via Reference
11. Store one book data via pointer. Use function to initialize the data given by user.
12. Store one book data via Reference. Use function to initialize the data given by user.