Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds (Note that 1 kilogram equals 2.2 pounds). Format your output with two decimal places.
Consider the following C++ program in which the statements are in the incorrect order.
Rearrange the statements so that it prompts the user to input the radius of a circle and outputs the area and circumference of the circle.
#include <iostream>
{
int main()
cout << "Enter the radius: ";
cin >> radius;
cout << endl;
double radius;
double area;
using namespace std;
return 0;
cout << "Area = " << area << endl;
area = PI * radius * radius;
circumference = 2 * PI * radius;
cout << "Circumference = " << circumference << endl;
const double PI = 3.14;
double circumference;
}Consider the following program segment:
//include statement(s)
//using namespace statement
int main()
{
//variable declaration
//executable statements
//return statement
}Write a C++ statement that includes the header file iostream.
Write a program that produces the following output:
CCCCCCCCC ++ ++
CC ++ ++
CC ++++++++++++++ +++++++++++++++
CC ++++++++++++++ +++++++++++++++
CC ++ ++
CCCCCCCCC ++ ++Note: The letter C in the output must be uppercase.
Write a program that produces the following output:
**********************************
* Programming Assignment 1 *
* Computer Programming I *
* Author: ??? *
* Due Date: Thursday, Jan. 24 *
**********************************In your program, substitute ??? with your own name. If necessary, adjust the positions and the number of the stars to produce a rectangle.
Write program to input a multi-word string from keyboard and write this input string along
with first letter of each of its word into a file “initials.txt”. Data already present in the file
initials.txt must be preseved. Display suitable error message if the file opening/writing
operation fails.
Write a python program that prompts the user to enter a few details: fullname, age, job, country and salary which are going to be included in an html file.
In a python module, define two functions:
For each of the following, write an algorithm and draw a flow chart then write a MATLAB code in separate script:
1. Finding the area of a rectangle and show it as below: The Area of This rectangle = ?
2. Finding sum of the even numbers from 2 to 100,
3. Finding the volume of a cylinder and show it as: The volume of This cylinder = ?
4. Finding the maximum number among three numbers entered by the user.