hello every one

I tried to solve these functions in C++ but I faced some difficulties
So is it possible for any one to help me to solve the functions?
please try to help me as you can before tomorrow..

Download the file from here

Posting your assignment will produce nothing...Please post the code that you tried and please indicate where your having problems..

sorry for this mistake
here
I think the mistake in square root function
also is it necessaryto write if statement?

this is my solution

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    double AB, AC, c, BC, B, cos ;
    cout<<"Enter the angle =";
    cin>>B;
    cout<<"AB=";
    cin>>AB;
    cout<<"BC=";
    cin>>BC;
    AC= sqrt(AB*AB+BC*BC -2*AB*BC* cos *B);
    cout<<"AC="<<AC;
    return 0;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.