Write a JAVA program that asks the user to input the instructor Salary (double) and Academic Rank (String) as "Assistant","Associate" ,or "Lecturer" (ignore case). Assume all inputs are valid and there is no need for validation. Your program should display the Tax amount and Net Salary as follows: Tax Amount =Salary x Tax Rate Net Salary= Salary - Tax Amount
Q: Write a Java program that reads two positive integers num1 and num2 (assume num1 < num2). Then, the…
A: I give the code in Java along with output and code screenshots.
Q: Write a Java program that reads two positive integers num1 and num2 (assume num1 < num2). Then, the…
A: Here we need to define a separate method to find whether a number is perfect or not. Let it called…
Q: Using java language, write a program with total change amount in pennies as an integer input, and…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Write a Java program to find the speed of transverse wave on string after taking tension and mass…
A: According to the information given:- We have to calculate the speed of the transverse wave on string…
Q: Write a Java program that reads two positive integers num1 and num2 (assume num1 < num2). Then, the…
A: Dear learner , hope you are doing well , I will try my best to answer this question. Thank You!!
Q: Write a program that prompts a student to enter a Java score. If the score is greater or equal to…
A: Here to end the program, we need to input -1. Thus we need to use loop. Also since language not…
Q: Write a Java program to take a string, print true if the string starts with "hi" and print false…
A: Introduction: Here we are required to create a JAVA program that checks whether a string starts with…
Q: ii) Write a JAVA program to prompt the user to enter a secret message in the form of a string. If…
A: Code: import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner…
Q: Write a Java program that prompts the user to enter a line of text and outputs the number of digits,…
A: Let us say that the line of text be taken input in a string s. We have to find the number of digits,…
Q: Write a java program that accepts a sentence from the user and prints out the sentence with all…
A: Write a java program that accepts a sentence from the user and prints out the sentence with all…
Q: Write a Java Program to take 3 integens from the user, one of them is small, one is medium and one…
A: Write a Java Program to take 3 integers from the user, one of them is small, one is medium and one…
Q: Write a Java program that takes an integer as input and computes and displays the reverse of that…
A: Let us see the answer (introduction) : Loop : A loop is a set of instructions that are repeatedly…
Q: Write a JAVA program to compute the product of all the digits in a string entered by the user as an…
A: Write a JAVA program to compute the product of all the digits in a string entered by the user as an…
Q: Write a Java program that displays employees information and their salary. There are two types of…
A: Salary of Part-time employee is calculated as: If working hours are less than or equal to 40 then…
Q: Write a Java program that computes the sum of two rational numbers given by the user. [Note: If two…
A: Here have to determine about java code for sum of rational numbers.
Q: Write a Java program that reads two positive integers num1 and num2 (assume num1 < num2). Then, the…
A: Solution:-- 1)The given question has required for the solution with the help of an Java program to…
Q: Write a java program that ask the user to enter number of days in the month, then reads the daily…
A: logic:- read value of n iterate from I=0 to I<n Read values in array arr. end loop set…
Q: Write a JAVA program that asks the user to input the instructor Salary (double) and Academic Rank…
A: Start Input Salary Input Rank Calculate Tax Calculate Net Display Tax Display Net Stop
Q: Write a Java program that reads two positive integers num1 and num2 (assume num1 < num2). Then, the…
A: The question is to write JAVA code for the given problem.
Q: Write a java program that can suggest an activity based on the temperature. If the temperature is…
A: Hi. Let's move on to the code in the next step. I have included comments in the code that will…
Q: Write a Java program that asks the user to enter two Strings. Then, uses String method compareTo()…
A: String Comparison is done by comparing one character at a time from both the strings and whenever…
Q: Write a Java program that calculates the size of equal pieces in a puzzle board. You are asked to…
A: I have answered the question in step 2.
Q: Write a Java program that reads from the user the result of a match between 2 teams in the FIFA…
A: Please find the answer below :
Q: Write a Java program that replies either Leap Year or Not a Leap Year, for any given year input by…
A: Java code:-
Q: Write a complete Java program that asks the user to input the radius (r) and the height (h) of a…
A: import java.util.Scanner; // importing Scanner which is in the java.util package public class test13…
Q: Write a Java program that reads two positive integers num1 and num2 (assume num1 < num2). Then, the…
A: A perfect number is one whose sum of factors (except the number itself) is equal to the number. In…
Q: Write a Java program which allow user to enter a number that represents repetition. Then, the user…
A: In this question, we are writing a java program which calculate the average of numbers and count how…
Q: Write a java program that reads 2 decimal numbers (x , y) and then calculates and prints the sum of…
A: Required:
Q: Write a Java program to take input a string from user and find the number of digits in the string if…
A: Take input a string from user and print the number of digits present in the string as output. Write…
Q: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The…
A: required: Write a program that takes in a line of text as input, and outputs that line of text in…
Q: Write a program in java to check whether a person is eligible for marry or not. Consider for men the…
A: Required:- Write a program in java to check whether a person is eligible for marriage or not.…
Q: Write a Java program that reads two positive integers num1 and num2 (assume num1 < num2). Then, the…
A: here is the full working code in java. import java.util.Scanner;public class Main { public…
Q: Write a java program that read two integer numbers width and height the of a rectangle, the program…
A: Code and sample output of the code is in step2.
Q: Write a JAVA program that asks the user to input the jackets quality in any letter case (HQL for…
A: To solve the above problem, we have used equals methods which is used to compare the content of the…
Q: Write a program using integers userNum and divNum as input, and output userNum divided by divNum…
A: JAVA Program: import java.util.Scanner; class Number { public static void main(String[] args) {…
Q: Write a JAVA program to read input the age (in years) and weight (in kg) from the user and check if…
A: Write a JAVA program to read input the age (in years) and weight (in kg) from the user and check if…
Q: Write a JAVA program that asks the user to input the instructor Salary (double) and Academic Rank…
A: Code: import java.util.*; class Main { public static void main(String args[]) {…
Q: Write a program that reads in hours, minutes and seconds as input, and outputs the time in seconds…
A: ⦁ Converting hours, minutes and seconds into seconds only.⦁ User will enter the time into hours:…
Q: Write a complete JAVA program that display 5 types of fruit with their price. Then ask the user to…
A: Java program is as follows: import java.util.ArrayList; import java.util.List; import…
Q: Write a JAVA program in which an employee enters his/her age(in years) and the program tells whether…
A: Write a JAVA program in which an employee enters his/her age(in years) and the program tells whether…
Q: Write a java program that find the Fibonacci series up to a given number of iterations that entered…
A: To write java program to find Fibonacci series.
Q: Write a java program that determines a student’s grade. The program will accept 3 scores and…
A: The above program is answered bellow
Q: Write a java program that repeatedly prompts the user to input a string starting with letters from…
A: Given: Write a java program that repeatedly prompts the user to input a string starting with letters…
Q: Write a java program that asks the user to enter an integer from 20 to 99 in numeric…
A: Given Write a java program that asks the user to enter an integer from 20 to 99 in numeric form. The…
Q: Write a Java program that asks the user to input the jackets quality in any letter case (HQL for…
A: Find Your Code Below
Q: Write a Java program that lets the user enter the monthly interest rate, number of years, and loan…
A: In this question we are asked to display monthly payment and total payment as per the formula given.…
Q: Write a java program that asks the user to enter the coordinates of 4 points that draw two different…
A: import java.util.*; class Main { public static void main(String args[]){ Scanner in =…
Q: Design a java program with an algorithm that will take a string from the user and then decide if…
A: import java.util.Scanner;class Unique{ public static void main(String args[]) { Scanner…
Q: Write a Java program that computes how high the ball will be above the ground after x seconds in the…
A: Pseudo code: ----------- height = Get height of building from user ispeed = Get initial speed of…
Step by step
Solved in 4 steps with 1 images
- IN JAVA Create a function that takes a string and returns the number of alphanumeric characters that occur more than once. Examples duplicateCount ("abcde") → 0 duplicateCount ("aabbcde") → 2 duplicateCount ("Indivisibilities") → 2 duplicateCount ("Aa") → 0 // Case sensitivejava program that shows exact output as picture program that asks the user to enter a number to be tested for repeated digits. For each input number from the user, the program prints a table showing how many times each digit appears in the number. Let’s assume that the appearance of a digit will not be over 1000 times in the input. Make sure your table printout can align well. The program should terminate when the user enters a number that is less than or equal to 0. A sample output is shown in the attachment.A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes in word pairs that consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Ex: If the input is: Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309 python please
- A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes in word pairs that consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Ex: If the input is: Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309 LAB 6.21.1: LAB: Contact list 0/ 10 ACTIVITY main.py Load default template... 1 user_input = input() 2 entries = user_input.split() 3 contact_list = dict(pair. split(':') for pair in entries)A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes in word pairs that consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Ex: If the input is: Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes in word pairs that consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Ex: If the input is: Joe 123-5432 Linda 983-4123 Frank 867-5309 Frank the output is: 867-5309 please make it simple im a starter at python
- Java program At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 5 points are deducted. Write a program that asks the user for his initial grade and the late submission time (in minutes), and then displays the final result. Sample Run 1: Enter your initial grade: 82 Enter the late submission time (in minutes): 6 Your final grade is 52 Sample Run 2: Enter your initial grade: 115 Grades should be between 0 and 100 Sample Run 3: Enter your initial grade: 43 Enter the late submission time (in minutes): 10 Your final grade is 0 Sample Run 4: Enter your initial grade: 72 Enter the late submission time (in minutes): -2 Time should be positiveLanguage: Java Write a program that reads a sentence from the keyboard. Depending on the last character of the sentence, print the message identifying the sentence as declarative (ends with a period), interrogative (ends with a question mark), exclamatory (end with an exclamation point), or other. Hint: you can use charAt() method from the String class to extract the last character of the input line. The character of a String str is at str.length()-1 position. For taking a sentence as input use the nextLine() method from the Scanner class. You have to use if/else if selection. Sample input and output: Sample 1 Input: How are you? Output: Interrogative Sample 2 Input: I am good. Output: Declarative Sample 3 Input: That is amazing! Output: Exclamatory Sample 4 Input: Although, Output: Other Answer:Using Java programming language write a program to manage a hotel with 24 rooms;10 rooms are Executive, with price Gh ₵ 2500.00 per night, 7 rooms are Chalets, with amounts Gh ₵ 1500.00 per night7 rooms are Ordinary, with amount Gh ₵ 500.00 per night The program should allow customers to book for rooms for a number of nights, and update the number of empty rooms available for each category when a customer has paid fully and has checked-in; also update the number of empty rooms available when customer checks-out. Customers should make bookings with their first names, telephone number A customer should be prompted to know if a room is booked (meaning a another customer has booked it but has not paid fully, or has not checked-in) A customer should be prompted to know if a room is occupied (meaning a booked room has been fully paid for, or the customer has checked-in) A customer should be prompted to know if a room is available (meaning a room has neither been booked nor checked-in). A…
- Write a JAVA program that asks the user to input the instructor Salary (double) and Academic Rank (String) as “Assistant" ,"Associate" ,or “Lecturer" (ignore case). Assume all inputs are valid and there is no need for validation. Your program should display the Tax amount and Net Salary as follows: Тах Атоиnt % Salary x Tаx Rate Net Salary= Salary – Tax Amount Tax Rate can found from the following table Academic Rank Tax Rate Assistant Associate 9% 12% Lecturer 7% Sample Input / Output Input instructor Salary: 955.7 Input Academic Rank: Assistant The amount of Tax is BD 86.013 The Net Salary is BD 869.687 Note: Your answer should follow the given sample input / output.in Java, Write a program that reads student scores, gets the best score, and then assigns grades based on the following scheme:• Grade is A if score is ≥ best − 10• Grade is B if score is ≥ best − 20;• Grade is C if score is ≥ best − 30;• Grade is D if score is ≥ best − 40;• Grade is F otherwise.The program prompts the user to enter the total number of students, then prompts the user to enter all of the scores, and concludes by displaying the grades. Here is a sample run: number of students: 4 scores are: 40.0, 55.0, 70.0, 58.0 Student 0 score is 40.0 and grade is C Student 1 score is 55.0 and grade is B Student 2 score is 70.0 and grade is A Student 3 score is 58.0 and grade is BWrite a program that reads a set of details for a group of employees and then cansearch based on the employee number to find the employee and display his/her information. Theprogram will prompt the user to give the number of employees and then the details (employeeno, employee name, address, position). For the address, the user will give the details: house no,street, city. [Hint: Use a structure Employees and a structure Address].The user will prompt then to give an employee number and the program will check if theemployee exists and then to display his/her information.