17.Write a Java program that prompts the user to input an integer greater than 0 which represents the size/height of the triangle shape. The program should print the following triangle shape according to the user input by alternating 'l' and '+' characters. Invalid error message must be displayed if the size is less than 1. Example: if the size of the shape = 4, then the program should output: 1 1+1 1+1+1 1+1+1+1
Q: An object-oriented design approach frames everything in terms of objects. How may a large (or…
A: Introduction: A computer programming a paradigm known as object-oriented programming (OOP) arranges…
Q: You may still give it a go and try to describe the operations using structured English even if they…
A: English is Structured and Used: When communicating the design of the a computer programmer to…
Q: Explain the key components of a distributed database.
A: Distributed database components are located across multiple positions.
Q: l interpersonal sk
A: Interpersonal SkillsInterpersonal abilities are described as the ability to convey or communicate…
Q: What types of concerns and issues and problems are raised by using a fragmented information system?
A: The answer is given below step.
Q: The next semester, enrol in a course that teaches a programming language. How does one decide which…
A: Please find the answer below :
Q: Determine which security methods are most successful in resolving the various security issues.
A: Internet use and the spread of information technology have, without a doubt, made our lives simpler.…
Q: The way Ubuntu Server looks and feels sets it apart from competing server operating systems.
A: Ubuntu is a Debian-based Linux distribution that consists mostly of free and open source software.…
Q: t not possible to offer all sides of the issue on the short- and long-term effects of information…
A: The Effects of Information Technology on Our Daily Lives and SocietyPresent arguments for both…
Q: Use structured language when explaining non-systems analysis procedures. Language structure might be…
A: A software engineering: Technique called structured analysis creates and delivers user-friendly…
Q: You should try to describe any procedures that are not part of the systems analysis process,…
A: Structured English will explain the processes not associated with systems analysis. Structured…
Q: An HRD interventionist should make the school aware of the importance of training needs analysis in…
A: As an HRD interventionist, you should advise a school on the significance of doing a training…
Q: Exists a certain class of candidate system that may be used in the construction of a system?
A: The answer of the question is given below
Q: Structured English may be useful for discussing non-systems analytical procedures. Here is further…
A: Systems Analytical: Systems analysis is the process by which a person (or people) study a system in…
Q: Use object-oriented design when it makes sense to do so. Structured design is a suitable option when…
A: The question has been answered in step2
Q: The array a[] contains 10 integers. Starting from the second element in a[ ], the difference between…
A: Here is the c program of above problem. See below step for code and output.
Q: An object-oriented design approach frames everything in terms of objects. How may a large (or…
A: C++ is a hybrid, multi-paradigm language. It is certainly not a "pure" object-oriented language,…
Q: How can users and programmers collaborate to produce software?
A: Given: Which of the following are instances of consumers working together with software developers?
Q: What does testing in BC/DR planning accomplish? How many different test types are there?
A: We need to discuss BC/DR test and list it's types.
Q: IACSIT is attempting to make cutting-edge technology and techniques accessible to the rest of the…
A: Academics and industry professionals will have a rare opportunity to discuss recent advancements in…
Q: Is it not possible to offer all sides of the issue on the short- and long-term effects of…
A: Lets see the solution.
Q: Give an explanation of the Information Security (InfoSec) program in terms of computer science.
A: For every organization regardless of the size or revenue generated, needs an information security…
Q: What does Immelt mean when he talks about the "industrial Internet" and "digitalization of the…
A: Data and data analytics are at the core of the company in the industrial sector, where industry…
Q: An object-oriented analysis may be connected with both benefits and drawbacks.
A: Given: Classes and class links are identified during the system analysis or object-oriented analysis…
Q: Talk about non-systems analytical procedures using structured language.
A: Structured Languages The application of structured English is an effective approach for decision…
Q: List the several design models that we use throughout the software development lifecycle's analysis…
A: There are different approaches or model which uses SDLC phases in order to develop a quality…
Q: Describe the fundamentals of machine language. What's more, why can't electronic devices understand…
A: A computer can understand machine language, which is a low-level language composed of binary digits…
Q: Why are records so important to a successful criminal investigation? List the absolute minimum…
A: Given: The Benefits of Keeping a Record of Procedures in Criminal InvestigationsEverything that…
Q: Is it possible to define object-oriented programming analysis and design in terms of a formal…
A: Given: A system is depicted as a collection of interrelated items. Each modelled object has a class,…
Q: Do you evaluate the efficacy and application of interpersonal skills throughout the planning and…
A: The Answer is in step2
Q: Why should we spend the time studying various programming languages? Which programming language…
A: Programming languages play an important role in making people's work easier. You can't even use…
Q: What is the term used for describing the judgmental or commonsense part of problem solving?…
A: In this question we have to find what is the term used for describing the judgmental or commonsense…
Q: Which of the following is most likely to be removed at the conclusion of a line? What justifies the…
A: Given: The aorta, a huge and thick-walled artery, is the initial portion of the systemic…
Q: How can you help an employee if they aren't working to their full potential?
A: Improve their visual clarity. To help them in reaching their objectives, you must describe their…
Q: What does Immelt mean when he talks about the "industrial Internet" and "digitalization of the…
A: Data and data analytics are at the core of the company in the industrial world, where industry…
Q: What warning signs point to the impending failure of a software project? Why elucidate?
A: The indicators indicate a software project is in trouble going to fail include the following: The…
Q: what is Identity-Based Public-Key Cryptography? explain with example.
A: Encryption is a process to ensure that the messages are…
Q: If effective interaction with the computer is feasible, why is programming required? There are…
A: Programming: The Swift programming language is an example of a high-level programming language that…
Q: Object-oriented design must be employed whenever it makes logical to do so. The usage of structured…
A: OOD (object-oriented design): Objects, as the name indicates, are utilised in programming.…
Q: List the several design models that we use throughout the software development lifecycle's analysis…
A: The Answer is in given below steps
Q: In the discipline of software engineering, the fundamentals are lacking. Explain?
A: Let's begin with a brief introduction to software engineering: The name "software engineering"…
Q: xists a certain class of candidate system that may be used in the construc
A: Introduction: A candidate management system (CMS), also known as an applicant tracking system (ATS),…
Q: The organisation of the object-oriented design approaches that are used should put more focus on…
A: The answer of the question is given below
Q: These red flags may indicate that a software project is doomed to failure. To what purpose?
A: The following are some of the warning signs that a software project is on the verge of failing:…
Q: For this program, you have to write your own functions for lists without using any of the build-in…
A: Please find the answer below :
Q: What benefits and drawbacks come with using the cloud for data storage? There should be a directory…
A: Cloud storage is a cloud computing model that stores data on the Internet through a cloud computing…
Q: The organisation of the object-oriented design approaches that are used should put nore focus on…
A: Let's investigate the solution: Object Process Methodology is a kind of process methodology used for…
Q: Write a program to calculate the length of the string input by the user. Problem 2: Write…
A: Introduction: In this question, we are asked to solve some coding problems and that are listed in…
Q: The names and contact information of ten well-known international IT and computer science companies…
A: The World of Computer Science and Information Technology Magazine (SCIATIC) is an open-access,…
Q: source code is in C++ language
A: Given :- In the above question the code is mentioned in the above given question Need to write the…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Step by step
Solved in 4 steps with 2 images
- 17.Write a Java program that prompts the user to input an integer greater than 0 which represents the size/height of the triangle shape. The program should print the following triangle shape according to the user input by alternating 'I and + characters. Invalid error message must be displayed if the size is less than 1. Example: if the size of the shape = 4, then the program should output: - ! 1+1 1+1+1 1+1+1+1Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. Write a program which prompts the user to enter the weight in kgs (integer value) and height in feet and inches (both integers) and then calculates the BMI of the person. Your program first need to convert inches to meters (i.e. inches * 0.0254) and then use the following formula to calculate BMI: weight kilogram / (height_meter)^2 Your program displays the BMI value in two decimal places and the corresponding status as shown in the examples below. Note that one inch is 0.0254 meters and 1 foot is 12 inches. For example: Input Result 62 5 10 89 6 0 45 BMI BMI < 18.5 18.5 s BMI < 25.0 25.0 ≤ BMI < 30.0 30.0 ≤ BMI 7 82 5 Interpretation Underweight Normal Overweight Obese 2 Enter weight (kg): Enter height (feet): Enter height (inches): BMI is 19.61, Normal Enter weight (kg): Enter height (feet): Enter height (inches): BMI is…1.Blood sugar is considered normal if its rate is less than 140 and greater than 70, it is considered high if its rate is greater than or equal to 140, and it is considered low if its rate is less than or equal to 70. Write a Java program that asks the user to input the rate of blood sugar of each patient in a hospital (-1 to indicate the end of the data.) The program should calculate and print the number of patients with normal blood sugar, number of patients with high blood sugar, number of patients with low blood sugar, and the total number of patients entered by the user.
- A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $1 per hour for each hour or part thereof over four hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format, and should calculate and print the total of yesterday's receipts. The program should use the function calculate Charges to determine the charge for each customer.Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönderWrite a program that asks the user to enter the three sides (a, b and c) of a triangle as double values. Assume that the user will enter three valid sides that can form a triangle, your program should perform the following tasks: If the three sides are equal, the program displays "Equilateral" on the screen. • If any two sides are equal, the program displays "Isosceles". If the sum of the squares of any two sides is equal to the square of the third one, for example (3? + 42 = 5) then the program displays "Right" • Otherwise, the program displays "Scalene" as well as the perimeter of the triangle which is the sum of all three sides. Sample Run 1: Enter three sides: 4.2 4 5 Sample Run 2: Enter three sides: 111 Equilateral Scalene Perimeter of triangle is: 13.2 Sample Run 3: Enter three sides: 3 4 5 Right Sample Run 4: Enter three sides: 8.2 5 8.2 Isosceles 64°F
- write a program that reads the followinginformation and prints a payroll statement.Employee’s name (e.g., Smith)Number of hours worked in a week (e.g., 10)Hourly pay rate (e.g., 9.75)Federal tax withholding rate (e.g., 20%)State tax withholding rate (e.g., 9%) In summary, design a program to• Prompt user for 5 values and read the values using Scannero Use method .nextLine() to get the String for the nameo Use method .nextDouble() to get all other numeric values• Calculating the Gross payo Gross pay = hours worked * hourly pay rate• Calculating the Federal withholdingo Federal withholding = Gross pay * federal tax withholding rate• Calculating the State withholdingo State withholding = Gross pay * state tax withholding rate• Calculating the Total deductiono Total deduction = Federal withholding + State withholding• Calculating the Net Payo Net Pay = Gross pay – Total deduction• Formatting the output same as the Sample run (Use ONLY printf)o Correctly format 2 decimals and use $ (hint…Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based on the number of hydrogen, carbon, and oxygenatoms in the molecule. The program should prompt the user to enter thenumber of hydrogen atoms, the number of carbon atoms, and the numberof oxygen atoms. The program then prints the total combined molecularweight of all the atoms based on these individual atom weights:Atom Weight(grams I mole)H 1.00794c 12.01070 15.9994For example, the molecular weight of water (H20) is: 2(1.00794) +15.9994 = 18.01528.1. Use if - else - elif Write a program to get an integer input from the user. If the input is 25, get the length and breadth from the user and calculate the area of rectangle. [ Area of rectangle = length * breadth ] If the input is 40, get the side from the user and calculate the area of square. [ Area of square = side * side] If the input is 65, get the radius from the user and calculate the area of circle. [ Area of circle = 3.14"r*r] Otherwise Display Enter number 25 or 40 or 65. 2. Use while loop to print the even numbers from 100 to 50. Print the product of all the even numbers.
- 1. Write a pyrhon program that prints out a classic hangman stick figure. The program should ask the user to enter a number from 1-6 and the corresponding hangman should be printed. The value the user inputs corresponds to the number of incorrect guesses in a real hangman game and so the completeness of the hangman will correspond to the number of ‘incorrect guesses’ inputted by the user (e.g., if the user enters 1, then only the head of the hangman will be printed; full example below). Example:Enter a number from 1-6: 1O Enter a number from 1-6: 2O|Enter a number from 1-6: 3O\||Enter a number from 1-6: 4O\|/|Enter a number from 1-6: 5O\|/|/Enter a number from 1-6: 6O\|/|/ \ 2. Modify your program from problem 1 so that the user input is checked to be a validsingle digit (1-6) before printing the corresponding hangman. If the input is not valid, theninstead of a hangman the following message should be printed “Invalid input: you must enter asingle number from 1-6.” Example:Enter a…1- Write a java program that asks the user to input two integers intStart and intEnd then computes the below series for all the numbers between those integers inclusive. intStart should be smaller than intEnd. intStart /n+ (intStart+1)/n+ (intStart+2)/n+....intEnd/n Your program should calculate this series for n-5, 10, 15 ... 50, exactly as the below sample run Enter Start and End values: 5 10 For n 5.0 The sum is: 9.0 For n 10.0 The sum is: 4.5 For n 15.0 The sun is: 3.0 For = 28.0 For n = 25.0 For n 30.0 For n= 35.0 For n = 40.0 For n 45.0 For n 50.0 The sum is: 2.25 The sum is: 1.79 The sum is: 1.5 The sum is: 1.28. The sum is: 1.12. The sum is: 1.0 The sum is: 0.89 Enter Start and End Values: 105 Start should be smaller than EndGiven the sample code above in generating a random number. Create a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows. 1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Don't display the computer's choice yet.) 2. The user enters his or her choice of "rock", "paper", or "scissors" at the keyboard. (You can use a menu if you prefer.) 13. The computer's choice is displayed. 4. A winner is selected according to the following rules: a. If one player chooses rock and the other player chooses scissors, then rock wins. (The rock smashes the scissors.) b. If one player chooses scissors and the other player chooses paper, then scissor wins. (Scissors cuts paper.) c. If one player chooses paper and the other player…