No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi guys, I have a problem with this question, where the amount is constantly $0 and at the end if the user enters Y/N it just closes without saying "Transaction Completed/Cancelled". Any tips on how to fix it? Thanks [CODE]#include<stdio.h> #include <iostream> #include<math.h> int main() { int numofbees; float price … |
|
[CODE]import java.util.Scanner; class CalcAvg{ public static void main (String args[]){ Scanner s = new Scanner(System.in); int sum = 0; int avg = 0; for(int i = 0; i < 10; i++){ System.out.println("Enter a number: "); int num = s.nextInt(); sum = sum+num; } avg = sum/10; System.out.println("The sum is: " … |
|
Hey guys, I'm working on an assignment which requires me to have one of my constructors to have parameters though I get an error in "Car c2 = new Car();" that it cannot find symbol. Also I am required to enter the necessary get and set methods to be able … |
|
Whats wrong with my program? class Hw7{ public static void main (String args[]){ String s = "Hello"; int v = String s; System.out.println(v); } } This is the error thats brought up: --------------------Configuration: <Default>-------------------- C:\Users\Stephane\Documents\JCreator Programs\Hw7.java:5: ';' expected int v = String s; ^ C:\Users\Stephane\Documents\JCreator Programs\Hw7.java:5: not a statement int … |
|
So I have this question: Write a program that creates a constant MULTIPLE of type int. Set MULTIPLE to 3. Output the times table between 1 and 10 for MULTIPLE. Modify the program to output the times table of 7. And so far I've written this: //5. - Homework class … |