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

Pyramids Frequency

These are N pyramids in a line.You are given their heights as space-separated integers.Write a program to print the heights of the pyramids in increasing order along with their frequency.


Input

The first line of input contains space-separated integers.


Output

Each line of output should contain the height of the pyramid and its frequency in the ascending order of the pyramid's height.


Explanation

In the example, The given pyramid heights are 1,5,1,2,5,6.

The frequency of each unique pyramid height is

1 2

2 1

5 2

6 1


Sample Input1

1 5 1 2 5 6

Sample Output1

1 2

2 1

5 2

6 1



Enter·n:·214

4

1

2


calculate the area of rectangle a square a triangle by using constructor overloading






Write a C program that is going to use function to calculate the perimeter of a circle

Create another class called Television. Television is an Appliance. It only has the following additional private attributes:



type (whether Smart or Non-Smart)


volume (0 - 100)


channel (1 - 100)


It should have the following methods:



getters


void volumeUp() - increases the volume by 1 (possible only when TV is ON)


void volumeDown() - decreases the volume by 1 (possible only when TV is ON)


void channelUp() - increases the channel by 1 (possible only when TV is ON)


void channelDown() - decreases the channel by 1 (possible only when TV is ON)


String toString() - overriding Appliance's. It should include type, volume, and channel in this format ("Brand: xxxx, Cost: PhP xxxx.xx, Power: xx, Type: xxxx, Volume: xx, Channel: xx").




A lone constructor is to be implemented with a type, brand, and cost as an argument. It sets the volume to 0 and channel to 1. And it prints "Television Constructor" as well

Input three characters in three different lines.

Print out "Equal" if all of the characters are equal. Otherwise, print out "Not Equal". Note, however, that in C language, uppercase and lowercase letters are not equal.


Enter·the·first·character:·C

Enter·the·second·character:·c

Enter·the·third·character:·C

Not·Equal



Use Localstorage using textarea:


Use the below reference image link:.

https://res.cloudinary.com/dfxicv9iv/image/upload/v1618940947/localstorage-textarea_yvgdzf.gif

Achieve the design with HTML, CSS, and functionality with JS.

  • When the Save button is clicked
  • If the value in the HTML textarea element is non-empty, store textarea value in local storage with the key yourStory.
  • When we open or reload the page,
  • The value which exists in local storage with id yourStory should be displayed.

Quick Tip

Use bootstrap button primary.



DOM Manipulations

Use the below reference image link:.

https://res.cloudinary.com/dfxicv9iv/image/upload/v1619260598/dynamic-dom-manipulations-3_bov0vg.gif

When the Delete button is clicked

  • The blog element and the respective button should be deleted.

Note

Use the removeChild method to remove the element from DOM.


DOM Manipulations

Use the below reference image link:.

https://res.cloudinary.com/dfxicv9iv/image/upload/v1619259911/dom-manipulations-2_ax38mg.gif

Dynamically add the elements in HTML container element with id

myContainer to achieve the design.

Note

Use the checked property and classList.toggle method to achieve the functionality.

Resources

CSS Colors used:

#7a0ecc

#f2ebfe


HTML Placeholder Attribute

Placeholder Attribute.

Use the below reference image link:.

https://assets.ccbp.in/frontend/content/dynamic-webapps/ce-3-2-1-html-placeholder-attribute-op.png


LATEST TUTORIALS
APPROVED BY CLIENTS