Draw a flowchart that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Rates vary based on the type of service and are computed as follows:
Regular service: $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute.
Premium service: $25.00 plus:
a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free; charges for over 75 minutes are $0.10 per minute.
b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free; charges for over 100 minutes are $0.05 per minute.
Given; Shopping ui ,Product class ,Size class ,Region class
You will create Cart class as a context class to get total price and add product.
To implement Strategy pattern, depending on the country of shipping, the relevant customs duty is charged and the shipping cost of Europe Shopping, America Shopping increases. Large products (XL-size) have an additional charge. Create AmericaShopping and EuropeShopping concrete class. In the USA, the duty tax is 1% and the base delivery fee is $15. In America, an additional tax different from the customs tax is applied and this tax is 0.75. Customs duty should be added to the item fee for each item. In Europe, the customs duty is 1.5% and the base delivery fee is £11. In America, $5 should be added to the shipping fee when each item is added. But if the added product size is XL, $10 should be added to the shipping fee. In Europe, this should only be done if the product size is XL. You are NOT allowed to alter Shopping, Product, Size, Region, and Currency classes.
Create a program that takes in two words, check for equality ignoring the cases, if the words are equal the print the word in upper case with an appropriate message however if the words are different then print the two words in lower case with an appropriate message.
consider an array MARKS [20] [5] which stores the marks obtained by 20 students in 5 subjects. now write a program.
(a.) find the average marks obtained in each subject.
(b.)find the average marks obtained by every student
(c.) find the number of students who have scored below 50 in their average.
(d.) display the scores obtained by every student.
Create a class named 'Rectangle' with two datamembers 'length' and 'breadth' andtwo methods to print the area and perimeter of the rectangle respectively. Its constructorhaving parameters for length and breadth is used to initialize length and breadth of therectangle. Let class 'Square' inherit the 'Rectangle' class with its constructor having a
parameter for its side (suppose s) calling the constructor of its parent class as'super(s,s)'. Print the area and perimeter of a rectangle and a square.