Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
question:
Write a program (in C language) that prompts the user to enter a series of floating point numbers and calculate the average. You don't know how many numbers the user will input. The program will stop when the user enters a negative number. Display the following message at the end:
a) n numbers were entered
b) The average is avg
I attempted answering this question but my code isn't working,i have written my working please give me a correct solution to this.
here's my working:
#include <stdio.h>
main(void){
int i=1,n;
double avg,sum=0;
while (i>0){
printf("enter a value for in");
scanf("%lf",&i);
if (i<0){
break;
}
else{
sum=sum+i;
n=i;
i++;
printf("%d numbers were printedn",n);
avg=sum/n;
printf("the average is %.4lfn",avg);
return(0);
The following quote is taken from Phillip D. Parker (Associate General Counsel of the SEC), "Market Value Accounting-An Idea Whose Time Has Come?
Read What Are Business Metrics? and Measuring Communication Effectiveness Across Diverse Backgrounds and Missions. In your initial post
Discuss how business relationships and strategic partnerships have helped to increase the value of CamelBak's products and the business itself.
You have to develop a staffing model for your ideal fitness center to present to a group of executives.
Summarize your views on how a specific contemporary social problem is having an impact on your workplace or on workplaces known to you.
Compare the three sales force structures outlines in the Kotler textbook. Which is the most effective. Why?
Verify the monopolist equilibrium is (Q=20,P=60). What isthe perfectly competitive equilibrium? Calculate dead weight lossarising from the monopoly equilibrium.
Discussion Pitch Perfect- Then rank the following factors in order of importance when developing an elevator speech, and provide a rationale for your response.
Why is there a social cost to monopoly power? If the gains to producers from monopoly power could be redistributed to consumers, would the social cost of monopoly power be eliminated? Explain briefly.
Anyone could help me with a conclusion or summary for positive that immigrants have on economy and development of communities and society.
scope of practice for healthcareyou have just gotten a job at a hospital working in the reception area of the emergency
She tells you who she has been advised which she is going to be charged with a securities violation involving insider trading. Which of the subsequent is true regarding her situation?
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!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd