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 = 200


For 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


please provide correct output in sample output 2


please provide correct output in sample output 3


the above output 3

input=10

input=15


Design and develop programs for evaluating the equations: Implement it

Write a C++ Program to do the following. • Create a structure called Employee that includes employee ID (string), name of the employee (string), the over-time fee (float) and the number of overtime hours during the weekdays (int aray). • Write a function called getEmp() which is the data type of Employee that reads the details of Employee and store them in the variable of the Employee structure. Hint: Use the given function prototype as Employee getEmp(Employee e); Write a function called calOTpayment() which takes three parameters, over-time fee of the employee, number of over-time hours in weekdays (5 days) array and the size of the array. Find the total payment for the employee and print the total Overtime fee for Weekdays. • Call the getEmp() and calOTpayment() in the main function to print the following output as required.




Assignment

•read an integer from input file 1.

•read an integer from input file 2.

•if both were successful:

◦Multiply these input values, and store the result.

◦Write the value in output file.

◦Add the value to an accumulator.

◦Increment a counter.

•If the input file 1 read was not good, and the eof has not been reached,

◦print “ERROR: “ and the counter variable.

◦End the loop.

•If the input file 2 read was not good and the end of the file has not been reached,

◦print “ERROR: “ and the counter variable.

◦End the loop.

•If the write to the output file was not good:

◦print “ERROR: “ and the counter variable.

◦End the loop.

After the loop, your program should print out “Program completed after “ counter“ numbers read.” The program should then let the user know if either file was not finished or if both were finished. The program should then print out the final accumulator value


why is it important for a to determine computer specification in troubleshooting malfunctioning computer


C# VISUAL BASIC


Design and develop a simple application system that computes the Depreciation Cost of Item (D) takes as input the purchase. Price of an Item (P) its expected number of year of service (S) and yearly Depreciation of the Item (Y)


Design and develop a simple application system that computes the Depreciation Cost of Item (D) takes as input the purchase. Price of an Item (P) its expected number of year of service (S) and yearly Depreciation of the Item (Y)


Design a class Market to calculate the total expenses. The quantity and price per item are input by the user in base class and the derived class calculate the discount of 10% is offered if the expense is more than 5000 in derived class. Display the total expenses using single inheritance.

Your goal is to ask for the total bill and the amount that the user gave as a tip and determine based on a set of criteria whether that tip was a good amount.Create an algorithm, pseudocode and flowchart for this problem Code the solution for this problem prompt the user for the total bill amount.Prompt the user for the tip that they left Use the following equation to calculate the tip percentage: tip amount/total bill.Based on the tip percentage that was calculated, determine a message to display that will tell the user how good their tip was. Criteria: Tip less then 0 or greater than 1Tip is between 0 (including 0) and 0.05 (including 0.05)Tip is between 0.05 (not including 0.05) and 0.1 (including 0.1) Tip is between 0.1 (not including 0.1) and 0.2 (including 0.2) Tip is between 0.2 (not including 0.2) and 0.3 (including 0.30) Tip is greater than 0.3 Display the tip percentage that the user left along with a message as to how they rank as a tipper in an output box.



Explain in your own words why main memory is constrained in a mobile device and compare it to main memory on a desktop computer


LATEST TUTORIALS
APPROVED BY CLIENTS