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})
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:
Input
A line containing two integers separated by a space.
1·231214238Output
A line containing a string.
YesCreate 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):
Use the image URL's given below.
#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.