Formula translation

Assignment Help Programming Languages
Reference no: EM131741

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 search the total number of illiterate women and men 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 needed 17 gallons. Cheryl wants a program that evaluates 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 code that can implement

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

Problem 4:  Write a c code that will evaluate the roots of a quadratic equation                 

Hint: d = sqrt (b2-4ac), and the roots are:  x1 = (-b + d)/2a   and x2 = (-b - d)/2a

Problem 5: Area of a trapezoid can be calculated by the subsequent formula:

A = (b1+b2) x h/2

where b1 and b2 are the parallel sides or the bases and h is length of height Write a C-language code to calculate area of a trapezoid using above method. Take required inputs from the user and display the area that your code calculates.

Reference no: EM131741

Questions Cloud

State the values of the coefficient of correlation : State the values of the coefficient of correlation and coefficient of determination correct to three decimal places
Write a bouncing ball video game : The balls bounces within the screen where the two horizontal walls are fixed
Confidence interval for the population mean : Take a confidence interval for the difference in the average of renting between the first andthird hotel.
Compute the expected value of perfect information : Suppose the probability of the worst-case scenario increases Compute the expected value of perfect information
Formula translation : Write a c code that will evaluate the roots of a quadratic equation
Perform operations on arrays : Perform operations on arrays execute tests and repetitions
Political relationships generate on organize crime activity : How political relationships generate on organize crime activity.
Define international and transnational crime : Define international and transnational crime and describe how they differ in nature?
Write a program to register students for a college : Students have names, addresses and courses. Implement the interface class RegisterStudent. RegisterStudent has one method, public boolean register, which returns the boolean value of true or false if the student is successfully registered for the ..

Reviews

Write a Review

Programming Languages Questions & Answers

  Unix systems administration

Unix Systems Administration

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Discussion: html/css

Discussion: HTML/CSS,  "JavaScript Placement"  Please respond to the following: Compare and contrast the process of adding JavaScript and a Cascading Style Sheet to a Website. Determine if they can be used simultaneously in a page. If so, explain wh..

  Top-down recursive descent parser

Write a hand-coded top-down recursive descent parser.

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Using the irvine32 library functions

Create 32 random points which have (x, y) co-ordinates

  Design a class-based solution to a problem

To design a class-based solution to a problem using multiple data structures.

  Write the constructor function makestk

Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk

  Program a maze-type game using assembly language

Project requires you to program a maze-type game using Assembly Language, it is not acceptable to use any other programming language for this project

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Basics of hypertext markup language

The basics of Hypertext Markup Language and World Wide Web.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd