Celebs car hire company has a range of cars for rent. Charges start at £20 a day for the cheapest to £70 a day for the most expensive. The company requires a program that gives customers printed details of charges. The program asks the user for a car make, model and daily rate1 then displays a table of daily charges for between one and fourteen days.
Design a class art that contain the details of artist, country and class info contain the details of year and art-type (fancy, historic or modern). Use a function for displaying the details by reading data from class art and info. The function used for displaying is not a member of any class
Hourly Stop Watch
The goal of this coding exam is to quickly get you off the ground with the clearInterval and setInterval.
Refer to the below image.
https://assets.ccbp.in/frontend/content/react-js/hourly-stop-watch-op.gif
HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div class="text-center">
<p class="timer">
<span id="minutes">00</span>:<span id="seconds">00</span>
</p>
<button class="bg-start-button button" id="startBtn">
Start
</button>
<button class="bg-stop-button button" id="stopBtn">
Stop
</button>
</div>
</body>
</html>
Remove Item in Local Storage
The goal of this coding exam is to quickly get you off the ground with
Remove Item In Localstorge
Use the below reference image
https://assets.ccbp.in/frontend/content/dynamic-webapps/removeItem-in-localStorage-op.gif
HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div class="display-username text-center">
<p>Hello, <span id="name">Varun</span>!</p>
<p>Update your Name</p>
<input id="inputValue" placeholder="Write your name here" />
<br />
<button class="btn-primary save-button" id="saveBtn">
Save to Local Storage
</button>
<button class="btn-secondary reset-button" id="resetBtn">Reset</button>
</div>
</body>
</html>
4. Write a program (without using an array) that accepts three numbers from the user and prints "increasing" if the numbers are in increasing order, "decreasing" if the numbers are in decreasing order, and "Neither increasing or decreasing order" otherwise.
Example: Input first number: 1524
Input second number: 2345
Input third number: 3321
Expected Output :
Increasing order
Create a project to model student with firstname, lastname, age, gender and student number. Create two construtors, one to be used as default and another to include all attributes. Add a class attribute to keep count of all registered students. Use the class attribute to generate student numbers with the following format 22201XYZ, where XYZ is the current count provided by the class attribute. Implement the respective getters and setters for each attribute. 2. In plane geometry, the x- and y axis of a 2D Cartesian system divide it into four infinite regions called quadrants. Your task is to model each point with an x-value and y-value. Apart from the constructors, getters and setters, implement a getQuadrant method to determine the region in which a given point falls.
Friend and Enemy
A group of F friends went to a haunted house.Each member was given a shirt with a number on it ranging from 1 to F. As they entered the haunted house, one of them was kidnapped and an enemy joined them.But unfortunately, the enemy didn't wear the shirt with the same number as the kidnapped one, instead wore the same as some other person.Find the numbers on the shirts of the enemy and the kidnapped person.
Input
The input is a single line containing space-separated positive integers from 1 to F.
Output
The output should be a single line containing the shirt numbers of the enemy and kidnapped person separated by a space.
Explanation
The given array is 3 1 5 2 1.
In the range from 1 to 5, the number 1 has occured twice and 4 is the missing number. So, 1 belongs to the enemy's shirt, and 4 belongs to kidnapped.Hence, the output should be 1 4.
Sample Input1
3 1 5 2 1
Sample Output1
1 4
Sample Input2
1 2 2 4
Sample Output2
2 3
Write a menu driven program which has the following options:
1. Factorial of a number
2. Prime or not
3. Odd or Even
4. Exit
Once a menu item is selected the appropriate action should be taken and once this action is finished, the menu should reappear. Unless the user selects the “Exit” option the program should continue to work. You may use of an infinite while and switch statement.
Make a program that prints out the first 8 multiples of a given integer y. Please use for loop.
Sample output:
Enter a number: 7
7 14 21 28 35 42 49 56
While purchasing certain items, a discount of 10% is offered if the quantity purchased is more than 1000. If quantity and price per item are input through the keyboard, write a program and a flowchart to calculate the total expenses.