Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~3K People Reached
Favorite Forums
Favorite Tags
c++ x 35
Member Avatar for kra9853

I'm trying to write a program that outputs the cent symbol (ยข) in Visual Studios 2010 and when I copy and paste the symbol into my text it outputs a completely different symbol. I've also tried using \u00A2 and I still get a different wacky symbol. What is the C++ …

Member Avatar for mike_2000_17
0
793
Member Avatar for kra9853

The function Generate_And_Display_Bill() has no formal parameters and returns a variable of type float. The function generates a random number between $0.01 and $99.99 and returns the value to main(). This is what I've created so far in my function declaration; [CODE]#include <iostream> #include <ctime> float Generate_And_Display_Bill() { float Random_Bill; …

Member Avatar for kra9853
0
166
Member Avatar for Annettest
Member Avatar for kra9853

The program asks the user to provide from 1 to 6, inclusive, numbers between 1 and 59, inclusive, as their lotto numbers. The lotto program will then use the random number generator to provide the same number of numbers in the same range. Check to see how many of the …

Member Avatar for kra9853
0
578
Member Avatar for kra9853

I need help with using the rand() function and an array to create 19 random numbers when the user types 'P' instead when I type 'P' I get 19 rows of 19 numbers [CODE] int main () { char command; double setNum [19]; int create; create = 0; cout << …

Member Avatar for Ancient Dragon
0
142
Member Avatar for kra9853

Having trouble running a do while with a if else statement. I'm getting an error saying the "variable 'distanceM' is being used without being initialized." [CODE]int main () { const double PI = 3.141592; double xM, yTheta, distanceM, thetaRad, thetaDeg, xRad, yRad, X, Y; char choice; cout << "This program …

Member Avatar for Zjarek
0
123
Member Avatar for kra9853

Heres the question:Develop the code and example values necessary, to demonstrate to a user, the differences in execution of the following four statements: [CODE]{ ++count; count++; --index; index--; }[/CODE] here is my attempt [CODE]int main (void) { int count,index; count=1; //intialize count while (count <= 10) { cout<<count<<" "; ++count; …

Member Avatar for getnit
0
98
Member Avatar for kra9853

I need to modify my program to use while and for loops and be able to do the following tasks: a. A score of I on the project forces a mid-term grade of I. Notify the user to contact both the student and their advisor of the I grade. b. …

Member Avatar for Lerner
0
119
Member Avatar for kra9853

I need help rewriting my if-else statements into a switch statement, [CODE]//equations for final grade LGT=(LG1+LG2+LG3+LG4)/40.*.40*100; MTPG=MTP*.4; MTEG=(MTE/55.)*.20*100; sum=LGT+MTPG+MTEG; if(sum>95) //if-else statements, determines final grade letter='A'; else if(sum>85) letter='B'; else if(sum>75) letter='C'; else if(sum>65) letter='D'; else letter='F'; cout<<"final grade is: "<<letter<<endl;[/CODE] also i need to somehow get my switch statement …

Member Avatar for Unimportant
0
235
Member Avatar for kra9853

How do use the pow function with variables? i.e. [CODE]//equations for problem 9 page 99 part b cT=(hT)/2; iT=(base*(hT*hT*hT))/12; LT=(sT*iT)/(8*cT);[/CODE] *math.h file in program how would i raise "hT" to the 3 power in correct c++ syntax?

Member Avatar for jonsca
0
76
Member Avatar for kra9853

// The purpose of this Lab is to start the program used in Lab 1 and modify it // to calculate the average of 4 grades entered by the user and display the results // on the console through the use of the math operators in C++. // Part 2 …

Member Avatar for Valaraukar
0
167