Beyond 300 units Rs.5.00 per unit
An electricity board charges the following rates to domestic users to discourage large consumption
of energy.
For the first 100 units Rs 1.50 per unit
For the next 200 untis Rs 3.00 per unit
All users are charged a minimum of Rs. 100. If the total cost exceeds Rs.250, then an additional
surcharge of 15% is added. Write a program to read the name of user and number of units consumed
and print out the charges with name.
Find The missing number in each row
4
1 2 3 4
2 3 4 1
3 4 1 2
4 1 2 3
If all rows contains 1 to 4 numbers then it is true else false
Find the difference numbers 7 5 1
Output: 7-5=2, 5-1=4, 7-1=6.
So output is least difference 2
Find the missing number, which number is repeated 1 3 2 1 4
Output: repeated and missing number
1 4
Q1. Find the frequency of the given numbers 1 3 1 2 4 5.
Output:
1 2
2 1
3 1
4 1
5 1
Library Management
In this assignment, let's build a Library Management page by applying the concepts we learned till now.
Image:https://assets.ccbp.in/frontend/content/dynamic-webapps/library-management-output-v1.gif
HTTP Requests & Responses
Example:
https://apis.ccbp.in/book-store?title=IndiaQuery ParameterValuetitleValue of the searchInput element. Example: India
It should pass test conditions:
When a value is provided in the HTML input element with id searchInput and Enter Key is pressed, an HTTP GET request should be made to the Books URL with the query parameter 'title' as the value of the searchInput element
When the HTTP GET request is successful, then the searchResults element should consist of HTML image elements with src attribute value as the value of key 'imageLink' and HTML paragraph elements with text content as the value of key 'author' from HTTP response
An electricity board charges the following rates to domestic users to discourage large consumption of energy. For the first 100 units Rs 1.50 per unit For the next 200 units Rs 3.00 per unit
Employee of the week
You are provided with the following data set of the employees for a week. The employees are rated on various parameters on the scale of 10. Write a program to help the manager to find on the employee of the week. Create your own logic to define the employee of the week". Please create logic based on the entire week and not just for specific days. Also, clearly state your assumptions
Name
Assessment
Day 1
Day 2
Day 3
Day 4
Day S
Parameters
Attendance
6
4
7
5
5
Peter Parker
3
4
3
5
4
6
4
4
Productivity
Client Feedback
Attendance
Productivity
Client Feedback
8
9
7
6
8
Steve
3
4
8
Rogers
7
7
5
9
Attendance
3
4
6
4
5
Tony Stark
9
19
8
7
7
Productivity
Client Feedback
6
6
6
Sample Input:
Input data will be given in the above table. Assume a way to take input and mention in comments in the program.
Sample Output:
Name of employee.
An organization is granted a block of addresses with the beginning address
70.10.27.0/28. The organization needs to have 3 subblocks of addresses to use in its three
subnets: Use VLSM. Design the network and plot it completely with respective subnets, IP
range, Network IDs .
Create a class named 'Rectangle' with two data members- length and
breadth and a function to calculate the area which is 'length*breadth'. The
class has three constructors which are :
1 - having no parameter - values of both length and breadth are assigned
zero.
2 - having two numbers as parameters - the two numbers are assigned as
length and breadth respectively.
3 - having one number as parameter - both length and breadth are
assigned that number.
Now, create objects of the 'Rectangle' class having none, one and two
parameters and print their areas.