Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

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, prepare a program to find out 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 needed 17 gallons. Cheryl wants a program that computes 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. prepare a C code which can implement. 
 
problem 3: The manager of the Lakeview Hotel wants a program that computes and displays a guest's total bill. Each guest pays a room charge which 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 as well might incur a one-time room service charge and a one-time telephone charge.
 
problem 4: prepare a c code which will compute the roots of a quadratic equation a2 + bx + c = 0

problem 5: Hero’s Formula is A method for computing 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:

A = √p(p -a)(p -b)(p -c)

where, P = (a + b + c)/2

prepare a C-language code to compute area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program computes.

problem 6: Area of a trapezoid can be computed by the gven formula:
                
 A = (b1 + b2) x h/2

where b1 and b2 are the parallel sides or the bases and h is length of height.

prepare a C-language code to compute area of a trapezoid using above method. Take required inputs from the user and display the area which your code computes.

problem 7: prepare a C code which can compute volume of the 3D objects that is, box, prism, cylinder and sphere. Take necessary inputs from the user and display the outcomes.

Volume of a box =  l x w x h                           
l = length, w = width, h = height
                   
Volume of sphere = 4/3 πr3

r = radius of sphere
                             
problem 8: prepare a C code to evaluate the following series up to three significant digits:

sin(x) = x − (x3/3!) + (x5/5!) − (x7/7!) . . .
 
problem 9:  prepare a C function

a) To compute the distance between two points A and B where each point has two values x and y that is, A(x1, y1), B(x2, y2).
distance d = √(x2 - x1)2 + (y2 -y1)2

b) Modify the code in part a) and compute the distance between 3 points. You have to compute the distance between A and B, B and C, and finally between A and C.

Now consider that such three points are forming a triangle. Develop a logic that can lead to compute the area of this triangle. Implement your logic in C language. Take essential inputs and display the results.

problem 10: For the given set of sample data, find out the standard deviation and the mean.

X = -6, -12, 8, 13, 11, 6, 7, 2, -6, -9, -10, 11, 10, 9, 2

2232_standard deviation.jpg

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M92038
  • Price:- $70

Guranteed 36 Hours Delivery, In Price:- $70

Have any Question? 


Related Questions in C/C++

Modules in c are called functions c programs are typically

Modules in C are called functions. C programs are typically written by combining user created functions as well as "pre-packaged" functions found in the C Standard Library. For instance, printf() is a function that is fo ...

Assignmentwhen writing c programs include comments in your

Assignment When writing C++ programs include comments in your code, make the program readable by indenting, use meaningful variable and function names, and produce meaningful output. This assignment will be to write a te ...

Assignmentgoals developing problem-solving skills declaring

Assignment Goals: Developing problem-solving skills, declaring variables, multi-way branches, data validation. Problem: Complete Programming Challenge 4.19 in your text book. Do not accept values larger than 10 meters or ...

Assignmentinstructionsthis assignment is to implement your

Assignment Instructions This assignment is to implement your own mini-grocery store in C++. Suppose you have the following Food hierarchy: FOOD FRUIT APPLE BANANA GRAPE DAIRY MILK YOGURT CHEESE (your choice) (three items ...

Assignmentthis is the programthis program will use 2

Assignment This is the program: This program will use 2 different data structures to perform the same tasks; a vector and a dynamically sized array Write a complete C++ program that will: Declare a vector of integers wit ...

Computer applications divisionassignment c programmingstl

COMPUTER APPLICATIONS DIVISION Assignment: C++ PROGRAMMING STL Vector For this assignment, you will be starting with an example program that demonstrates the use of a STL vector. In addition to this, you may need to look ...

1 write a c program that allows the user to create a test

1. Write a C++ program that allows the user to create a test bank of questions 2. The program should first ask the user how many questions he or she wishes to create. 3- The user should now be prompted for all informatio ...

A compiler that translates a high-level language into

A compiler that translates a high-level language into another high-level language is called a source-to-source translator. What advantages are there to using C as a target language for a compiler?

Assignmentwhen writing c programs include comments in your

Assignment When writing C++ programs include comments in your code, make the program readable by indenting, use meaningful variable and function names, and produce meaningful output. This assignment will be to write a bm ...

The second portion instruction shown below which is the

The second portion (instruction shown below) which is the actual C++ program is needed by this Saturday. Write a C++ program that is menu-driven that allows for the following menu choices:Load an exam: Loading an exam sh ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen