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

Armstrong numbers between two intervals

Write a program to print all the Armstrong numbers in the given range

A to B(including A and B). An N-digit number is an Armstrong number if the number equals the sum of the Nth power of its digits.Input

The first line has an integer

A. The second line has an integer B.Output

Print all Armstrong numbers separated by a space.

If there are no Armstrong numbers in the given range, print

-1.Explanation

For

A = 150 and B = 200For example, if we take number 153, the sum of the cube of digits

1, 5, 3 is 13 + 53 + 33 = 153.

So, the output should be

153.

Sample Input 1

150

200

Sample Output 1

153

Sample Input 2

1

3

Sample Output 2

1 2 3





Your application must make use of concepts such as arrays, loops, inheritance, constructors
and information hiding. Output must be shown in the form of a report using the console.
In your solution, make use of as many concepts, and components dealt with in this course, but
pay special attention to the following learning units:
• Learning Unit 1: Advanced arrays.
• Learning Unit 2: Introduction to inheritance
Remove Vowels in a Sentence

You are given a sentence. Write a program to remove all the vowels in the given sentence. 

Note: Sentence has both lowercase and uppercase letters.

Input

The first line of input is a string 

N.

Explanation

In the example given a sentence 

Hello World, the sentence contains vowels e, o.

So, the output should be 

Hll Wrld.

Sample Input 1
Hello World
Sample Output 1
Hll Wrld
Sample Input 2
Once upon a time
Sample Output 2
nc pn  tm
Python 3.9
RESET
SAVE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
string = input()
if string == 'x':
    exit();
else:
    newstr = string;
   
    vowels = ('a', 'e', 'i', 'o', 'u');
    for x in string.lower():
        if x in vowels:
            newstr = newstr.replace(x,"");
    
    print(newstr);
     
     
         
                
        
Custom Input
RUN CODE
SUBMIT
TEST CASE 1
TEST CASE 2
Input
1
Once upon a time
Diff
Your Output
Onc pn  tm

Expected
nc pn  tm




Given X="ABCDEFGHIJKLMNOPQRSTUVWXYZ", X[8:16:2] is?



a) IKMO


b) IKMOQ


c) HJLNP


d) Error


Attaching a link below which contain question for C++ kindly answer this as soon as possible shall be thankful.


https://drive.google.com/file/d/1ag_lt9tUtEiDE910HhaNaDHpT89eWM6L/view?usp=sharing

Create class bird and implement it with interface function
Code for beginners.

Rearrange numbers in the string

example

hi im 98 and -12 also

output= hi im -12 and 98 also


Return Lines 33-34 to the form:

Console.WriteLine("Employee {0} {1}, (ID: {2}) earned {3:C}",

firstName, lastName, idNum, grossPay);


Assume employees have their wages reduced by 20% to reflect the effects of taxes:


Modify the variable declarations in Line 6 to add netPay:  public static void Main()

  {

    int idNum;

    double payRate, hours, grossPay;

    string firstName, lastName;


Add a new line of code into the program to compute netPay which is grossPay multiplied by 0.8 (80%).

Math Lesson Reminder: The 0.8 multiplier is 1.0 - 0.20. If 20% of the employee's salary goes to tax, 80% of their salary (or 100% - 20%) is what they get to keep.

Modify Lines 33-34 to print out the value of netPay as well as grossPay.


Given day number D as input, write a program to display the day name


Write a program to find the hypotenuse H of a right-angled triangle of sides A and B.

output : 13

5

it should be : 5

output : 12

5

it should be 13.


LATEST TUTORIALS
APPROVED BY CLIENTS