Write a program that asks a user to input the height of triangle and draw a triangle that has the following pattern If the user enter height as 4 Then the triangle output is 1 2 1 2 3 1 2 3 4 We make the following assumptions • There is no space between the margin and 1 • There is no space after the last number on every line There is one space between numbers on every line • There is no newline at the end of last line • the height of the triangle is an integer between 1 and 9
Q: Why is data encryption critical to your business or organization?
A: answer is
Q: Define a real-time operating system with the help of examples. Describe how it differs from a standa...
A: Here we are talking about real-time operating systems and how they vary from traditional operating s...
Q: What are the three generations of advancement in wireless security that have taken place throughout ...
A: What is wireless security: Wireless security, which includes Wi-Fi networks, is the prevention of i...
Q: Demonstrate the prospects and benefits of a loT-based M2M solution by using a health band as an exam...
A: Demonstrate the prospects and benefits of a loT-based M2M solution by using a health band as an exam...
Q: State three ways to represent a Finite State Automaton (FSA).
A: Finite state Automaton is a state diagram which contains states and the transitions between the stat...
Q: Given an array containing Strings, you need to write a code to store them in a hashtable. Assume tha...
A: Start (total number of consonants*24 + summation of the digits) %9 Assume that the Strings contain a...
Q: --Problem -3 -Create a flowchart design that depicts the solving of the following problem: Asks user...
A: We are going to draw flow for the logic where we will read 3 integers and then will find out the lar...
Q: #include /* print Fahrenheit-Celsius table for fahr = 0, 20, ..., 300; floating-point version +/ ma...
A: In this question, A segment of code is given in C language that needs to be modified and printed The...
Q: Why is object-oriented programming getting so much press these days?
A: Introduction: OOP code is non-deterministic, which means that, unlike functional programming, we can...
Q: What elements play a role in determining whether or not a change should be implemented?
A: Introduction: The number of protons in an atom's nucleus defines its element, whereas the number of ...
Q: Write a program in python that generates 25000 random integers ranging from 1 to 10000. Insert these...
A: Here is the complete code for Dict, List, Linked list, Binary tree and Binary search tree.
Q: Assume you work for a database company that caters to people and small enterprises. This company wan...
A: Introduction: Enterprise databases are used by businesses and big organizations to handle their mass...
Q: Write a method that calculates the tax on a price. The price and tax percentage should be doubles. T...
A: the answer to the following question:-
Q: causing an overflow? How many values in the system have this property? Explain your
A: Adding 0 will not cause overflow
Q: Give two reasons why various software-based systems may fail in the same way.
A: Give two reasons why various software-based systems may fail in the same way.
Q: /* print Fahrenheit-Celsius table for fahr = 0, 20, ..., 300; floating-point main() { float fahr, ce...
A: Below the code
Q: What is regression testing?
A:
Q: Q.2. What do you understand by annotations? Explain is the role of annotations in JPA.
A: -> Annotations are meta data or data about the data -> types of annotations include explanatio...
Q: Isign Par de and Coquer (Greedy withs Knokal RIFeyd WaalcDya Phogramming desty
A: Answer is: Kruskal- Greedy technique Quick Sort- Divide and conquer Floyd-Warshall- Dynamic Programm...
Q: Explain why planning and distributing a mass-market system release is costly.
A: Introduction
Q: -Problem -2 When you execute your program it should ask user to input any number then check if the n...
A: The solution to the given problem is below. **Note: As programing language is not mentioned in the...
Q: What are the traits of a bastion host?
A: An APG mentions to an instrument issued by a economic institution (bank) to its consumer to secur...
Q: Your organisation wants to shift away from utilising desktop apps and instead use services to access...
A: While shifting the apps to the remotely instead of services, there might be many potential danger, l...
Q: Write a single pseudocode statement that indicates each of the following: a) Display the message "En...
A: First take the name as input. Print the name. Take the a,b,c as the variables take the input. Calcul...
Q: Project Name: Activity_3rdqtr activity_02 Class Name: • Create a Java program using while loop to di...
A: Step-1: Start Step-2: Declare a variable celsius and initialize with 5 Step-3: Declare a variable fa...
Q: Show why it's frequently required to expand and adapt components for reuse, using the example of a c...
A: Show why it's frequently required to expand and adapt components for reuse. Using the example. Take,...
Q: EXERCISE No.3 A student took four quizzes in a term and would like to compute their average. o know ...
A: Firstly, we will understand this in two ways:- a) if-else These have syntax as shown below:- if(con...
Q: Explain how the size of the organisation and the size of the programme have an impact on software pr...
A: Answer: The size of the organization and the size of the program have a great impact on software pro...
Q: Solve the maximal flow problem
A: Flow/Capacity / 6 { 6 is capacity} in the given Example
Q: Explain why distributed software systems are more difficult than centralised software systems, which...
A: The solution to the given question is: Distributed computer systems are much more complex than centr...
Q: Analyze the impact of 3D Printing in a global context
A: INTRODUCTION: Here we need to tell the impact of 3D Printing in a global context.
Q: Exercise a. What are the average percentages from the Facebook column in the example above? Create a...
A: ANSWER:-
Q: Using the input file of integers named randomNumbers.txt found in Module 6, write a Python program t...
A: Here is the appraoch : First create the method to read the file into list . Now open the file usin...
Q: Describe the nature and role of professional societies. If so, how does this relate to team and gro...
A: 2) Describe the nature and role of professional societies. If so, how does this relate to team and g...
Q: Provide an example of how you would go about validating a password security scheme for a programme y...
A: The Password validation program system value specifies whether a user-written program does additiona...
Q: 2. Write a JAVASCRIPT program to find the number of iterations of the loop given below. for (let i=2...
A: Write a JAVASCRIPT program to find the number of iterations of the given loop. Given Loop: for(let i...
Q: Why is data encryption critical to your business or organization?
A: Data encryption is a way of translating data from plaintext to ciphertext.
Q: Define a real-time operating system with the help of examples. Describe how it differs from a standa...
A: The real-time operating system is an operating system that guarantees a certain capability within th...
Q: What is the difference between redundancy and variety, and how do you explain t?
A: Introduction: When a position is no longer required, redundancy is a sort of dismissal. If your busi...
Q: Write a JavaScript code that manipulates the HTML Child Selector
A: In the given question you can add JavaScript code in an HTML document by employing the dedicated HTM...
Q: Using model-driven architectures, it is theoretically feasible to produce executable code from a hig...
A: Introduction: To examine some of the present roadblocks to the creation of fully automated translati...
Q: Why is it necessary to create a virtual base class while using hybrid inheritance?
A: Introduction: Inheritance by hybridization is a mixture of multiple inheritance and multilevel inher...
Q: You are supposed to construct a class named Matrix that shall contains private data member matrix:...
A: Solution of Question 1 Programming language used: C++ All solution steps are included in program cod...
Q: 7. Consider the CFG S-> SS+ISS*la. Derive the string aa+a* from the given CFG and construct between ...
A:
Q: Aside from the hardware vs. software exceptions, what else?
A: INTRODUCTION: The majority of the operating system's basic exceptions are hardware-defined exceptio...
Q: Using Java programming language using the name: “Exercise2.java” that meets the following requiremen...
A: The complete solution is given below:-
Q: Consider the following set of processes, wit given in milliseconds: Process Burst Time Priority P1 7...
A: We are going to use priority based scheduling for scheduling the jobs, for ex. Process 3 has the hig...
Q: Your organisation wants to shift away from utilising desktop apps and instead use services to access...
A: Three risks that might arise while moving from Desktop applications to remote services: -> Securi...
Q: rk? What is it used in? Is it helpful for hacking? do not copy answers Otherwise i will gid
A: What are dorks? What is a Google dork? A Google Dork, also known as Google Dorking or Google hackin...
Q: R1 be ce do 1에 21 3-. 2 4 700 RO a어 b c에. 1어 2- 2. 2어 1에 2-. 31 1에 2-.+ 4. For each of the following...
A: 4. a. R0 ⋈ R1 We can perform a Natural Join only if there is at least one common attribute that exis...
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images
- Write a program that reads from the user a character ('q' or 'c'). If the character is 'c', the program reads from the user the radius rof a circle and prints its area. • If the user enters 'q', the program asks the user to enter the length and width of a quadrilateral. We assume the quadrilateral is either a square or rectangle. You should print if the quadrilateral is square or rectangle. • Otherwise, it prints "Wrong character" PS: Use the following formulas: area of circle=3.14*r Sample Run1: Enter a character (q or c): q Enter the Length and Width: 80 150 |It is a rectangle Sample Run2: Enter a character (q or c): q Enter the Length and Width: 80 80 It is a square Sample Run3: Enter a character (q or c): c Enter the radius: 2 The area of the circle is 12.56 Sample Run4: Enter a character (q or c): d Wrong characterWrite a program that asks a user to input the height of triangle and draw a triangle that has the following pattern If the user enter height as 4 Then the triangle output is 1 1 2 1 2 3 1 2 3 4 We make the following assumptions There is no space between the margin and 1 There is no space after the last number on every line There is one space between numbers on every line • There is no newline at the end of last line the height of the triangle is an integer between 1 and 9write a program in python Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. The program should then display whether their answer was right or wrong, and accumulate the right values. After the 10 questions are asked, calculate the average that was correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format. In addition to any system functions you may use, you might consider the following functions: A function that allows the student to enter their name. A function that gets two random numbers, anywhere from 1 to 500. A function that displays the equation and asks the user to enter their answer. A function that checks to see if the answer is correct and accumulates the number correct. A function that calculates the…
- In Python Write a program that computes the fuel efficiency for a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about a series of legs. For each leg, the user enters the current odometer reading and the amount of gas used (separated by a space). The user signals the end of the trip with a blank line. The program should print the miles per gallon achieved on each leg and the total MPG for the tripAirline 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 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:
- In this assignment you will write a program that shows the valid moves of chess pieces. Your program will draw a board with 64 squares using the traditional layout, next ask the user to choose a move, and then, depending on the user's choice, redraw the board with the selected chess piece and its valid moves. Please see the examples of valid moves of chess pieces and the traditional chess board layout below:using C language A parking garage charges a $2.00 minimum fee to park for up to three hours andan additional $0.50 per hour for each hour or part thereof over three hours. Themaximum charge for any given 24-hour period is $10.00. Assume that no car parksfor longer than 24 hours at a time. Write a program that will calculate and print theparking charges for each of three customers who parked their cars in this garageyesterday. You should enter the hours parked for each customer. Your programshould print the results in the below format, and should calculate and print thetotal of yesterday's receipts. The program should use the functioncalculateCharges to determine the charge for each customer.Write a program that reads student scores, gets the best score, andthen assigns grades based on the following scheme:Grade is A if score is ≥ best -5Grade is B if score is ≥best -10;Grade is C if score is ≥best -15;Grade is D if score is ≥best -20;Grade is F otherwise.The program prompts the user to enter the total number of students, and thenprompts the user to enter all of the scores, and concludes by displaying the grades.Here is a sample run: Enter the number of students: 4 ↵EnterEnter 4 scores: 40 55 70 58 ↵EnterStudent 0 score is 40 and grade is FStudent 1 score is 55 and grade is CStudent 2 score is 70 and grade is AStudent 3 score is 58 and grade is C
- Write a program will then ask for the prelim grade, midterm grade and final grade of the student. The program should only accept grades 100 and below. After getting the three grades, the program should compute for the semestral grade. The computation of the semestral grade is as follows: 30%*PrelimGrade + 30%*midtermgrade + 40%finalgrade After inputting all the grades, the screen should clear again and will proceed to another screen. Use C ++ program, cin, cout, and iostream.The Café Noir Coffee Shop wants some market research on its customers. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 10 or more than 110), the program reprompts the clerk continuously. When the clerk enters fewer than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value onthe third attempt, an error message is displayed and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also…Write a program that reads from the user a character (*q' or 'c'). If the character is 'c', the program reads from the user the radius r of a circle and prints its area. If the user enters 'q', the program asks the user to enter the length and width of a quadrilateral. We assume the quadrilateral is either a square or rectangle. You should print if the quadrilateral is square or rectangle. Otherwise, it prints "Wrong character" PS: Use the following formulas : area of circle=3.14*r? I