Creating a c language code

Assignment Help Operating System
Reference no: EM1379573

Prepare a c code or Modify code to ask user to input five gpas. then the program computes the average of the gpa and prints it to screen. i.e(The average of all Gpas you entered is 3.87). this code should also check gor negative inputes ie( if user inputs -2.6 or a gpa hight or lower than 1 to 4.0, it print invalisd gpa to the screen.

#include <stdio.h>

main ()

/* This C code outputs the equivalent GPA letter grade of a student */
{
float x;

printf("Please enter a GPA value: n");
scanf("%f", &x);

/* An if else statement that sonditions the out of grades*/

if (x < 1.0)
{
Printf("A gpa of %.0f is a grade F: n", x);
}
else if (x >= 1.0 || x < 1.7)
{
Printf("A gpa of %.0f is a grade D: n", x);
}
else if (x >= 1.7 || x < 2.7)
{
printf("A gpa of %.0f is a grade C: n", x);
}
else if (x >= 2.7 || x < 3.5)
{
printf("A gpa of %.0f is a grade B: n", x);
}
else if (x >= 3.5)
{
printf("A gpa of %.0f is a grade A: n", x);
}
return (1);
}

 

Reference no: EM1379573

Questions Cloud

Provide security suggestions for laptop users : Andersen & Sons is a huge marketing company with four offices in the Chicago area. Each office has Windows Server 2003, and all servers are in a single domain.
Solving operating system problem : Assume a time sharing operating system allocated time slices of twenty milliseconds and the machine executed an average of 5000 instructions per microsecond.
Program to compute the signature : Assume Fred sees your RSA signaure on m1 and m2, (i.e., he sees (md1 mod n) and (md2 mod n).
Trends in information management : Assume you have been asked to join with many other IT professionals for an hour on the local cable channel, discussing some of the current trends in information management,
Creating a c language code : Prepare a c code or Modify code to ask user to input five gpas. then the program computes the average of the gpa and prints it to screen.
Describe function of operating system : Determine the functions that an operating system provides to make a computer run. Describe why that is an important feature and what an OS requires to be aware of to provide that service.
Requirements model for aims project : Need help in finalizing the requirements model for Airlines Information Management System (AIMS) project. The requirements model require to include use case diagrams for the entire AIM system.
Steps add to the check list : According to your personal experience, what steps would you add to the check list and determine what steps would you leave out?
Designing and coding : Prepare a database with a table called tblNames and tbl Login. The tbl Names table should have the following columns.

Reviews

Write a Review

Operating System Questions & Answers

  Ethernet or token ring protocol

Saguaro Federal has mainframes for all of its banks and businesses. Should the corporations use the Ethernet or Token Ring protocol? Describe your choice. Discuss why is this choice appropriate?

  Operating system interfaces questions

Select one of the programs that comes with Vista in which you think your classmates would be interested. Determine what does the program do?

  Explain the client-server architecture

What are the three different categories of command, support your answer by giving three examples. Give three good reasons, with valid explanation, to justify why partitioning hard disk provides a variety of advantages. Explain the client/server..

  Benefits and drawbacks of networked computers

Discuss the benefits of networked computers? What are the drawbacks? Describe similar characteristics between the internet and a group of networked computers.

  Data abstraction for health it applications

Choose one database design model and discuss the benefits that model would bring to health information technology applications.

  Designing and coding

Prepare a database with a table called tblNames and tbl Login. The tbl Names table should have the following columns.

  Logical security and physical security

Discuss and explain real world examples from current events that decrease within your assigned category with your assigned group?

  Describe function of operating system

Determine the functions that an operating system provides to make a computer run. Describe why that is an important feature and what an OS requires to be aware of to provide that service.

  Explaining first-in-first-out scheduling

Qqueue for service (if the server process is busy servicing another request). Requests in queue are served according to the scheduling policy in use: First-In-First-Out (FIFO) scheduling.

  Handling the situation as a system administrator team leader

While working with the System Administration group, they tell you that a huge part of the administrator's duties focus on troubleshooting troubles within the network.

  Question about operating system interfaces

The Internet can be used for several reasons, including research and education, and information can be  achieved  from many types of Web sites.

  Internal application server for application systems

Classic Catalog Corporation runs a small but rapidly increasing catalog sales business. It outsourced its Web operations to a local ISP for many years but as Web have become a larger portion of its business,

Free Assignment Quote

Assured A++ Grade

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!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd