Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

Create a student GPA average calculator. The program should

 

Customer Question

Create a student GPA average calculator. The program should prompt the user to enter up to 30 GPAs, which are stored in a single-dimension array. Each time he or she enters a GPA, the user should have the option to calculate the current GPA average or enter another GPA. Sample data for this program is shown below.

GPA: 3.5

GPA: 2.8

GPA: 3.0

GPA: 2.5

GPA: 4.0

GPA: 3.7

GPA Average: 3.25

Hint: Be careful to not calculate empty array elements into your student GPA average.

 

Optional Information:
OS: Windows Vista

Already Tried:
Must be in C programming not C++

Submitted: 1516 days and 21 hours ago.
Category: Programming
Value: $20
Status: CLOSED
Picture
Expert:  helpdesk replied 1516 days and 12 hours ago.

Hi,
Do You need your program to be done in c or C++ OR what programming language do you prefer?help_desk39853.345746875

Picture
Expert:  Hirash Riyal replied 1516 days and 6 hours ago.

Following is the Code you need
//code starts here

#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
int index=-1,k=0;
void main()
{

char inp[256]="   ";
double gpa[30];
double totalgpa,avegpa;
      clrscr();
printf("***** Welcome To GPA Calculator ***** \n");
while(inp[0]!='q')
{
printf("%s%d%s","Enter The Next GPA Value(",index+1,") or Enter q to stop \n"   );
gets(inp);
if(inp[0]=='q'|| index==29)
{
break;
}

gpa[++index]=atof(inp);
}
printf("calculating Average GPA...\n" ) ;

for( k=0;k<index+1;k++)
{
totalgpa+=gpa[k];

}
avegpa=totalgpa/(index+1);
printf("%s%f%s%f","Total GPA Is ",totalgpa," Average GPA Is ",avegpa);

getch();
}






//code ends here

Customer replied 1515 days and 17 hours ago.

GOOD JOB. THANK YOU

Customer replied 1515 days and 17 hours ago.

INTERESTED IN ANOTHER?

 

Build a C program (not C++) that uses a single-dimension array to store 10 numbers input by a user. After inputting the numbers, the user should see a menu with two options to sort and print the 10 numbers in ascending or descending order.

Picture
Expert:  Hirash Riyal replied 1515 days and 16 hours ago.

hi,
I Can,t Do It because Another Expert is Already Involved With that Question Hirash Riyal39854.1491868866

Accepted Answer

Picture
Expert:  helpdesk replied 1515 days and 16 hours ago.

Hi,
Here is your code
******************************************************************************************
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
unsigned int arr[10],i,j,index;
char input;
clrscr();
printf("\n\tEnter The Values into ARRAY :- ");
for(i=0;i<=9;i++)
{
printf("\n\nEnter Element no %u: ",i);
scanf("%u",&arr);
}
for (i = 1; i <10; ++i)
{
index = arr;
for (j = i; j > 0 && arr[j-1] > index; j--)
arr[j] = arr[j-1];

arr[j] = index;
}

printf("\n\n--press 1 if you want the Series sorted in ascending or 2 if you want the Series sorted in descending order--");
scanf("%c",&input) ;
switch(input)
{
case '1':
printf("Series in ascending order is:-") ;
for(i=0;i<=9;i++)
printf("\n\n\t S%u",arr);
break;

case '2':
printf("Series in descending order is:-");
for(j=9;j>=0;j--)
printf("\n\n\t S%u",arr[j]);
break;

}

return 1;

}
help_desk39854.4913950231

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 100.0 %
Accepts: 28
Answered: 2/10/2009

Experience: Years of experience on C,C++, java,visual basic

Ask this Expert a Question >
Customer replied 1515 days and 4 hours ago.

I sent payment for this answer. I am new to this site so I want to make sure I did this correctly. I hit accept, and I sent the payment. It now has changed from accept to add bonus. DID YOU GET PAYMENT FOR THIS SECOND CODE? If not, please let me know and I will do my best to correct it immediately. Thank you for your assistance.

Picture
Expert:  helpdesk replied 1515 days and 4 hours ago.

Hi,
I have received your payment.At justanswer we experts get 50% of what you pay.So i would be more than happy to get some bonus.
Bye

Customer replied 1514 days and 16 hours ago.

Mr. Riyal,

 

Do you have any experience with visual basic. If you do, I am prepared to pay more for a couple of projects using Microsoft VIsual Basic 2008 Express Edition.

Picture
Expert:  helpdesk replied 1514 days and 16 hours ago.

Hi,
It would be better if you could post the questions here first.it won't cost you.

Customer replied 1514 days and 16 hours ago.

DId that last reply cost me?

 

The question was:

Do you have any experience with visual basic. If you do, I am prepared to pay more for a couple of projects using Microsoft VIsual Basic 2008 Express Edition.

Picture
Expert:  helpdesk replied 1514 days and 16 hours ago.

hi,
Ofcourse not.You can post your questions here as a continuation.latter you can open it as a new question and pay the expert who works on your code.

 
Tweet

3 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
is there a python programming person available 3/28/2013
Write a menu-driven program that allows users do two options: Option 3/27/2013
1. Which one of the following control structures provides for 3/27/2013
JavaScript: Multiple Choice Questionnaire 3/25/2013
RA-211 3/24/2013
How do you create a searchable public Google drive folder in 3/24/2013
RA-211 3/24/2013
I am an entrepreneur with no current coding skills, but an 3/23/2013
I have base code in VBA that opens all excel files from a folder 3/23/2013
Program in C++ 3/23/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
223 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us
© 2003-2013 JustAnswer LLC