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

Write a menu driven program using Switch Case in C++ to input a number and perform the



following tasks:



(i) Count and print the number of its digits.



(ii) Print the sum and product of its digits.

Write a program in C++ to print the sum of first 20 even numbers and odd numbers


separatel



Write a program in C++ to print the following series:






2, 5, 10, 17, 26 ………….. upto 10 terms.

list=[50,0,10,30]

using recursive function find min to max in ascending order.


Write a python function Count_Freq(A) which take a dictionary containing numbers. The function will return a dictionary containing key as a number and value as frequency defining how many times the number is repeating in the dictionary.

Note:

write a code without using counter function?

 

Example-1

Example-2

Input:

{'V': 10, 'VI': 10, 'VII': 40, 'VIII': 20, 'IX': 70, 'X': 80, 'XI': 40, 'XII': 20}

 

Output:

({10: 2, 40: 2, 20: 2, 70: 1, 80: 1})

Input:

{'V': 10, 'VI': 10, 'VII': 10, 'VIII': 10, 'IX': 20, 'X': 30, 'XI': 40, 'XII': 20}

Output:

({10: 4, 20: 2, 30: 1, 40: 1})



Found Ya!

by CodeChum Admin

Let's now try finding a certain digit into an integer! Come and join in on the fun and code with me!


Instructions:

  1. Input two integers in one single line. The first inputted integer must be within 0-9 only.
  2. Using loops, identify if the first inputted integer (0-9) is present in the second inputted integer. If it is found, print "Yes". Otherwise, print "No".

Input

A line containing two integers separated by a space.

1·231214238

Output

A line containing a string.

Yes




Create a program based on the attached output using the do-while loop. Your program will keep asking the user to choose from the Options. And the program exits until the user selects Exit.


Weather Report Section.

Devices (Size < 900px):

Devices (Size >= 900px):

  • The weather conditions in the section should be horizontal for the devices equals to and above 900px.
  • The weather conditions in the section should be vertical for the devices below 900px.
  • For the weather conditions, use justify-content property with value space-around to occupy equal space for the devices less than 900px.
  • The HTML Superscript element sup specifies inline text which is to be displayed as superscript. Refer to the prefilled HTML code.

Use the image URL's given below.

  • https://assets.ccbp.in/frontend/intermediate-rwd/partly-sunny-img.png
  • https://assets.ccbp.in/frontend/intermediate-rwd/partly-cloudy-img.png
  • https://assets.ccbp.in/frontend/intermediate-rwd/rain-with-sun-img.png
  • https://assets.ccbp.in/frontend/intermediate-rwd/sunny-img.png

#ffffff20

#b96fa1

#5a3f8c

Border color Hex Code values:

#e9e9e930

Text color Hex Code values:

#ffffff

Roboto


Create a flowchart and a java program of the problem stated as follows. Create

user-defined methods that will perform 4 functionalities of an Automated Teller

Machine(Withdraw, Deposit, Transfer, Balance Check)

1. Withdraw (method name: withdraw)

* Input the amount to be withdrawn. Compute for the remaining balance after

the operation (balance = balance - withdrawn)

2. Deposit (method name: deposit)

* Input the amount to be deposited. Compute for the updated balance after

the operation (balance = balance + deposit)

3. Transfer (method name: transfer)

*Input the account number and the amount to be transferred. Compute for the

updated balance after the operation (balance = balance – moneySent)

4. Balance Check (method name: balanceCheck)

* Display the remaining balance.


There are two lists of numbers. Create a resultant list whose elements are the product of

the elements of the two lists.

Example: List A List B List C

21 30 630

50 10 500

.... .... ....


Write a Java program using a one-dimensional array that accepts as input an integer

value asking for the number of elements for each list. This will be used to generate random

numbers (5 to 69) for the one-dimensional arrays (List A and List B). The program will

compute for the product and store it in another array (List C). Display the result similar to

the Example above.


LATEST TUTORIALS
APPROVED BY CLIENTS