Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Only question 5 and 6, please Note: Currency AED: The United Arab Emirates, United Arab Emirates dirham/Countries. Computer Programming Tutorial Session 2 Objective: To familiarize

image text in transcribed
Only question 5 and 6, please
Note: Currency AED: The United Arab Emirates,
United Arab Emirates dirham/Countries.
Computer Programming Tutorial Session 2 Objective: To familiarize and practice uses of cin and cout, and different datatypes. Lab exercises: 1) Write a C++ program to convert a value of temperature in Celsius to Fahrenheit. 2) Write a C++ script that would evaluate and display the area of a triangle using the formula A=S(S-a)(s-b)(s-c) where a,b and c are the sides of the triangle and s= (a+b+c)/2 3) Write a C++ code to convert a given angle in Degrees to Radians. 4) Write a C++ program that would calculate and display the distance between two given points (xl,yl,zl) and (x2,y2,z2) using the formula D = (x -x)+(y.-y.)+(2,-2) 5) Write a C++ program that works as a currency converter. The user should input the currency in AED and change it to their required currency based on the exchange rate. 6) Write a C++ program to calculate and display the electricity charge using the relation: Charge = (Power x time of usage x 0.3) / 1000 The user should feed in the power and time of usage

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

What is order of reaction? Explain with example?

Answered: 1 week ago

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago