Given an array A of N integers and two integers X and Y, find the number of integers in the array that are both less than or equal to X and divisible by Y
Write a program that reads 5 marks of different subjects out of 100 from the keyboard and determines and displays the sum and percentile of the marks
Create a C++ program which shows the given menu items:
1. Create (The create option will create a text file named "mytext.txt").
* This option should save accept basic personal information of the user such as name, course, email and contact number.
2. Read (The read option will read the contents of the file.)
3. Append (The append option will add text contents in mytext.txt)
* This option should add a string inputted by the user
4. Exit (The exit option will terminate the program which means the program is in loop while running)
User inputs a word. Programmesays if it has vowels or not
1. Create a class named 'Student' with a string variable 'name' , an integer variable 'roll_no' , 3 float variable called marks 1 , marks 2 , marks 3 and a character variable called grade . Assign the value by creating an object of the class Student.
Then print the ouput like:
Name: hamza manzoor
Roll No: s2019266036
Marks 1: 63.5
Marks 2: 55.5
Marks 3: 89.5
Grade: B
Write a program to accept five different numbers by creating a class called friend func1 and friend func2 taking 2 and 3 arg respectively and calculate the average of these numbers by passing object of the class to friend function.
Take in a number
from the user print if it's divisible by 3 or 5 or 3 and 5
Write a C++ program to make a structure of a student consisting of integer age, char name and
structure roll number that further divides into department, session, registration number and
degree. Set and display all the values from main function and display the record on screen to
present the access of structure within structure. You have to by access structure using pointer
type variable of structure.
How big of a role do green issues such as energy efficiency
implement the class Loan with the following requirements:
•
A member variable that will hold the annual interest rate of the loan. Its default value will be 2.5.
•
A member variable that will hold the number of years for the loan. Its default value will be 1.
•
A member variable that will hold the loan amount. Its default variable will be 1000.
•
A default constructor.
•
Another constructor that has interest rate, years, and loan amount as its parameters.
•
A member function that returns the annual interest rate of this loan.
•
A member function that returns the number of the years of this loan.
•
A member function that returns the amount of this loan.
•
A member function that sets a new annual interest rate to this loan.
•
A member function that sets a new number of years to this loan.
•
A member function that sets a new amount to this loan.
•
A member function that returns the monthly payment of this loan.
•
A member function that returns the total payment of this loan.