Separately outputs the shipping cost and the cost of painting. (Assume that the entire container including the top and bottom needs to be painted.) d. Prompts the user to input the paint cost per square foot. Prompts the user to input the shipping cost per liter. Prompts the user to input the dimensions (in feet) of the container (radius of the base and the height). Write a program that does the following: a. (For simplicity, you may assume that the container is filled to the top.) They also provide the option to paint the outside of the container for a reasonable amount. The shipping charges depend on the amount of the liquid in the container. The formulas to determine the body fat for female and male are as follows: Body fat formula for women: A1 = (body weight × 0.732) + 8.987 A2 = wrist measurement (at fullest point) / 3.140 A3 = waist measurement (at navel) × 0.157 A4 = hip measurement (at fullest point) × 0.249 A5 = forearm measurement (at fullest point) × 0.434 B = A1 + A2 – A3 – A4 + A5 Body fat = body weight – B Body fat percentage = body fat × 100 / body weight Body fat formula for men: A1 = (body weight × 1.082) + 94.42 A2 = wrist measurement × 4.15 B = A1 – A2 Body fat = body weight – B Body fat percentage = body fat × 100 / body weight Write a program to calculate the body fat of a person.Īmanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylinderical containers. One way to determine how healthy a person is by measuring the body fat of the person. Sample questions asked in the 8th edition of C++ Programming: You review the important features of C++ 14 Standard with timely discussions that ensure this edition equips you to succeed in your CS1 course and beyond. Malik's experience further strengthen your understanding of problem solving and program design in this new edition. Thoroughly updated end-of-chapter exercises, more than 20 extensive new programming exercises, and numerous new examples drawn from Dr. Malik's time-tested, student-centered methodology incorporates a strong focus on problem-solving with full-code examples that vividly demonstrate the hows and whys of applying programming concepts and utilizing C++ to work through a problem. Learn how to program with C++ using today's definitive choice for your first programming language experience - C++ PROGRAMMING: FROM PROBLEM ANALYSIS TO PROGRAM DESIGN, 8E.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |