0
   

elp Please? Computer Programming Homework!!!?

 
 
Reply Sat 28 Sep, 2013 10:55 pm
Hello i really need help I'm really so confused, and I don't really know who to talk to so I thought I'd ask for help online. This is my first time doing something like this... now that I've really thought about, I wouldn't even know where to start! Can you please help me


Objective
To create an interactive C program that uses the standard input/output functions
printf() and scanf() found in <stdio.h>. You will be also using conditional
logic in the form of if/else statements to display messages based on user input.

General Algorithm
1. First, use the printf() function to print a friendly introduction, describing
to the user what your program will do.

2. Next, you will need to prompt the user for the pH value to be entered, also
using the printf() function. Make sure the user is able to enter a floating
point (double) value (e.g. 3.6).

3. Use if/else statements to print the appropriate wording for the pH value,
based on the value entered by the user in the previous step.


Details
Create a program that asks the user for a pH value, which has to be entered in
floating point form; that is, your program reads a value of type double.

Display the word(s) that represent the entered pH value.

pH values
less than and including 2 are "Very Acidic"
greater than 2, but less than 7 are "Acid"
exactly 7 are "Neutral"
greater than 7, but less than 12 are "Alkaline"
greater than and including 12 are "Very Alkaline"
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 710 • Replies: 2
No top replies

 
BillRM
 
  1  
Reply Sat 28 Sep, 2013 11:54 pm
@karma2you,
Seem fairly straight forward so what are your problems.

Oh one note I would suggest doing input error checking so any number outside the range of 0 to 14 produce an error statement and a re-prompt.
0 Replies
 
contrex
 
  1  
Reply Sun 29 Sep, 2013 02:24 am
@karma2you,
karma2you wrote:
now that I've really thought about, I wouldn't even know where to start!


Why are you doing this course?
0 Replies
 
 

Related Topics

present value calculation - Question by magikarppp
Bays Theorem - Question by klazman
Amount of Time - Question by Randy Dandy
Stop multi-tasking. - Question by suzis114
The movie Contagion questions. - Question by acacia410
The fall of communism - Question by jtee25
[ESSAY] Indian Partition of 1947 - Question by skiiful
 
  1. Forums
  2. » elp Please? Computer Programming Homework!!!?
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 06/23/2025 at 02:47:27