Questions: 1 680

Answers by our Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Given the lengths a,b,c of the sides of triangle, write a function based program to compute the area of the triangle.,The formula for computing the area is given by:

Area = √ s(s-a)(s-b)(s-c)

where s is the semiparameter of the triangle

s=(a+b+c)/2
1) Write a program to calculate the area of circles

2) Write a program to convert a distance in miles to kilometers. Given 1 Mile = 1.609 km
Write a program that declares a struct to store the data of a baseball player (player’s name, number of home runs, and number of hits). Declare an array of 10 components to store the data of 10 baseball players. Your program must contain a function to input data and a function to output data. Add functions to search the array to find the index of a specific player, and update the data of a player. (You may assume that input data is stored in a file.) Before the program terminates, give the user the option to save data in a file. Your program should be menu driven, giving the user various choices.
The history teacher at your school needs help in grading a True/False test. The students’ IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form: TFFTFFTTTTFFTFTFTFTT
Every other entry in the file is the student ID, followed by a blank, followed by the student’s responses. For example, the entry:
ABC54301 TFTFTFTT TFTFTFFTTFT
indicates that the student ID is ABC54301 and the answer to question 1 is True, the answer to question 2 is False, and so on. This student did not answer question 9. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, wrong answer gets one point deducted, no answer gets zero points. Write a program that processes the test data. The output should be the student’s ID, followed by the answers, followed by the test score, followed by the test grade. Assume the following grade scale: 90%–100%, A; 80%–89.99%, B; 70%–79.99%, C; 60%–69.99%, D; and 0%–59.99%, F. use dynamic arrays
Write a program that asks the user to enter a character, a string, an integer, and a float value using function overloading. The user should be prompted for each data item in a separate function with the name getData and a reference parameter of the type item being read. Display the data entered twice, using a different function but each time named displayData, that have different parameter lists.
The following is a sample run of the program.

Enter a character: A
Enter a word: sunny
Enter a whole number: 125
Enter a number with decimal point: 50.25

You entered the following data:
Letter: A
String: sunny
Integer: 125
Float: 50.25

Your data displayed again:
Integer: 125
Float: 50.25
Letter: A
String: sunny
c program that reads positive integer n & print the following pattern
**********
-*********
--********
---*******
----******
-----*****
------****
-------***
--------**
---------*
Write a program that allows the user to enter the last names of five candidates in a local election and the number of votes received by each candidate. The program should then output each candidate’s name, the number of votes received, and the percentage of the total votes received by the candidate. Your program should also output the winner of the election.
Write a c program that converts feet to inches and centimeters to meters. Thanks
Write a function, lastLargestIndex, that takes as parameters an int array and its size and returns the index of the last occurrence of the largest element in the array. Also, write a program to test your function.
Write an algorithm that inverse a line of text without inversing the word.
LATEST TUTORIALS
APPROVED BY CLIENTS