2023 1 A program declares an int variable named evenNum and initializes it to 2 Write the C code to display | Assignment Collections
Computer Science 2023 PROGRAMMING
2023 1 A program declares an int variable named evenNum and initializes it to 2 Write the C code to display | Assignment Collections
1- A program declares an int variable named evenNum and initializes it to 2. Write the C++ code to display the even integers 2, 4, 6, 8, and 10 on separate lines on the computer screen. Use the do-while statement.
———————————————————-
2- Create a program that allows the user to enter an unknown number of sales amounts for each of three car dealerships: Dealership 1, Dealership 2, and Dealership 3. The program should calculate the total sales. Display the total sales with a dollar sign and two decimal places.
a. Create an IPO chart for the problem, and then desk-check the algorithm using 23000 and 15000 as the sales amounts for Dealership 1; 12000, 16000, 34000, and 10000 for Dealership 2; and 64000, 12000, and 70000 for Dealership 3.
b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 8-16. Then code the algorithm into a program.
c. Desk-check the program using the same data used to desk-check the algorithm.
d. If necessary, create a new project named Intermediate19 Project, and save it in the Cpp8Chap08 folder. Enter your C++ instructions into a source file named Intermediate19.cpp. Also, enter appropriate comments and any additional instructions required by the compiler.
e. Save and then run the program. Test the program using the same data used to desk-check the program.
Figure 8-16 ATTACHED
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.