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 f should output: 1 1+1 1+1+1 1+1+1+1 program
Q: #include<iostream>#include<string>class Bicycle{friend std::ostream&…
A: The objective of the question is to implement the decrement operator (--) for the Bicycle class in…
Q: Sales VIN co DID Dale Customer CO Is Company Name Address Phone Gender Covert in to EER diagram…
A: First, identify the entities and their properties in order to transform this table into an EER…
Q: First, write code that uses scnr.nextInt() to read in a value for numTomatoes from input. Then,…
A: Algorithm for Tomato Recipe:1. Create a Scanner object to read input from the user.2. Prompt the…
Q: a Python program that simulates a basic library catalog system. The program should be able to:…
A: In this question we have to write a code in python for book management system where we will inlcude…
Q: E4.11 Consider the following relation with sample data. STUDENT INTERNSHIP TABLE StudentID…
A: As per the given information, the STUDENT INTERNSHIP TABLE captures the data about student…
Q: What would pseudocode look like for the below C++ program? Please and thank you C++ source code:…
A: Pseudocode:An algorithm or computer program can be loosely and high-levelly described using…
Q: If x is TRUE and y is TRUE, what is ((x AND y)' AND (x' OR y')')' ?
A: here you have specified the boolean expression and asked to find its true and false value.in the…
Q: 1 - Create a "Data Warehouse" for a management system for a cinema chain. The database must store…
A: -- Algorithm to Create Cinema Management System Database Schema --1. Create Films Dimension Table:…
Q: Matlab matlab matlab Draw this graph in matlab
A: Generate Parameter Values: - Create a vector `t` ranging from 0 to with increments.Parametric…
Q: code
A: PYTHON:-Python is a widely used high-level, general-purpose, interpreted, dynamic programming…
Q: when you have to implement a minimum cost function using decoders how do you decide what type of…
A: The process of implementing Boolean functions often involves using decoders, which play a crucial…
Q: Q.3) You want to transmit the message +8 a. Encode this textual message into a sequence of bits,…
A: The correct solution for the above mentioned question is given in the next steps for your reference…
Q: Using the COCOMO model and the information below, determine the estimated project duration and…
A: The COCOMO model is a widely used software cost estimation model and it provides a systematic way of…
Q: Please submit the source code in the text for m, and attach pictures to show the output of your…
A: In this question we have to write a test program for a class structure related to a university or…
Q: 6. What is the maximum number of routers that can be recorded if the timestamp option has a flag…
A: Within the Internet Protocol suite, IP, or Internet Protocol, is a basic communication protocol that…
Q: Please solve task 2 just
A: The objective of the question is to perform bitwise operations (AND and OR) on an image using masks.…
Q: Enter the temperature recorded in different cities:
A: I have provided C CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT...
Q: Write a merge function that takes pointers to two sorted lists as arguments and returns a pointer to…
A: A list is a data structure used in computer science and programming that shows an ordered collection…
Q: De Morgan's theorem
A: De Morgan's laws are a set of rules that explain how to simplify boolean expressions.One of the…
Q: Five (5) potential causes of slow running of computer system.
A: A slow-running computer system can be a source of frustration, impacting the productivity and user…
Q: In this problem you will design a data structure that implements Stack ADT using singly-linked list…
A: The objective of the question is to design a data structure that implements Stack ADT using a…
Q: 11. If w is TRUE, x is TRUE, and y is FALSE, what is ((w AND X AND y') OR (w' AND X AND y')) AND ((w…
A: In this problem, we're given values for variables w, x, and y and asked to evaluate a complex…
Q: What are two possible formatting vulnerabilities that can be encountered when utilizing the iostream…
A: The iostream library in C++ is used for input and output operations. While it is a powerful tool,…
Q: help
A: The first part of the question is asking about the section of a strategic plan that provides an…
Q: Task 1: Create an m-file that do the following: 1. Create an image of size 100 x 100 that contains…
A: As this scenario, we address the task of enhancing image security through watermarking techniques.…
Q: Q2. Are given below graphs bipartite? If graph is bipartite then give the bipartition of vertices…
A: Vertex Set Partitioning:The graph can be partitioned into two sets of vertices (U and V).Edge…
Q: va hal Sil te scenar warriors from different races, each with its own attack power and health.…
A: Read warriors' information from "Warriors.txt" file.For each warrior, create a Warrior object and…
Q: Explain FDMA – TDMA – OFDM.
A: Accoriding to our company's guidelines, we are obliged to answer only the first question in case of…
Q: For the RogueRaticate malware, please write a short paragraph based on the given background and…
A: The RogueRaticate malware, identified as FakeSG, represents a sophisticated cyber threat that…
Q: In this task, a disjoint sets data structure (that is, Union-Find data structure) should be…
A: Create UnionFind Class:Initialize a private integer array id to store the parent information of each…
Q: Demonstrate process control block with a neat diagram.
A: A software application known as an operating system (OS) serves as a bridge between computer…
Q: Question 20 Which of the following causes intrinsic or extrinsic losses in mismatched fiber? (Choose…
A: In the world of fiber optics, precise alignment and characteristics are critical for maximum…
Q: Write a C++ program to declare local variables of a = 5 and b = 10 as an integer data type. Perform…
A: Declare Variables:Declare two integer variables a and b.Logical AND:Print "Logical AND:".Compute and…
Q: a) Explain the following lines of code and state how you would modify the code to read the third…
A: In this question we have to understand the given microprocessor code and modify the code to read the…
Q: Discuss the considerations and challenges in developing cross-platform mobile What are the…
A: In this question we have to understand more about consideration and Challenges in developing…
Q: What would the appropriate psuedocode look like for a program that is finding the word "logic" in a…
A: The objective of the question is to provide a pseudocode for a program that uses binary search to…
Q: So Im new to swift and am trying to understand the basics. So I was watching a tutorial and have a…
A: The question is about understanding the basics of SwiftUI, a user interface toolkit that lets…
Q: Being "educated" within a technological system, according to Ellul, does not connote wisdom, but…
A: The objective of the question is to determine whether the statement about Jacques Ellul's view on…
Q: Why did Test Case 12 and 13 fail when I ran the code?
A: In this question we have to fix the program for a basic chat bot using Java program.Let's code and…
Q: o in this following line, which is the reference and which is the constructor? CellPhone purchaser…
A: A constructor is a unique technique of a category or shape in object-orientated programming that…
Q: lease create job description for the following Positions: • Owner • Co-owner • General Manager •…
A: In this question we have to create the job descriptions for the gvien positions:OwnerCo-OwnerGeneral…
Q: help
A: The first part of the question is asking about the main risk associated with a fixed rate mortgage.…
Q: Whats the diff between return & system.out.print in java?
A: Functions in Java are blocks of code that carry out a selected venture, and they're used to organize…
Q: 9. Identify the Idempotent Law for AND and OR. AND: xy yx and OR: x + y = y + x AND: xx¹ = 0 and OR:…
A: The Idempotent Laws in Boolean algebra state that applying the AND operation (conjunction) to a…
Q: Using Java: Create a basic chat bot. All input will come from the command line. If the user entered…
A: In this question we have to program for a basic chat bot using Java program.Let's code and hope this…
Q: Exercise 2: It is required to create a luck test program with the following specifications: Using…
A: The luck test program aims to generate random numbers for three posters, each displaying a number…
Q: Operating systems The quantum time is 48 msec and the time for switching between processes is 2…
A: Round robin scheduling is the most important CPU scheduling algorithm.Round robin scheduling using…
Q: Based on the narrative, you should construct a Context Level and Level 0 DFD describing your…
A: In the context of Kim's Flowers, the owner, Kim Burke, envisions a comprehensive database system to…
Q: What is the name of the algorithm which is used to find maximum sum subarray in an array? Kadane…
A: The objective of the question is to identify the correct algorithm used to find the maximum sum…
Q: Mention the most important problems in the Unix operating system
A: Unix is a powerful and widely used operating system that originated in the 1960s and 1970s at Bell…
Step by step
Solved in 4 steps with 2 images
- 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.Write a program in java Write a program that prompts the user to enter a number within the range of 1 through 10.The program should display the Roman numeral version of that number. If the number isoutside the range of 1 through 10, the program should display an error message.Write 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
- Body 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. 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.The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.
- Write a program that asks the user for two positive integers between 2 and 10 to use for the length and width of a rectangle. If the numbers are different, the larger of the two numbers should be used for the length and the smaller for the width. The program should then display a rectangle of this size on the screen using the character ‘X’. For example, if the user enters either 2 5 or 5 2, the program should display the following:Using the Java "language Q4) Write a program that asks the user to enter an integer from 20 to 99 in numeric form. The program should output the equivalent number in words For example, if an input of 58, the output is fifty eight.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önder
- 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 End2. Write a program for PIN Code / PUK Code verification for a cell phone. Initialize the PIN Code to 1234 and PUK code to 0123. Prompt the user to enter a PIN Code. If the PIN code entered is correct, display . If failed to enter the correct pin code, display and prompt the user to enter a PUK code. If the PUK code is correct, display . Use java programmingA 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.