Igor lives in Russia and frequently travel to Singapore (time difference: + 6 hours), western Canada (time difference: -10 hours) and India (time difference: + 3.5 hours). Write an algorithm, in the form of a flowchart, which inputs the present time (using 24 hour clock) and the country he is visiting. The output will be the time in the country he is visiting.
Write a program to calculate the electricity bill. The rates of electricity unit are as follows:
⮚ If the units consumed are <=300, then the cost is Rs. 2 per unit
⮚ If the units consumed are >300 and <= 500 then the cost is Rs. 5 per unit. ⮚ If the units consumed exceed 500 then the cost per unit is Rs. 7
A line rent Rs. 150 is also added of 5% extra if the bill exceeds Rs. 2000. Calculate the total bill with all conditions given above.
Using loop. Make a program code reverse
( from N to 1) (to 1 - N).
Construct a class called Term. It is going to represent a term in polynomial expression. It has an integer coefficient and an exponent. In this case, there is only 1 independent variable that is 'x'.
There should be two operations for the Term:
Input
The first line contains the coefficient and the exponent of the first term. The second line contains the coefficient and the exponent of the second term.
1·1
4·3Output
Display the resulting product for each of the test case.
4x^4Describe the difference between a chained conditional and a nested conditional. Give your own example of each.
• Task 3: Write a function to calculate the (compound) interest on an initial investment of E100 at an annual interest rate of 5% by using a loop structure. Do not derive or use the compound interest formula.
The idea is to use a loop structure to add the compound interest to the present balance. You should assume that interest is paid annually and print the balance every year for 10 years. Modify your code so that the interest rate is entered from the command line. Make sure that your program issues an error if the interest rate is not a real number in the range 0≤r≤100.
TASKS
• Task 1: Install Microsoft Visual Studio C++ 2022 Community IDE on your laptop.
• Task 2: Write a program that stores the first N square integers (starting from 1) in a single array. You should allow the value N to be entered from the command line and use dynamic allocation to create the array.
Print the array to the screen at the end of your program. Modify your program so that the array can be extended by a number M also entered from the command line and then print it again. Sample output is shown below.
Enter N: 5 1 4 9 16 25
Enter M: 3 1 4 9 16 25 36 49 64
Write a java program to create menu driven calculator that performs basic arithmetic operations using switch statement . Name the class as calculator. The program should ask the user to input 2 numbers and arithmetic operator (+,/,*,-). It should perform operation according to the entered and print the entered numbers , the operator and the result.
5. Write a C Program to calculate the Average of an array elements where the elements are
received as input.
4. Write a C program to input number from user and check number is palindrome or not using while loop.