Question: antnesis square brackets angle brackets curly brackets or braces. Write short statements for each of the following: (Be to the point, you do not need
antnesis square brackets angle brackets curly brackets or braces. Write short statements for each of the following: (Be to the point, you do not need to write the entire code). (4 x 5 = 20 points) a) Declare and initialize a variable (choose your own variable name) to store your favorite flower's name. String i// rose b) Given an input file named: xydata.txt Write a suitable statement to open this file in C++. I c) Given four variables (all floats) a, b, c, d Write a statement that will compute the average of the four variables and store in the variable average. d) Given the following mathematical expression for payment: PR payment 1-(1+R) Where P, R, N are inputs, and assumed they are declared and their values are given. Write this formula in C++ suitably. e) Declare a string variable textbook to store the name of any text book. Then write an O DELL F5 F6 F7 F8 F10 F11 F12 F9 $ % &
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
