The Artima Developer Community
Sponsored Link

Java Answers Forum
please help

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
AHMED 182

Posts: 1
Nickname: ahmed182
Registered: Sep, 2016

please help Posted: Sep 24, 2016 7:08 AM
Reply to this message Reply
Advertisement
Hey i'm guys i'm new at using netbeans.. and i have an Assignment.

can anybody help me with it? thanks

Q1
Write a Java program to do the following:
1. Declare 2 integers
2. Define a scanner object
3. Ask the user to enter 2 numbers
4. Read the first number
5. Read the second number
6. Find the product of the two numbers
7. Print the result


Q2

Write a program that prompts the user to input the total number of students that plan to take ITBP119, maximum number of sections that CIT can teach. All sections must have the same number of students. The program then outputs the number of students per section, and the number of students that cannot
register. Hint: Use the division and modulus operations.
Here is a sample of input/output is:
Enter the total number of students: 127
Enter the maximum number of sections: 6
Number of students per section is: 21
Number of students that cannot register: 1


Q3

To attract more clients a local store marks down the prices of items by a certain percentage. Write a program that reads the original price of the item sold and the percentage of the mark-down price. The program then outputs the original price of the item, the marked-down percentage and the store’s selling price of the item.


please help.. and thanks

Topic: Who has the best java based tech stack in Raleigh NC Previous Topic   Next Topic Topic: Java - Lotto

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use