Write a program that can able to print the following pattern:
*
***
*****
*******
*********
A company Digicom Parts manufactures 2 types of unique products for laptop and desktop computers. It manufactures 10 types of laptop products and 42 types of desktop products. Each product manufactured by the company has a unique productID from a-z and A-Z. The laptop product have productID (a, i, e, o, u, ALE, O, U) while the rest of the productIDs are assigned to the desktop products. The company manager wishes to find the sales data for the desktop products. Given a list of productIDs of the sales of the last N products, write an algorithm to help the manager find the productIDs of the desktop products.
Create a class called 'Octal' that has data members for integer and decimal, a
constructor to initialize the object to some constant value using at least one implicit
and another explicit way of initialization, member function to add three Octal objects
along with also have at least one default argument, suitable member function to
display octal value in interger.decimal format. Write a main function to create three
Octal objects, add them and display the result in interger.decimal format.
A HighSchool application has two classes: the Person base class and the Student child
class. Using inheritance, create two new classes, Teacher and CollegeStudent. A
Teacher will be like Person but will have additional properties such as salary (the
amount the teacher earns) and subject (e.g. “Computer Science”, “Chemistry”,
“English”, “Other”) .Teacher class having a method displayDetails() to display all the
information about a teacher. The CollegeStudent class will derive from the Student
class by adding a year (current level in college) and major (e.g. “Electrical
Engineering”, “Communications”, “Undeclared”). CollegeStudent class having a
method printDetails() to display details about collegestudents.Create object of
Teacher and CollegeStudent class and call the method.
Note: No global declarations
Call the functions in main through menu
Implement the following :
Circular singlyLinked List with following functions :
1)insert_at_head(node* & head, int val);
2)insert_at_tail(node* & head, int val);
3)display(node* head) ;
4)insert_at_pos(node* & head, int val,int pos);
5)delete_at_head(node* & head);
6)delete_at_tail(node* & head);
7)delete_at_pos(node* & head, int pos)
Absolute zero is the lowest temperature that can be reached; it is -273.15°c, or 0k. The above preogram, even when corrected l, will produce erroneous results when given a temperature below zero, Place a check in the main program that will produce an error if a temperature is given below -273.15°c.
You received a generous sum of money in US dollars from the caribou club to attend school in Europe. You have decided to develop an application to keep track of what you hav spent. This application should be built to accept US dollars, convert them to various currencies and add each amount spent. The US dollars spent should be added to running total and displayed on the form as each foreign currency amount currencies used are as follows: English pounds=$1=0.66, Italian Lira=$1=1476.38, German Marc=$1=1.48, Spanish Peseta=$1=126.87
you are required to write a simple Vehicle Hite System to rent and return vehicle. The rental charges are based on the number of days a car is rented. You are required to write the Vehicle class using the specifications below: instance variables for storing vehicleID, status, dailyRates, nadaysRented, renterName, renterLicenseNumber. The status should be set to either '0' (on-loan) or 'A' (available). Provide accessor and mutator methods for instance variables vehicleID and status.
Write a constructor that takes as parameter vehicle_ID and daily_Rates and assigns the corresponding instance variables. The instance variable status should be set to 'A' (available) initially.
wap to throw and handle array out of bound exception
Define a Car class that represents a car with the following requirements:
Speed int, brand in string, price in float.Default constructor definition, function for displaying vehicle information, function for assigning vehicle speed, for assigning vehicle brand, for assigning a vehicle price, for writing a chapter main program using the above classIn the main program, declare an array of N vehicles (N is entered from the keyboard). Enter information for each vehicle from the keyboard, then display the information of the most expensive car on the screen.