Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

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.

  • The counter should be intially at 0.
  • When the HTML button element with the id
  • clearCount is clicked,Clear the counter timer using the clearInterval method.

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

  • When the HTML button with id saveBtn is clicked
  • The value of the HTML input element with id inputValue should be stored into the local storage with key as name
  • The HTML span element with id name should show the value of the HTML input element.
  • When the HTML button with id resetBtn is clicked
  • Clear the value in the HTML input element
  • Clear the value with key name stored in the local storage and set the text content of the HTML span element with id name to default.
  • When the page open's or reload, the value which exists in local storage with key name should be displayed in the HTML span element with id name.




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:

  • instantiate a bowling lane object after prompting the user for the states of each of the 5 pins (up or down);
  • Display the bowling lane object to the user in a friendly way so they can clearly see which pins are up and which pins are down.
  • Using a separate method you must build into the bowling lane object, classify the lane configuration and display it to the user. The rules are as follows:
  • If pins 2 & 3 or 3 & 4 are down, display HS - Headsplit.
  • If pins 2, 3 & 4 are all down, display A - Aces.
  • If all the pins are down, display X - Strike.
  • display the sum of the pins that have been knocked down. NOTE! The pin values are different than the pin locations. Pins 1 & 5 are worth 2 points, pins 2 & 4 are worth 3 points, and pin 3 is worth 5 points.

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




LATEST TUTORIALS
APPROVED BY CLIENTS