A college offers diploma course with five set modules each. Define a class Student as an ADT that uses separate files for the interface and the implementation. This class represents a record of one student’s registration and results. For each Student the following information should be kept as member variables:
the student’s name, ID, student number, the name of the diploma, average mark, an array with the five module codes for the diploma, and another array with five results - one for each of the modules.
Class Student should also have a member function calcAverage() to calculate the average for the five results and a member function pass() to determine whether or not a student has passed the module. A student only passes a diploma course if he or she has obtained more than 50% for all the modules, regardless of his or her average mark. Member function pass()should return a boolean value.
.
1. Design and develop an HTML script that will display the given web page content. Apply the appropriate element, heading must be center, background color (light cyan), and font-color (the word VALENTINES must be in a bold face, the word chocolate must be in a color brown, roses should be red color, true love must be italic, and LOVE word must be in red color Below illustration is the sample output. Make sure in a <title> tag you must write your SURNAME.
Create a class called bMoney. It should store money amounts as long doubles. Use the function ms_to_ld() to convert a money string entered as input into a long double, and the function ld_to_ms() to convert the long double to a money string for display. You can call the input and output member functions getmoney() and putmoney().
Overload the operators +,-,*,/ appropriately.
create a class Matrix the stores it in a safe 2D array .that is it it should check for array index bounds .a constructor should allow the programmer to specify the actual dimensions of the matrix. define number functions : putel() for taking 3 argument row index , column index and the element storing it in the corresponding location. getel() for taking 2 arguments row and column indexes and returns the elements from that location . overload the operators +,-,and * appropriately
Provide a member function of class linkedListType that determines the maximum element in a list. Use the following header template Type linkedListType:: max(); You may assume that operator> is overloaded for Type.
Write a C Program to display the following matrix
Given an integer number M, N as input. Write a program to print a striped rectangular pattern of M rows and N columns using (+ and -) character.
The first line of input is an integer M.
The second line of input is an integer N.
In the given example the striped rectangular pattern of
7 rows and 5 columns. Therefore, the output should be
+ + + + +
- - - - -
+ + + + +
- - - - -
+ + + + +
- - - - -
+ + + + +
Write a program to print a rectangle pattern of M rows and N columns using the characters as shown below.
The first line of input is an integer
M. The second line of input is an integer N.
In the given example,
3 rows and 10 columns. Therefore, the output should be
+----------+
| |
| |
| |
+--------- +
You are given a positive integer N. Your task is to find the number of positive integers K <= N such that K is not divisible by any of the following numbers 2, 3, 4, 5, 6, 7, 8, 9, 10
The first line of input is an integer N.
The output should be an integer representing the number of positive integers satisfying the above condition.
In the given example,
11 is not divisible by any number from 2 to 10. It is divisible by only 1, 11.So, the output should be 2.
Sample Input : 12
Sample output: 2
Sample Input: 200
Sample output: 47
Sample Input : 10
Sample output: 1
Write a program to print a rectangle pattern of
The first line of input is an integer
In the given example,
3 rows and 10 columns.