Solved السؤال الثاني: اكتب برنامج بلغه الجافا يسمح للمستخدم - Chegg
Question: السؤال الثاني: اكتب برنامج بلغه الجافا يسمح للمستخدم بإدخال اسمه، وراتبه الشهري. ... Here's how to approach this question. This AI ...
Dec 22, 2020
Solved السؤال الثاني:

اكتب برنامج بلغه الجافا يسمح للمستخدم \| Chegg.com

[Skip to main content](#chegg-main-content)

- [Study](https://www.chegg.com/study)





Tasks

- [Homework help](https://www.chegg.com/homework-help)
- [Understand a topic](https://www.chegg.com/understand-a-topic)
- [Writing & citations](https://www.chegg.com/writing)

Tools

- [Expert Q&A](https://www.chegg.com/study/qa)
- [Textbook Solutions](https://www.chegg.com/study/tbs)
- [Math Solver](https://www.mathway.com/Algebra)
- [Citations](https://www.chegg.com/writing/features/citation-generator)
- [Plagiarism checker](https://www.chegg.com/writing/features/plagiarism-checker)
- [Grammar checker](https://www.chegg.com/writing/features/grammar-check)
- [Expert proofreading](https://www.chegg.com/writing/features/proofreading)
- [Learning Lab (Beta)](https://www.chegg.com/learninglab?utm_source=chegg&utm_medium=navbar&utm_campaign=link)

- [Career](https://www.chegg.com/career)



- [Bootcamps](https://www.thinkful.com)
- [Career advice](https://www.chegg.com/advice/career-center/)

- [Learning Lab](https://www.chegg.com/learninglab?utm_source=chegg&utm_medium=navbar&utm_campaign=link)


- [For educators](https://www.chegg.com/honorshield)
- [Help](https://www.chegg.com/contactus)
- EN-US









- English (US)
- English (India)
- English (UK)
- Español
- Türkçe
- 한국어

- [Sign in](https://www.chegg.com/auth)

Paste

Copy

Cut

Options

Upload Image

Special Symbols

÷

≤

≥

o

π

∞

∩

∪





















√



∫



























Math

- Math
- Geometry
- Physics
- Greek Alphabet

1. [Engineering](https://www.chegg.com/homework-help/engineering)
2. [Computer Science](https://www.chegg.com/homework-help/engineering-computer-science-s3)
3. [Computer Science questions and answers](https://www.chegg.com/homework-help/questions-and-answers/computer-science-archive)
4. [السؤال الثاني:\
\
اكتب برنامج بلغه الجافا يسمح للمستخدم بإدخال اسمه، وراتبه الشهري. ثم احسب قيمه الراتب الشهري بعد خصم قيمه ضريبة المبيعات. (الضريبة 10%)\
\
Write program in java that allows the user to enter his name and his monthly salary. Then calculate the monthly salary value after deducting the sales tax amount. (10% tax).](https://www.chegg.com/homework-help/questions-and-answers/--10-write-program-java-allows-user-enter-name-monthly-salary-calculate-monthly-salary-val-q65645342)

## This problem has been solved!

You'll get a detailed solution from a subject matter expert that helps you learn core concepts.

[See AnswerSee AnswerSee Answer done loading](https://www.chegg.com/auth?type=simplifiedstudy&action=signup&data=&redirect=%2Fcspofferinterstitial%2Fib)

- # Question: السؤال الثاني:  اكتب برنامج بلغه الجافا يسمح للمستخدم بإدخال اسمه، وراتبه الشهري. ثم احسب قيمه الراتب الشهري بعد خصم قيمه ضريبة المبيعات. (الضريبة 10%)  Write program in java that allows the user to enter his name and his monthly salary. Then calculate the monthly salary value after deducting the sales tax amount. (10% tax).





السؤال الثاني:



اكتب برنامج بلغه الجافا يسمح للمستخدم بإدخال اسمه، وراتبه الشهري. ثم احسب قيمه الراتب الشهري بعد خصم قيمه ضريبة المبيعات. (الضريبة 10%)



Write program in java that allows the user to enter his name and his monthly salary. Then calculate the monthly salary value after deducting the sales tax amount. (10% tax).

- ![Chegg Logo](https://cdn.web.chegg.com/static/favicon-s.svg)















Here’s the best way to solve it.







Solution

















Here’s how to approach this question


This AI-generated tip is based on Chegg's full solution. Sign up to see more!














Review the `Scanner` class in Java and set up a way to capture user input for their name and salary using `Scanner sc=new Scanner(System.in);`.









Ans->

NetSalary.java



import java.util.Scanner;
class NetSalary
{
public static void main(String arg\[\])
{

doubl…

[View the full answer](https://www.chegg.com/auth?type=simplifiedstudy&action=signup&data=&redirect=%2Fcspofferinterstitial%2Fib)



![answer image blur](https://marketing-assets.chegg.com/ZYPTD8JS/at/hmrmgvqnpmkxbqf4z2f49rk/1200px-ObfuscationImage.png?auto=webp&format=png)





[Previous question](/homework-help/questions-and-answers/2-1-value-p6-root-x-x-10-0-using-bisection-method-15-2--1698-1695-1697-1692-q79133727) [Next question](/homework-help/questions-and-answers/14-200-change-symbols-gis--f-b-t-q75072909)


## Not the question you’re looking for?

Post any question and get expert help quickly.

[Start learning](https://www.chegg.com/auth?type=simplifiedstudy&action=signup&data=&redirect=%2Fcspofferinterstitial%2Fib)

### Chegg Products & Services

- [Chegg Study Help](https://www.chegg.com/study)
- [Citation Generator](https://www.chegg.com/writing/features/citation-generator)
- [Digital Access Codes](https://www.chegg.com/access-codes)
- [Grammar Checker](https://www.chegg.com/writing/features/grammar-check)
- [Math Solver](https://www.mathway.com/Algebra)

- [Mobile Apps](https://www.chegg.com/mobile)
- [Solutions Manual](https://www.chegg.com/homework-help/solutions-manual)
- [Plagiarism Checker](https://www.chegg.com/writing/features/plagiarism-checker)
- [Chegg Perks](https://www.chegg.com/perks)

## \#\#\# Company  Company

- [About Chegg](https://www.chegg.com/about)
- [Chegg For Good](https://www.chegg.org)
- [College Marketing](https://collegemarketing.chegg.com/)
- [Investor Relations](https://investor.chegg.com/Overview/default.aspx)
- [Jobs](https://www.chegg.com/about/working-at-chegg)
- [Join Our Affiliate Program](https://www.chegg.com/affiliate-program)
- [Media Center](https://www.chegg.com/press)

## \#\#\# Chegg Network  Chegg Network

- [Busuu](https://www.busuu.com/)
- [Citation Machine](https://www.citationmachine.net/)
- [EasyBib](https://www.easybib.com/)
- [Mathway](https://www.mathway.com/)
- [Thinkful](https://www.thinkful.com/)

## \#\#\# Customer Service  Customer Service

- [Give Us Feedback](https://www.chegg.com/contactus/feedback)
- [Customer Service](https://www.chegg.com/contactus)
- [Manage Subscription](https://www.chegg.com/my/orders)

## \#\#\# Educators  Educators

- [Academic Integrity](https://www.chegg.com/about/academic-integrity)
- [Honor Shield](https://www.chegg.com/honorshield)
- [Institute of Digital Learning](https://www.chegg.com/about/chegg-institute)

© 2003-2024 Chegg Inc. All rights reserved.

[Cookie Notice](https://www.chegg.com/cookienotice) [Your Privacy Choices](https://privacyportal.onetrust.com/webform/a21a74f4-2f93-44a2-a887-302a9213c997/06b040b7-49eb-464a-b19a-ea35c85c79fc)Do Not Sell My Info [General Policies](https://www.chegg.com/generalpolicies) [Privacy Policy](https://www.chegg.com/privacypolicy) [Honor Code](https://www.chegg.com/honorcode) [IP Rights](https://www.chegg.com/copyright)