Write a program to determine whether the age of Peter ans Stuart.Peter is 8 years older than John.Stuart is 2 years younger than Peter.Age of John is 56 .
Q: Write a program in java to accept basicpay,hra, from the employee. Calculate grosspay which is…
A: Given:
Q: e a java program to calculate the electricity bill for a customer , The program should get the…
A: Write a java program to calculate the electricity bill for a customer , The program should get the…
Q: Write a JAVA program to read input the age (in years) and weight (in kg) from the user and check if…
A: Logic: Accept age and weight from the user. Check age greater than or equal to 18 and weight…
Q: Write a Java program that calculates and prints the monthly pay for an employee. The net pay is…
A: Actually, program is an executable software that runs on a computer.
Q: We have to dogs x and y, and the parameters xSmile and ySmile indicate if each is smiling. We are in…
A: Write a JAVA program to input the values of two boolean variables xSmile and ySmile. Then print…
Q: Given a list of zoo animals, print the animals grouped by their type. Please show code, and…
A: We have given a list of animals from the zoo. Let us assume the Animal has two properties name and…
Q: TRY TO MAKE ANY SIMPLE PROGRAM USING JAVA AWT , YOUR PROGRAM MUST HAVE 4 FUNCTIONS OR IT CAN DO 4…
A: Algorithm: Create a public class GamePanel Set the screen specifications Create a class…
Q: Write a program to calculate the electricity bill.user can assume the range of cost per units Any…
A: #include<iostream> using namespace std; int main(){…
Q: Write a program in elixir programming language whether the given integer is even or odd without…
A: This question is from the elixir programming language which is developed by José Valim in 2011. Here…
Q: Create a program using java language that will calculate the average of 4 given grades shown as an…
A: Code public class Main{ public static void main(String[] args) { int…
Q: Write a program that prints your complete name on the first line and course, year and section on…
A: PFB the asked program: import java.io.*; class GFG { public static void main (String[] args) {…
Q: I need the answer as soon as possible
A: Print the First name, Initial and last name using Java.You can merge/concatenate/combine two Java…
Q: Write Java statements that output Male if the gender is ‘M’, Female if the gender is ‘F’ and invalid…
A: Given, We have to write a java code by taking input as M and F from the user, and output Male if…
Q: You are asked to write a java program for an embassy to help with the visa process. Your program…
A: To solve the given question first you need to take input in the given format then you have to…
Q: Write a program that reads the employe name and base salary and then calculat
A: #include <iostream>using namespace std; int main(){ int base_salary; string name; // input…
Q: Write a complete Java program that prints out the following information: Ask the user to enter the…
A: The main objective of the java program, Rabab.java is to prompt the user to enter the last three…
Q: 1. Write a program that prints your name, age, and department in console 2. Write a program that…
A: As no programming language is mentioned, it is solved using C++
Q: CREATE A C++ PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZEN IF YES, THEN GIVE 20% OFF…
A: #include <iostream>#include <string>#include <string> using namespace std; int…
Q: Write a program in any programming language to caleulate and print the Electricity bill of a given…
A: - We have to code the electricity bill problem using the given charges. - We are using C++ here.
Q: Write a complete Java program that prompts the student to enter the credit hours earned and then…
A: PROGRAM CODE: import java.util.*; // import java utility packagepublic class…
Q: Write a program using the language C #. The user enters three grades for a student, and then prints…
A: While doing programming in any programming language, you need to use various variables to store…
Q: BILLING NOTICE Account #: Hame: Period Covered : 03-25-2014 - 04-24 2014 Consumer Type : Residential…
A: Above screenshot is similar to an electricity bill , where we used a formula :- Net amount payable=(…
Q: Develop a program that calculates the final score and the average score for a student from his/her…
A: Start Input Name Input Scores Calculate sum Calculate average Stop
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: Program code: #include <bits/stdc++.h>using namespace std; int main(){ string…
Q: ava program to give your own example of Arithematic operator.Give source code and output
A: java program is an given below : class Test { public static void main(String[] args) {…
Q: Write a program that converts a time from 24-hours notation to 12-hours notation. The following is a…
A: I have provided python code for given problem.
Q: Write and test a well commented program which helps an insurance broker determine insurance premiums…
A: Actually, program is an executable software that runs on a computer.
Q: Write an AWT Java program that will require the user to input two integers and arithmetic operator…
A: The complete source code is given below:
Q: Write a JAVA program to read input the age (in years) and weight (in kg) from the user and check if…
A: logic- read age and weight if age>=18 && weight>=45 display “you are eligible for…
Q: program in java that allows the user to enter his name and his monthly salary.then calculate the…
A: Code import java.util.*; public class ScannerNextFloatExample1 { public static void…
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 program to compute the area and circumference of a rectangle 3 inches wide by 5 inches long.…
A: start initialize length and width calculate area of rectangle print area calculate circumference of…
Q: Write a program that converts a time from 24-hour notation to 12-hour notation. The following is a…
A: //C++ program #include <iostream> using namespace std; int main(){ int h,m;…
Q: Write a program to print the lyrics of the song “Old MacDonald." Your program should print the…
A: Step 1 : Start Step 2 : Using a print() statement to print the first verse of the lyrics. Step 2 :…
Q: Write java program and explain for the following. A. To print the pascal triangle B. To count the…
A: Given To do java :- A. To print the pascal triangle B. To count the number of vowels in the program.
Q: Write a program that will input a year code and output year level. (Use if-else and switch-case…
A: Algorithm: Start Take year code from user Check the given year code is from which year if(First…
Q: Write a well commented java program that performs the following tasks: i. Request the user to input…
A: As per our company guidelines, we are supposed to answer only one question per question and kindly…
Q: Write java program and explain for the following. a. Whether a given string is Palindrome or not. b.…
A: According to the Question below the Solution: All points contain different question so i am giving…
Q: a) Write a simple Java program that will: i. accept radius as input, ii. calculate the area and…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
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: Grass sod costs 35.00 per square meter and fencing costs 100.00 a linear foot. Display the total…
A: Required: Grass sod costs 35.00 per square meter and fencing costs 100.00 a linear foot. Display the…
Q: Hi, I am programming for java and I need step by step detailed explanations of how to code…
A: The given java program will obey the following rubrics:Importing essential header files.Displaying…
Q: a) Write a basic Java program that prints out your i. Name ii. Registration Number iii. Course Code…
A: Please find the answer below :
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 program that prompts the user to input three numbers. The program should then output the…
A:
Q: Which program below best represents the natural language sentences: Dogs are normally friendly,…
A: The program for the given Natural language are
Q: Write a java program, which accepts an integer from the user and checks whether the number is…
A: Code: import java.util.Scanner;public class Main{ public static void main(String[] args) {…
Q: Write a program to print the lyrics of the song "Old MacDonald." Yourprogram should print the lyrics…
A: Lets see the solution.
Q: You are asked to write a java program for an embassy to help with the visa process. Your program…
A: I give the code in Java along with output and code screenshot
Q: WT Java program that will require the user to input two integers and arithmetic operator then it…
A: Given :
Write a program to determine whether the age of Peter ans Stuart.Peter is 8 years older than John.Stuart is 2 years younger than Peter.Age of John is 56 .
any
Step by step
Solved in 2 steps with 1 images
- Java or C++ program to display the given output -----Library System----1. Add a Student2. Add a Book3. Display All Students4. Display All Books5. Search a Student6. Search a Book7. Borrow a Book8. Display Borrowed Books9. Return a Book10. Exit ➢ When 1 is chosen, ask the user to enter the student’s information(5-digit ID number,surname, first name, age, and sex)➢ When 2 is chosen, ask the user to enter the book’s information(5-digit book number,Title, Author’s name(Surname, first name), date of purchase, and status (available/notavailable))➢ When 3 is chosen, display list of all students(5-digit ID number, surname, first name,age, and sex)➢ When 4 is chosen, display list of all books(5-digit book number, Title, Author’sname(Surname, first name), date of purchase, and status (available/not available)➢ When 5 is chosen, ask the user if he wants to search the list by Surname or IDnumber. If record is found, display the corresponding record, else display anappropriate prompt.➢ When 6 is…Write a program in any programming language to caleulate and print the Electricity bill of a given customer. The unit consumed by the user should be taken from the keyboard and display the total amount to pay to the customer. The charge are as follow : Unit Charge/unit upto 199 @1.20 200 and above but less than 400 @1.50 400 and above but less than 600 @1.80 600 and above @2.00 If bill exceeds tk 400 then a surcharge of 15% will be charged and the minimum bill should be of tk 100/- Sample input: 800 Sample output: unit Consumed :800 Amount Charges @tk 2.00 per unit : 1600.00 Surcharge Amount : 240.00 Net Amount Paid By the Customer : 1840.00Python programming only FIX THE ERRORS IN THE CODE EXERCISE Here is a program on calculating grades. Please correct the errors in the program.# Calculating Grades (ok, let me think about this one)# Write a program that will average 3 numeric exam grades, return an average test score, a corresponding letter grade, and a message stating whether the student is passing. # Average Grade# 90+ A# 80-89 B# 70-79 C# 60-69 D# 0-59 F# Exams: 89, 90, 90# Average: 90# Grade: A# Student is passing.# Exams: 50, 51, 0# Average: 33# Grade: F# Student is failing.exam_one = int(input("Input exam grade one: "))exam_two = input("Input exam grade two: "))exam_3 = str(input("Input exam grade three: "))grades = [exam_one exam_two exam_three]sum = 0for grade in grade: sum = sum + gradeavg = sum / len(grdes)if avg >= 90: letter_grade = "A"elif avg >= 80 and avg < 90 letter_grade = "B"elif avg > 69 and avg < 80: letter_grade = "C'elif avg <= 69 and avg >= 65: letter_grade = "D"elif:…
- Java Programming Assignment: Sammer, a smart child, just learned about series and numbers. He wrote the numbers in sequence and went to have milk. Unfortunately, while going to the shop he had a small accident and the coins are mixed with the other lady coin (May also mixed negative numbers) Now that you have been given these mixed numbers, your task is to help the little one finds the first missing natural number by using the Java programming language. Sample Input: 1 265-88 6 7 Sample Output: 1Create a program using java language that will calculate the average of 4 given grades shown as an example below.1st grading: 892nd grading: 923rd grading: 854th grading: 91average grade: 89Python programming In a department store sale, customers who purchase over 2000 are given 10% discount. Write a program that will accept for the purchase amount of a customer, solve for his/her discount if there’s any, ask for the money he/she is going to pay, then output the discounted price and the change of the customer.”
- complete a prewritten Python program for a carpenter who creates personalized house signs. The program is supposed to compute the price of any sign a customer orders, based on the following facts: The charge for all signs is a minimum of $35.00. The first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character. If the sign is make of oak, add $20.00. No charge is added for pine. Black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering. Instructions Make sure the file HouseSign.py is selected and open. You need to assign variables for the following: A variable for the cost of the sign assigned to 0.00 (charge). A variable for the number of characters assigned to 8 (numChars). A variable for the color of the characters assigned to "gold" (color). A variable for the wood type assigned to "oak" (woodType). Write the rest of the program using assignment statements and…A random walker starts at the origin of coordinates. Every second he takes a step which is equally likely to be to the east or west or north or south. His step is one meter long. Write a code which simulates this random walk. Assume the walker makes ten thousand steps. How far will he be from the origin after taking those ten thousand steps? Use phyton language import mathimport numpy as npDesign a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. This is to be done in Python.
- Design a Python program that tests your ESP, or extrasensory perception. The program will randomly pick a color, and you will be asked to predict the program’s selection before it is revealed. Design the program to randomly select one of the following words:Red, Green, Blue, Orange, YellowTo select a word, the program can generate a random number. For example, if the number is 0, the selected word is Red, if the number is 1, the selected word is Green, and so forth.Next, the program should ask the user to enter the color that the computer has selected. After the user has entered his or her guess, the program should display the name of the randomly selected color. The program should repeat this 10 times and then display the number of times the user correctly guessed the selected color.Blissful number: a number where every digit is greater than its immediate left digit is called a Blissful number. (e.g. 12345 is a blissful number). A single digit number is not a blissful number.Now write a python program that takes a number from the user and checks whether it is a blissful number or not.========================================================Sample Input135789Sample Output135789 is a blissful numberExplanation1:5 is greater than 3. 7 is greater than 5. 8 is greater than 7. And 9 is greater than 8. In other words, every digit is greater than its immediate left digit. Therefore, 35789 is a blissful numberWrite a program to calculate the grade point average (GPA) of a student by getting their grades for all their subjects. Grades and their grade points areGrade S 10 pointsGrade A 9 pointsGrade B 8 pointsGrade C 7 pointsGrade D 6 pointsGrade E 5 pointsGrade F 0 pointsThe program should input the number of subjects, followed by the grade obtained in each subject. The program should calculate the average of the grade points and print it.