7. Suppose that there are two variables: x and y. x stores “Beer” and y stores“Water.” How can you swap the values of the two variables to let x store“Water” and y store “Beer”?8. Suppose that there are three variables: Purchase, TaxRate, and Payment.Purchase stores the money value of the purchased merchandise, andTaxRate stores the state sales tax rate. Write an arithmetic operation to letPayment store the payment amount after tax.9. Write an if-then-elsestatement using structured English for the GPAscheme: Grade “A” = 4.0 points, grade “B” = 3.0 points, grade “C” = 2.0 points,grade “D” = 1.0 point, and grade “F” = 0 points.10. Write a loop statement using structured English to let the computer list 0.3,0.6, 0.9, 1.2, 1.5, …, 30.Chapter 2 Exercises1. Read the following C program and complete it by filling in the blanks:4 void main()6 ____________ i;7 double sales;Critical Thinking (250 word minimum and At least one APA formatted citation/reference): Explain two strengths and two weaknesses of C++. Include and give examples of how each strength and weakness could influence an IT environment.
Are you looking for a similar assignment? Order now for an Amazing Discount! Use Discount Code “Newclient” for a 15% Discount!
Programming Languages for MIS Concepts and Practice (I WILL PROVIDE EBOOK) .