
This assignment requires FIVE separate Java programs in ONE project. Use descriptive variable names and conventional naming for any required constants. Control of decimal places is not required in the output of any program.
Program1.java
Write a program that prints the following:
- the default data type for a number without decimals.
- the default data type for whole numbers.
- class weeklyfuelcost renamed according to the Java naming convention.
- an acceptable name for a constant holding an hourly pay rate.
Program2.java
Required Output
Program3.java
Write a program that converts a temperature in Celsius degrees to Fahrenheit. The Celsius temperature is entered from the keyboard. Control of decimals is not required.
Program4.java
Write a program that prompts the user to enter the diameter of a circle and then prints the area of that circle. Look up the formula if necessary. Control of decimals is not required.
Program5.java
Write a program that prompts the user to enter a length in inches. The program should then express the length in feet and inches. Both units should be integers.

Trending nowThis is a popular solution!
Step by stepSolved in 5 steps with 12 images

- In Java Write a program that checks the properness of a given variable name. Morespecifically, your program should specify whether a user-entered variable nameis (1) illegal, (2) legal but uses poor style, or (3) good. There are differentopinions as to what constitutes a good style for a variable name. For thisprogram, check for good style using these rules:· Only use letters and digits.· Use a lowercase letter for the first character.You do not need to check for an uppercase letter for the first letter in the secondand third words, ...etc.Your program should repeatedly prompt the user for variable names until the userenters "q" or "Q." the program terminates when the user enters the "q" or "Q." Sample session:This program checks the properness of a proposed Java variable name.Enter a variable name (q or Q to quit): streetAddress2Good!Enter a variable name (q or Q to quit): street address2Illegal.Enter a variable name (q or Q to quit): StreetAddress2Legal, but uses poor style.Enter a…arrow_forwardDo in Java language, filename wealth.javaarrow_forwardn this lab, you 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.arrow_forward
- CODE FOR JAVA Assign variable minimumVal with the smallest value of 6 positive integers read from input. Ex: If the input is 15 75 95 80 25 50, then the output is: 15 Note: The first value read is the smallest value seen so far.arrow_forwardI need a help with some functionalities to enable me implement my code. The Java program uses Genetic Algorithms to recognize a string. Below is the code and a description of the intended purpose as well as a Flow Chart diagram that described the process of how the program should work. The program is intended to work as follows: The user can input the string to guess. The user can enter the number or organisms in the population. The user can enter the number of generations to create. The user can enter the mutation probability. The user can observe the progress of the GA, for example print the best answer in every 10th generation. After the prescribed number of generations, the program should print best/final answer. import java.util.Scanner;public class GATest { public static void main(String[] arg) { boolean repeat = true; while(repeat) { Scanner myScanner = new Scanner(System.in); System.out.print("\nEnter string to guess--»");…arrow_forwardthis is a java exercisearrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





