- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Here is what I have so far. I understand the middle portion of it. I'm just having a hard time understanding which variables to stick in the voids. [CODE]#include <iostream> #include <iomanip> using namespace std; //function prototypes void getFahrenheit(); void calcCelsius(); void displayCelsius(); int main() { //declare variables int fahrenheit … |
|
I need to write a program that uses P = (nRT)/V P = pressure V = volume n = number of moles R= universal gas constant (8.31 j/mol K) T = absolute temperatre All variables must be local, no global variables. Inputs to the program include kelving temp, initial and … |
|
I have most of the program written, but I'm stuck on the 2 dimensional array. Here is the code I have so far: [CODE]#include <iostream> using namespace std; //function prototype int calcTotal(); int main() { //declare variable and array int total = 0; int sales[6][2] = {{12000, 10000}, {45000, 56000}, … |
|
[CODE]#include <iostream> #include <iomanip> #include <cmath> using namespace std; //function prototype double calcPayment (double, double, int); int main() { //declare variables double carPrice = 0.0; double rebate = 0.0; double creditRate = 0.0; double dealerRate = 0.0; int term = 0; double creditPayment = 0.0; double dealerPayment = 0.0; char … |
|
I have the program written but I'm getting a 0 instead of the age I entered. [CODE]#include <iostream> using namespace std;; //function prototype void getAge(int); int main() { //declare variable int age = 0; //call function to get the age getAge(age); //display the age cout << "You are " << … |
|
I have to write a program that allows a user to pick five numbers from one to 55. The computer will then generate 5 random numbers and determine how many of the users choices match the generated numbers. I have to create an algorithm for this program. The program will … |
|
I am very new to C++ and have the slightest idea where to start. Here are the directions for the project I'm doing. Below is a copy of the program that I have so far. An internet service provider has three different subscription packages for its customers: Package A: For … |
|
How do I find the Rand_Max on my system using C++ code? Just a theory question. |