Preview

Practice Assignment

Good Essays
Open Document
Open Document
682 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Practice Assignment
Assignment – Formula Translation
Total Marks: 100

Problem 1:
In a town, the percentage of men is 52.The percentage of total literacy is 48.If total percentage of literate men is 35 of the total population, write a program to find the total number of illiterate men and women if the population of town is 80,000.

Problem 2: When Cheryl Harrison began her trip from Newyork to Wyoming; she filled her car’s tank with gas and reset its trip meter to zero. After traveling 324 miles, Cheryl stopped at a gas station to refuel; the gas tank required 17 gallons. Cheryl wants a program that calculates and displays her car’s gas mileage at any time during the trip. The gas mileage is the number of miles her car was driven per gallon of gas. Write a C code that can implement

Problem 3: The manager of the Lakeview Hotel wants a program that calculates and displays a guest's total bill. Each guest pays a room charge that is based on a per-night rate. For example if the per night rate is $100 and the guest stays two nights, the room charge is $200.Customer also may incur a one-time room service charge and a one-time telephone charge.

Problem 4: Write a c code that will calculate the roots of a quadratic equation a2+ bx+c=0
Hint: d = sqrt (b2-4ac), and the roots are: x1 = (–b + d)/2a and x2 = (–b – d)/2a (use sqrt function from cmath.h ) Problem 5: Hero’s Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | |
Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.

Problem 6:
Area of a trapezoid can be calculated by the following formula:
A=(b1+b2)×h2
where b1 and b2 are the parallel sides or the bases and h is length of height
Write a

You May Also Find These Documents Helpful

  • Good Essays

    MTH240 week 2

    • 460 Words
    • 2 Pages

    In week one, we learned a simple yet extremely useful math concept, the Distance Formula. This formula uses the Pythagorean Theorem to determine the distance between two points on the rectangular coordinate system. Variations of the Pythagorean Theorem such as the Distance Formula can be used in building things or making plans to build something.…

    • 460 Words
    • 2 Pages
    Good Essays
  • Good Essays

    MAT117 Week 7 DQ 2

    • 968 Words
    • 4 Pages

    The first steps in solving a quadratic equation is to make sure the equation is in standard for (ax2+ bx +c = 0). If it is, then you can proceed in identifying a, b, and c in the equation. To Once those values have been identified; substitute them into the quadratic formula paying special attention to parentheses and negative numbers as it is easy to make simple errors. Then you can go ahead and simplify the expression to determine the values for “x”.…

    • 968 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Draw, construct, and describe geometrical figures and describe the relationships between them. Solve real-life and mathematical problems involving angle measure, area, surface area, and volume.…

    • 962 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    03.03 Linear Functions

    • 277 Words
    • 2 Pages

    You may graph your equation using graphic technology that can be found in the Course Information area.…

    • 277 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unix and Equations

    • 1599 Words
    • 7 Pages

    Now make both equations equal each other and solve for c: 10 + c = 10 - c 2c = 0 c = 0…

    • 1599 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    multiplying polynomials

    • 286 Words
    • 2 Pages

    As with the problem shown earlier, this equation is solved for A. To solve for b, you should start by multiplying both sides by 2 to get rid of the fraction. Now to have b by itself, divide by sides by h.…

    • 286 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    LarCalc10 Ch03 Sec7

    • 544 Words
    • 6 Pages

    To do this, you can solve the equation x2 + 4xh = 108 for h…

    • 544 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    4x^2 – 8x + 4 = 52 + 4 (step c, add to both sides the square of original coefficient)…

    • 635 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Practice Problem

    • 4491 Words
    • 18 Pages

    13-1. Risk-averse corporate managers are not unwilling to take risks, but will require a higher return from risky investments. There must be a premium or additional compensation for risk taking. 13-2. Risk may be defined in terms of the variability of outcomes from a given investment. The greater the variability, the greater the risk. Risk may be measured in terms of the coefficient of variation, in which we divide the standard deviation (or measure of dispersion) by the mean. We also may measure risk in terms of beta, in which we determine the volatility of returns on an individual stock relative to a stock market index. 13-3. The standard deviation is an absolute measure of dispersion, while the coefficient of variation is a relative measure that allows us to relate the standard deviation to the mean. The coefficient of variation is a better measure of dispersion when we wish to consider the relative size of the standard deviation or compare two or more investments of different size. 13-4. Risk may be introduced into the capital budgeting process by requiring higher returns for risky investments. One method of achieving this is to use higher discount rates for riskier investments. This risk-adjusted discount rate approach specifies different discount rates for different risk categories as measured by the coefficient of variation or some other factor. Other methods, such as the certainty equivalent approach, may also be used. 13-5. Referring to Table 13-3, the following order would be correct: • • • • • • repair old machinery (c) new equipment (a) addition to normal product line (f) new product in related market (e) completely new market (b) new product in foreign market (d)…

    • 4491 Words
    • 18 Pages
    Better Essays
  • Good Essays

    Assignment

    • 1530 Words
    • 7 Pages

    Q.1. In reference to the Wilkinson Sword case study, the group was facing major operational problems. How did the new CFO go about firstly of trying to develop systems for the envisaged change and secondly develop a change management strategy, to involve all the stakeholders in the planning for change?…

    • 1530 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    assignment

    • 3878 Words
    • 16 Pages

    Segmentation of a market enables refinement of a company’s strategies and goals by identifying the most promising…

    • 3878 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    ASSIGNMENT

    • 749 Words
    • 3 Pages

    In the 1860s Henri Nestlé, a pharmacist, developed a food for babies who were unable to breastfeed. His first success was a premature infant who could not tolerate his mother's milk or any of the usual substitutes. People quickly recognized the value of the new product, after Nestlé's new formula saved the child's life, and soon, Farine Lactée Henri Nestlé was being sold in much of Europe. In 1905 Nestlé merged with the Anglo-Swiss Condensed Milk Company. By the early 1900s, the company was operating factories in the United States, Britain, Germany and Spain. World War I created new demand for dairy products in the form of government contracts. By the end of the war, Nestlé's production had more than doubled.The 1920s saw Nestlé's first expansion into new products, with chocolate the Company's second most important activity. The end of World War II was the beginning of a dynamic phase for Nestlé. Growth accelerated and companies were acquired. In 1947 came the merger with Maggi seasonings and soups. Crosse & Blackwell followed in 1960, as did Findus (1963), Libby's (1971) and Stouffer's (1973). Diversification came with a shareholding in L'Oréal in 1974.Nestlé divested a number of businesses1980/1984. In 1984, Nestlé's improved bottom line allowed the Company to launch a new round of acquisitions, the most important being American food giant Carnation. Since 1996 there has been other acquisitions including San Pellegrino (1997), Spillers Petfoods (1998) and Ralston Purina (2002). There were two major acquisitions in North America, both in 2002: in July, Nestlé merged its U.S. ice cream business into Dreyer's and in August, a US$ 2.6bn acquisition was announced of Chef America, Inc. In 2003 Mövenpick Ice Cream was acquired, enhancing Nestlé's position as one of the world market leaders in this product category. In 2006, Jenny Craig and Uncle Toby's were added to the Nestlé…

    • 749 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Form 4 Add Math Chapter 2

    • 256 Words
    • 2 Pages

    .b2-4ac≥0 {It didn’t mention that the 2 roots are equal roots or different roots, so it can be >0/=0 that becomes ≥0}…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Assignment

    • 454 Words
    • 3 Pages

    At Du Pont Co.’s (www.dupont.com) $4 billion performance coating grope, the critical issue was content management. “We have a very large number of documents for marketing: brochures, press releases, warranty information on products and general support content for our distributors and car repair body shops”, explains Catherine March and, the groups e- business strategy manager. “Our salesmen were driving around with 23 kg of obsolete literature in their trunk.”…

    • 454 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Write a program to add of number in c programming. The output of the program should be like the figure below:…

    • 295 Words
    • 2 Pages
    Satisfactory Essays