Clear Interval
The goal of this coding exam is to quickly get you off the ground with the clearInterval.
Refer to the below image.
https://assets.ccbp.in/frontend/content/react-js/clear-interval-op.gif
Achieve the given functionality using JS.
HTML
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="text-center">
<p id="counter" class="paragraph">0</p>
<button id="clearCount" class="clear-interval-button">Clear Interval</button>
</div>
</body>
</html>
CSS
.clear-interval-button {
border-radius: 10px;
margin-top: 10px;
padding: 15px;
background-color: #0275d8;
color: white;
border: none;
outline: none !important;
}
.paragraph {
font-size: 50px;
}
Write a C program for File Operations to read a string of characters from standard input and prints the entered string of charatcters using fgetc() and fputc() function. fgetc() is used to obtain input from a file single character at a time. fputc() is used to write a single character at a time to a given file.
Input : good bye
Output : good bye
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
Achieve the given functionality using JS
Input number of rows: 2
Input number of columns: 2
Input value of row 0 and column 0:
Input value of row 0 and column 1:
Input value of row 1 and column 0:
Input value of row 1 and column 1:
SUMMARY:
The sum of column 1 is...
The sum of column 2 is...
The difference of column 1 is ...
The product of column is 1 ....
The smallest element in column 1 is .....
Plan, code and compile a BowlingLane class that will model a 5 Pin Bowling Lane. The bowling lane will have 5 pins which can be either upright or knocked down. Use 5 boolean variables to represent the pins. Next, create a client program that will:
Pls help me to implement this program
#include <iostream>
using namespace
struct NameType
{
string first;
string middle;
string last;
};
struct AddressType
{
string address1;
string address2;
string city;
string state;
string zip;
};
struct DateType
{
int month;
int day;
int year;
};
struct ContactType
{
string phone;
string cellphone;
string fax;
string pager;
string email;
};
struct EmployeeType
{
NameType name;
string emp_id;
AddressType address;
DateType hireDate;
DateType quitDate;
ContactType contact;
};
Cards Game
Write a program to print the following,
Input
The only line of input contains three space separated integers M,N and Z.
Output
Print the number representing the person who will get the last card.
Explanation
Given M=3, N=3, and Z=2.
Distribution of cards starts from 2.The final order of persons is 2,3,1.
The last person to get the card is 1.
Sample Input1
3 3 2
Sample Output1
1
Difficult Addition
Arjun is trying to add two numbers. Since he has learned addition recently, an addition which requires a carry is difficult for him. Your task is to print Easy if the addition does not involve a carry, Otherwise print Hard.
Input
The first line of input contains two space separated integers A and B.
Output
If the addition does not involve a carry,print Easy, otherwise print Hard.
Explanation
When calculating 229 + 390, we have a carry from the tens digit to the hundreds digit, so the answer is Hard.
Sample Input1
229 390
Sample Output1
Hard
Sample Input2
123456789 9876543218
Sample Output2
Easy
Input
The first line of input consists of an
integer- size 1, representing the size
of the first list (N).
The second line consists of N space-
separated characters representing
the product ID for each product.
The third line consists of an integer-
size2, representing the size of the
second list (M).
The last line consists of M space
separated integers representing the
quantity for each product.
Output
Print a list of size N* M containing the
elements of the list alteggate),
Note
Both of the lists will always have the
same number of elemenos
Example
Input
3
abe
3
123
Write an algorithm to make an automated system which will help the builder to find the exact area for building the apartment