Answered You can hire a professional tutor to get the answer.

QUESTION

Write a java program based on the design you created in Exercise 2a . Enter the program, saving it as Gifts2.Java, and then execute the program.

Write a java program based on the design you created in Exercise 2a . Enter the program, saving it as Gifts2.Java, and then execute the program.

2a.

//program comments//use the correct preprocessor directive for input/output//open the main function with the correct heading//declare 4 variables to read in the quantity, cost, and description, and a file variable for output//open the output file//prompt the user to enter quantity, cost and description separated by a blank//use cin to input quantity and cost//use the getline() function to input the description//write to your output file quantity, a blank, cost, a blank, description, and endl

Here is the code for you:#include <iostream>#include <stdio.h>#include <cstdlib>#include <cstring>using namespace std;//Write a c++ program a function that takes two...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question