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 & Filtering

 The initial value of the radius of a circle is equal to one unit and each succeeding radius is one unit greater than the value before it. Write a program that computes the area of the circle starting with r = 1.0 to r = 5.0. Print out each radius and the corresponding area of the circle.


Write a C++ program which:

• Prompts user to enter two large integer numbers (x, y). Both numbers must be more

than 4 digits and less than 10 digits (do input validation, don’t use strings). The entered

numbers could be negative or positive. For example: 820778 and -58712979 where x is

6-digit positive number and y is 8-digit negative number.

• Make a function called Karatsuba() which takes these two integers and returns the

multiplication result using Karatsuba algorithm. You might need to make another helper

function called getDigits() which will get an integer as input and returns number of digits

of that integer. getDigits() will help you find the value of m and Bm.

• Display result in the main function.


Write a program that displays the following menu to the user:



Press 1 for Permanent Employee


Press 2 for Daily wages Employee



After selecting the appropriate employee calculate salary and medical charges for the employees. Following menu would be displayed:



Press a to calculate Salary


Press b to calculate medical charges.



The daily wages employees are paid 400 per hour while permanent employees are paid 800 per hour.When you would calculate the salary, first you need to ask for the number of hours for which the employee has worked so far. The permanent employees are paid 5% medical charges of their total salary while daily wages are paid 3% of medical charges. For calculating medical allowance no further selection/input is required.


Given a space-separted list of integers as input, write a program to add the elements in the given range and print their sum


You will be given M multiple range queries,where

You should print the sum of numbers that belong to the corresponding range


note: while checking if the number belongs to a range,including the string and numbers of range as well


Input

The first line of input is space-separated integers

The secondline of input is a positive integers M denoting the number of queries

The next M line contain two space-separated integer

Output:

The output should be M line printing the sum of each includes range


sample input 1:

1 2 2 3 3 3 4 5 6

2

0 2

1 4


sample output1:

5

18


sampleInput2:

6 6 14 20 8 -2 2 -3

4

1 2

2 5

3 6

0 4

sampleOutput:

2

2

12

2



The formula below decribes how to convert a temperature on the Fahrenheit scale to a temperature on the Kelvin scale.

TempK = (TempF − 32) × 5/9 + 273.15

Using the variables below Write one line of code to implement the formula


// Kelvin temperature

float TempK;

// Fahrenheit temperature

float TempF = 72; 


//One line of code to calculate temperature in Kelvin


---------------------------------------------------------------------------


Using while or do-while. Make a program that will input two number, If the two number entered are ODD then perform the addition and display the Sum. Your program will be terminated by an option if the user not to proceed another entry.

Ex, No. 1: 5 No. 2: 3

Sum is : 8

No. 1: 3

No. 2: 2

One of the number entered is not ODD


Write a program for:

Searching a word present in a sentence or not, if present print its location with a successful note.


We want to calculate the total marks of each student of a class in Physics, Chemistry


and Mathematics and the average marks of the class. The number of students in the


class is entered by the user. Create a class named Marks with data members for roll


number, name and marks. Create three other classes inheriting the Marks class,


namely Physics, Chemistry and Mathematics, which are used to define marks in


individual subject of each student. Roll number of each student will be generated


automatically.



a) Write a CD class that extends the Item class. CD’s have a String artist field and an int playingTime field. This class should have appropriate constructors, getters and setters and should override the toString method and the depreciate method. CD’s depreciate by 10%. b) Write a DVD class that extends the Item class. The DVD class has a String director (the director of the movie) and an int runningTime (how long the movie is). Remember to provide the appropriate constructors, getters and setters and to override the toString method and the depreciate method. DVD’s depreciate by 15%


Responsive Navbar let's build an Responsive Navbar page by applying the CSS concepts



Medium (Size >= 768px), Large (Size >= 992px), and Extra Large (Size >= 1200px):

Instructions:

  • The links in the HTML nav element should be hidden in devices below 768px and visible in devices equal and above 768px.
  • The page should have two different background images in devices below 768px and devices equal and above 768px.
  • The links in the HTML nav element should be displayed when clicked on the menu icon in devices below 768px.
  • The links in the HTML nav element should be hidden when clicked on the close icon in devices below 768px.
  • Use classList.toggle() to show and hide the HTML elements.

Note

  • Achieve the design using the CSS Flexbox layout and Media queries and Javascript.
  • Font Awesome Icons.

Resources

  • https://assets.ccbp.in/frontend/intermediate-rwd/landing-page-logo.png
  • https://assets.ccbp.in/frontend/intermediate-rwd/landing-page-sm-bg.png
  • https://assets.ccbp.in/frontend/intermediate-rwd/landing-page-lg-bg.png
LATEST TUTORIALS
APPROVED BY CLIENTS