Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what would i write to have the program do this? (C++) Assignment #3 Description Write the necessary program in C++ that does the following: 1.

what would i write to have the program do this? (C++)
image text in transcribed
image text in transcribed
Assignment \#3 Description Write the necessary program in C++ that does the following: 1. Asks the user to input his/her name by using a prompt "Enter your first name: " 2. Reads the user's input from the keyboard and Stores it in the variable called "firstName" 3. Displays the greeting "Good Morning" on the screen addressing him/her with the name e.g., if the user entered "John" as the input on the keyboard, then the output should be: Good Morning John n.cpp >f main \#include using namespace std; int main() \{ //create spaces float m; float x1; float x2; float y1; float yz; I/get the input cout "enter the value for 1 : "; /l prompt cin x1; cout enter the value for x2:"; // prompt cin 2; cout "Enter the values for y1: : ";/prompt cin y1; cout "enter the value of y2: "; //prompt cin y2; m=(y2y1)/(x2x1); cout "The value of m is " m; \}

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

Students also viewed these Databases questions

Question

Describe a strategic alliance.

Answered: 1 week ago

Question

Choose an appropriate organizational pattern for your speech

Answered: 1 week ago

Question

Writing a Strong Conclusion

Answered: 1 week ago