楼主: Lisrelchen
3883 8

Problem Solving with C++ 9th Edition [推广有奖]

  • 0关注
  • 62粉丝

VIP

已卖:4194份资源

院士

67%

还不是VIP/贵宾

-

TA的文库  其他...

Bayesian NewOccidental

Spatial Data Analysis

东西方数据挖掘

威望
0
论坛币
50288 个
通用积分
83.6306
学术水平
253 点
热心指数
300 点
信用等级
208 点
经验
41518 点
帖子
3256
精华
14
在线时间
766 小时
注册时间
2006-5-4
最后登录
2022-11-6

楼主
Lisrelchen 发表于 2015-5-31 07:15:53 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

Problem Solving with C++ (9th Edition)




Walter Savitch (Author)



You are purchasing a standalone product; MyProgrammingLab does not come packaged with this content. If you would like to purchase both the physical text and MyProgrammingLab  search for ISBN-10: 0133862216/ISBN-13: 9780133862218. That package includes ISBN-10: 0133591743/ISBN-13: 9780133591743  and ISBN-10: 0133834417 /ISBN-13: 9780133834413.


MyProgrammingLab is not a self-paced technology and should only be purchased when required by an instructor.

Problem Solving with C++ is intended for use in the C++ introductory programming course. Created for the beginner, it is also suitable for readers interested in learning the C++ programming language.

Problem Solving with C++ continues to be the most widely used textbook by students and instructors in the introduction to programming and C++ language course. Through each edition, hundreds and thousands of students have valued Walt Savitch’s approach to programming, which emphasizes active reading through the use of well-placed examples and self-test examples. Created for the beginner, this book focuses on cultivating strong problem-solving and programming techniques while introducing students to the C++ programming language.


MyProgrammingLab for Problem Solving with C++ is a total learning package. MyProgrammingLab is an online homework, tutorial, and assessment program that truly engages students in learning. It helps students better prepare for class, quizzes, and exams—resulting in better performance in the course—and provides educators a dynamic set of tools for gauging individual and class progress.


Teaching and Learning Experience

This program presents a better teaching and learning experience–for you and your students.

  • Personalized Learning with MyProgrammingLab: Through the power of practice and immediate personalized feedback, MyProgrammingLab helps students fully grasp the logic, semantics, and syntax of programming.
  • Keep Your Course Current: This edition features a new introduction to C++11 in the context of C++98.
  • Flexible Coverage that Fits your Course: Instructors can easily adapt the order in which chapters and sections are covered in their course without losing continuity.
  • Clear and Friendly Presentation: Savitch’s clear, concise style is a hallmark feature of the text, receiving praise from students and instructors alike.
  • Tried-and-true Pedagogy: A suite of pedagogical tools, enhanced by understandable language and code, has been used by hundreds of thousands of students and instructors.
Product Details
  • Paperback: 1088 pages
  • Publisher: Pearson; 9 edition (Feb. 11 2014)
  • Language: English
  • ISBN-10: 0133591743
  • ISBN-13: 978-0133591743
  • Product Dimensions: 18.5 x 4.1 x 23.1 cm
  • Shipping Weight: 1.4 Kg
  • http://www.pearsonhighered.com/bookseller/product/Problem-Solving-with-C-9E/9780133591743.page

https://bbs.pinggu.org/thread-3737100-1-1.html




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:problem Solving Edition dition editio technology includes physical purchase content

本帖被以下文库推荐

沙发
Lisrelchen 发表于 2015-5-31 07:22:52
  1. 1 #include <iostream>
  2. 2 using namespace std;
  3. 3 int main( )
  4. 4 {
  5. 5 int number_of_bars;
  6. 6 double one_weight, total_weight;
  7. 7
  8. 8 cout << "Enter the number of candy bars in a package\n";
  9. 9 cout << "and the weight in ounces of one candy bar.\n";
  10. 10 cout << "Then press return.\n";
  11. 11 cin >> number_of_bars;
  12. 12 cin >> one_weight;
  13. 13
  14. 14 total_weight = one_weight * number_of_bars;
  15. 15
  16. 16 cout << number_of_bars << " candy bars\n";
  17. 17 cout << one_weight << " ounces each\n";
  18. 18 cout << "Total weight is " << total_weight << " ounces.\n";
  19. 19
  20. 20 cout << "Try another brand.\n";
  21. 21 cout << "Enter the number of candy bars in a package\n";
  22. 22 cout << "and the weight in ounces of one candy bar.\n";
  23. 23 cout << "Then press return.\n";
  24. 24 cin >> number_of_bars;
  25. 25 cin >> one_weight;
  26. 26
  27. 27 total_weight = one_weight * number_of_bars;
  28. 28
  29. 29 cout << number_of_bars << " candy bars\n";
  30. 30 cout << one_weight << " ounces each\n";
  31. 31 cout << "Total weight is " << total_weight << " ounces.\n";
  32. 32
  33. 33 cout << "Perhaps an apple would be healthier.\n";
  34. 34
  35. 35 return 0;
  36. 36 }
复制代码

藤椅
Lisrelchen 发表于 2015-5-31 07:26:57
  1. Display 2.8 An if-else Statement (part 1 of 2)
  2. 1 #include <iostream>
  3. 2 using namespace std;
  4. 3 int main( )
  5. 4 {
  6. 5 int hours;
  7. 6 double gross_pay, rate;
  8. 7 cout << "Enter the hourly rate of pay: $";
  9. 8 cin >> rate;
  10. 9 cout << "Enter the number of hours worked,\n"
  11. 10 << "rounded to a whole number of hours: ";
  12. 11 cin >> hours;
  13. 12 if (hours > 40)
  14. 13 gross_pay = rate * 40 + 1.5 * rate * (hours - 40);
  15. 14 else
  16. 15 gross_pay = rate * hours;
  17. 16 cout.setf(ios::fixed);
  18. 17 cout.setf(ios::showpoint);
  19. 18 cout.precision(2);
  20. 19 cout << "Hours = “ << hours << endl;
  21. 20 cout << "Hourly pay rate = $" << rate << endl;
  22. 21 cout << "Gross pay = $" << gross_pay << endl;
  23. 22 return 0;
  24. 23 }
复制代码

板凳
Lisrelchen 发表于 2015-5-31 07:29:47
  1. Display 2.16 Charge Card Program
  2. 1 #include <iostream>
  3. 2 using namespace std;
  4. 3 int main( )
  5. 4 {
  6. 5 double balance = 50.00;
  7. 6 int count = 0;
  8. 7 cout << "This program tells you how long it takes\n"
  9. 8 << "to accumulate a debt of $100, starting with\n"
  10. 9 << "an initial balance of $50 owed.\n"
  11. 10 << "The interest rate is 2% per month.\n";
  12. 11 while (balance < 100.00)
  13. 12 {
  14. 13 balance = balance + 0.02 * balance;
  15. 14 count++;
  16. 15 }
  17. 16 cout << "After " << count << " months,\n";
  18. 17 cout.setf(ios::fixed);
  19. 18 cout.setf(ios::showpoint);
  20. 19 cout.precision(2);
  21. 20 cout << "your balance due will be $" << balance << endl;
  22. 21 return 0;
  23. 22 }
  24. 23
复制代码

报纸
Lisrelchen 发表于 2015-5-31 07:30:34
  1. Display 2.17 Comments and Named Constants
  2. 1 //File Name: health.cpp (Your system may require some suffix other than cpp.)
  3. 2 //Author: Your Name Goes Here.
  4. 3 //Email Address: you@yourmachine.bla.bla
  5. 4 //Assignment Number: 2
  6. 5 //Description: Program to determine if the user is ill.
  7. 6 //Last Changed: September 23, 2014
  8. 7
  9. 8 #include <iostream>
  10. 9 using namespace std;
  11. 10 int main( )
  12. 11 {
  13. 12 const double NORMAL = 98.6; //degrees Fahrenheit
  14. 13 double temperature;
  15. 14
  16. 15 cout << "Enter your temperature: ";
  17. 16 cin >> temperature;
  18. 17
  19. 18 if (temperature > NORMAL)
  20. 19 {
  21. 20 cout << "You have a fever.\n";
  22. 21 cout << "Drink lots of liquids and get to bed.\n";
  23. 22 }
  24. 23 else
  25. 24 {
  26. 25 cout << "You don't have a fever.\n";
  27. 26 cout << "Go study.\n";
  28. 27 }
  29. 28
  30. 29 return 0;
  31. 30 }
复制代码

地板
Lisrelchen 发表于 2015-5-31 07:32:20
  1. Display 3.4 The Importance of Braces
  2. 1 //Illustrates the importance of using braces in if-else statements.
  3. 2 #include <iostream>
  4. 3 using namespace std;
  5. 4 int main( )
  6. 5 {
  7. 6 double fuel_gauge_reading;
  8. 7
  9. 8 cout << "Enter fuel gauge reading: ";
  10. 9 cin >> fuel_gauge_reading;
  11. 10
  12. 11 cout << "First with braces:\n";
  13. 12 if (fuel_gauge_reading < 0.75)
  14. 13 {
  15. 14 if (fuel_gauge_reading < 0.25)
  16. 15 cout << "Fuel very low. Caution!\n";
  17. 16 }
  18. 17 else
  19. 18 {
  20. 19 cout << "Fuel over 3/4. Don't stop now!\n";
  21. 20 }
  22. 21
  23. 22 cout << "Now without braces:\n";
  24. 23 if (fuel_gauge_reading < 0.75)
  25. 24 if (fuel_gauge_reading < 0.25)
  26. 25 cout << "Fuel very low. Caution!\n";
  27. 26 else
  28. 27 cout << "Fuel over 3/4. Don't stop now!\n";
  29. 28
  30. 29 return 0;
  31. 30 }
复制代码

7
Lisrelchen 发表于 2015-5-31 07:35:28
  1. Display 3.5 Multiway if-else Statement
  2. 1 //Program to compute state income tax.
  3. 2 #include <iostream>
  4. 3 using namespace std;
  5. 4
  6. 5 //This program outputs the amount of state income tax due computed
  7. 6 //as follows: no tax on income up to $15,000; 5% on income between
  8. 7 //$15,001 and $25,000; 10% on income over $25,000.
  9. 8
  10. 9 int main( )
  11. 10 {
  12. 11 int net_income;
  13. 12 double tax_bill;
  14. 13 double five_percent_tax, ten_percent_tax;
  15. 14
  16. 15
  17. 16 cout << "Enter net income (rounded to whole dollars) $";
  18. 17 cin >> net_income;
  19. 18
  20. 19 if (net_income <= 15000)
  21. 20 tax_bill = 0;
  22. 21 else if ((net_income > 15000) && (net_income <= 25000))
  23. 22 //5% of amount over $15,000
  24. 23 tax_bill = (0.05 * (net_income - 15000));
  25. 24 else //net_income > $25,000
  26. 25 {
  27. 26 //five_percent_tax = 5% of income from $15,000 to $25,000.
  28. 27 five_percent_tax = 0.05 * 10000;
  29. 28 //ten_percent_tax = 10% of income over $25,000.
  30. 29 ten_percent_tax = 0.10 * (net_income - 25000);
  31. 30 tax_bill = (five_percent_tax + ten_percent_tax);
  32. 31 }
  33. 32
  34. 33 cout.setf(ios::fixed);
  35. 34 cout.setf(ios::showpoint);
  36. 35 cout.precision(2);
  37. 36 cout << "Net income = $" << net_income << endl
  38. 37 << "Tax bill = $" << tax_bill << endl;
  39. 38
  40. 39 return 0;
  41. 40 }
复制代码

8
Lisrelchen 发表于 2015-5-31 07:37:45
  1. Display 3.6 A switch Statement (part 1 of 2)
  2. 1 //Program to illustrate the switch statement.
  3. 2 #include <iostream>
  4. 3 using namespace std;
  5. 4 int main( )
  6. 5 {
  7. 6 char grade;
  8. 7 cout << "Enter your midterm grade and press Return: ";
  9. 8 cin >> grade;
  10. 9 switch (grade)
  11. 10 {
  12. 11 case 'A':
  13. 12 cout << "Excellent. "
  14. 13 << "You need not take the final.\n";
  15. 14 break;
  16. 15 case 'B':
  17. 16 cout << "Very good. ";
  18. 17 grade = 'A';
  19. 18 cout << "Your midterm grade is now "
  20. 19 << grade << endl;
  21. 20 break;
  22. 21 case 'C':
  23. 22 cout << "Passing.\n";
  24. 23 break;
  25. 24 case 'D':
  26. 25 case 'F':
  27. 26 cout << "Not good. "
  28. 27 << "Go study.\n";
  29. 28 break;
  30. 29 default:
  31. 30 cout << "That is not a possible grade.\n";
  32. 31 }
  33. 32 cout << "End of program.\n";
  34. 33 return 0;
  35. 34 }
复制代码

9
wwqqer 在职认证  发表于 2015-5-31 07:55:02
已有 1 人评分论坛币 收起 理由
Nicolle + 100 精彩帖子

总评分: 论坛币 + 100   查看全部评分

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-2 08:30