Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a class called InputData. It has two private data members data_a (int) and data_b (int). Write a function input() to get input for the attributes from the user and a function display() to display the values of the attributes. The values of these two data members can be returned by using two public functions get_a() and get_b().


*Derive a class called Arith_Unit from InputData. It contains the functions add(), sub(),mul(), div() to perform arithmetic operations on data_a and data_b.


Write the program segment for the following questions. ALL question are not

related.


5. set the array item with size 10 with the following data: 3, 5, 7, 9, 11 and 5, 10, 15, 20, 25

6. Let say the array arrayList was declared with size 15. Set the array arrayList with the following data 10, 15, 20, 25, ... using assignment statement


Write the program segment for the following questions. ALL question are not

related.


1. set the array mark with size 10 using input statement

2. set the first three elements of array itemX using input statement

3. set the third element until the sixth element of array itemX using input statement

4. set the array array with size 5 with the following data: 3, 5, 7, 9, and 11


Day Name - 2

Given the weekday of the first day of the month, determine the day of the week of the given date in that month.

Input

The first line is a string

D. The second line is an integer N.Output

The output should be a string.

Explanation

In the given example,

D = Monday. As the 1st of the day of the month is a Monday, it means the 7th and 14th of the month will also be Mondays (A week has 7 days). So the 16th day (N = 16) of the month will be a Tuesday.So, the output should be

Tuesday.

Sample Input 1

Monday

16


Output:

Tuesday


sample Input-2:

Tuesday

17


Output:

Thursday


Flipkart is providing a discount to customers based on the purchases made. Ramachandra has purchased some items, he would like to know his bill. Following are the requirements to solve the problem


a) For purchases less than Rs 1000, the discount is 10% b) For purchases greater than and equal to Rs 1000 and less than 1500 the discount is 12%


c) For purchases greater than and equal to Rs 1500 the discount is 14% 4) Capture the purchased amount by Ramachandra


e) Display Ramachandra's final bill


1) Roger Amster teaches an English course in which 40 students are enrolled. After yesterday’s class, Roger questioned the 5 students who always sit in the back of the classroom. Three of the 5 said “yes” when asked if they would like A Tale of Two Cities as the next class reading assignment.

a)     Identify the population and the sample in this situation.

b)    Is this likely to be a representative sample? If not, why not?


Given the number of rows N,write a program to print the hallow diamond pattern.Note:No space on the left side of the output.


  1. Create two classes IntArray to store the set of integer numbers and FloatArray to store decimal numbers. Add a member function read() for both classes for reading inputs. Create two objects ‘x’ for IntArray and ‘y’ for FloatArray. Read the inputs for x and y. Using a friend function maxmin(x,y), display the maximum and minimum among the set of integers and decimal numbers.

Due to lockdown, AB bank handles a limited number of customers each day (30 persons). To maintain social distance, these persons enter into the bank in 3 rounds. First, 10 people go and perform their task one after one. After 2 minutes, one of them leave the bank finishing their work. When all of the 10 persons leave the bank, 10 more people enter into the bank and perform their work. This continues until all the 30 people are served. 

Write a program that automates this task. It will store the name of the customers who are entering the bank. When the quota of 10 persons gets filled up, it will prevent others from entering the bank. After each 2 minutes, the program will print the name of the customer who is about to leave the bank. When the bank will be empty, it will let 10 more people enter into the bank. After serving 30 people, it will announce that bank is closed for the day


Write a single C program to perform the following operations. Read the choice where, if the choice is 1 Multiplication should be performed, if the choice is 2 Area of Circle should be executed, if the choice is 3 them it has to execute the function of checking number is even or odd, if the choice is 4 then it has to find the factorial of a number and if the choice is 5 then execute the function smallest of 3 numbers


LATEST TUTORIALS
APPROVED BY CLIENTS