Answer to Question #274472 in Python for M.R46

Question #274472

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. 




1
Expert's answer
2021-12-02T07:31:08-0500
#include <iostream>
using namespace std;



int main()
{
    int time;
    cin >> time;
    cout << "Singapore: " << time + 6 << '\n'
    << "Canada: " << time - 10 << '\n'
    << "India: " << time +3.5 << '\n';


    return 0;
}

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS