Q3. Write a C program that displays the menu shown in the example run, to the user, with the operations following the menu selection. • The menu will be shown continuously until such time that the user inputs 3 for exit. • If anything but the exit (the 3rd) option is chosen, then the program will generate a random number between 3 and 9, and then use this number to determine how many rows of the triangle of choice to draw. • If right triangle is chosen, then draw a triangle aligned to the right hand side, as shown in example run. • If isosceles triangle is chosen, then draw a triangle as shown in the example run below. Project Name: LG9_Q3 File Name: Q3.cp
Q: Get SNR-dependent graphs of BER and interruption probabilities for each state by doing receiver dive...
A: The Answer for the given question in step-2 in written format.
Q: Without giving the physical path how you can connect the database
A: Without giving path In Visual Studio Code, press Ctrl+Shift+P (or F1) to open the Command Palette....
Q: Write a C function satblk() to implement the Actuation Saturation Model in the picture below as u = ...
A: According to the question, we have to write a C function to implement the Actuation Saturation Model...
Q: In a two’s complement system, what value can be added to any other value without causing an overflow...
A: A two's-complement number system encodes positive and negative numbers in a binary number representa...
Q: Which of the following uses the parameter entity? a. DTD file O b. XML file c. jQuery d. XSL file
A: According to the question the DTD file use for makes the definition of the data to present in Xml fo...
Q: Is cloud computing capable of alleviating all of a company's concerns regarding its IT infrastructur...
A: Cloud computing and remote computing is one of the technologies which we are going to use in future ...
Q: What is the entire form of the LINQ query language?
A: Introduction: LINQ Query Language: LINQ (Language Integrated Query) is uniform query syntax in C# an...
Q: A read pointer to the location in the file where the next read is to take place must be maintained w...
A: Introduction: Here are some suggestions on how to create, gather, and use pointers with your reader....
Q: Consider the time displayed on a digital clock( 07:30:00) with 3 main components hours, minutes and ...
A: public class q3() { private int hour; private int minute; private i...
Q: A number of criteria must be considered while forming a software team. What methods do you use to pr...
A: INTRODUCTION: What factors must be considered when forming a software development team?How do you as...
Q: find the optimal BST for the following keys and frequencies. keys |1|2|3|4 Freq |4|6|2|3
A:
Q: Define the criteria that test-driven development must possess in order to succeed. For instance, how...
A: Answer: Test Driven Development (TDD) is a software development methodology that focuses on establis...
Q: Write a program that prompts the user to enter an integer value in an array, and user can also print...
A: I give the code in Java along with output and code screenshot
Q: True or False? An action query is accomplished by putting AS and an alternative name after the table...
A: We are given a statement in sql query and we are going to see if the statement is correct or not.
Q: Write Programm using oop in c++ Some form of simplified physics simulation, e.g. multiple interactio...
A: Given, Some form of simplified physics simulation, e.g. multiple interactions in an ideal gas,
Q: What is the entire form of the LINQ query language?
A: Introduction: In C# and VB.NET, LINQ (Language Integrated Query) is a standard query syntax for gett...
Q: conditional structures Create a program that will do the following: Press 1 to ADD Press 2 to Subtr...
A: C++ program to calculate the addition , subtraction ,multiplication, division
Q: It holds that (1000)2 × (0.001)2 = 1. %3D
A: Solution 1) 2: The given both multiplicand and multiplier binary numbers (base 2) can be converted ...
Q: Consider the non homogeneous ODE with a nonlinear term called b: dy dt2 dy + 2Aw- + w?y (1 + by²) = ...
A: Matlab Program: clear; clc; close all; w = 3; lamda = 1/36; f0 = 3; wf = [1, 2.9]; y0 = [0 0]; tsp...
Q: Explain code translation in a few words.
A: Code translation Code translation is a piece of code that are written by the developers in programmi...
Q: It has been attached to your new MacBook Pro with a storage device that the operating system does no...
A: Introduction: A storage device that the operating system does not recognize has been connected to yo...
Q: What exactly is routing and how does it work? How do you tell the difference between two popular rou...
A: Introduction: The process of picking a route for traffic inside a network or across many networks is...
Q: Which of the following statements are true about the preamble field in Ethernet frame. Note: May hav...
A: The correct option will be Option(a), Option(b) and Option(d) Explanation:- The preamble consists o...
Q: The software development life cycle is represented using model diagrams.
A: Introduction
Q: What are the inputs to Analysis Modelling?
A: Analysis Model is a specialized portrayal of the framework. It goes about as a connection between fr...
Q: Software engineers must help clients gather requirements efficiently. To achieve the criteria, your ...
A: Introduction: A software engineer is a person who designs, builds, maintains, tests, and reviews com...
Q: The standard deviation can be calculated with a short cut if the list contains only two different nu...
A:
Q: What is the entire form of the LINQ query language?
A: LINQ is also known as Language-Integrated Query.
Q: What types of systems are most likely to benefit from agile approaches to development, and for what ...
A: Introduction: Agile methodologies are a sort of project management technique.
Q: When it comes to cloud security, what is the "shared responsibility" paradigm like?
A: Introduction: A shared accountability paradigm is a kind of cloud security model. The paradigm estab...
Q: When compared to other views, what distinguishes materialised views from the rest?
A: Introduction: View vs Materialized View: Key Difference Views are not physically kept on disc, unlik...
Q: What is the basic idea behind using a prototype approach while creating a software product?
A: Introduction: Prototyping is a system development process in which a prototype is developed, evaluat...
Q: Describe how a computer can produce an incorrect answer when performing numerical computations even ...
A: Actually computer can provide the accurate data, and its calculations are accurately produce results...
Q: Use the network diagram for the following questions. Repeaters, bridges, and switches are not counte...
A: We need to answer questions based on the given network diagram.
Q: Write a sample code for The CSS Universal Selector
A: What are universal selectors: CSS universal selectors can be used to pick any element in an HTML doc...
Q: Explain the digit string in a few words.
A: Introduction: A digit string is defined as a string that has digits.
Q: What is the significance of data security? After that, talk about how to deal with threats like thes...
A: here we have given a brief note on significance of data security and also the process to deal with t...
Q: convert dhe given binany numben into decimal number System. humker : (110-011 = (? ), humber %3D
A:
Q: Can I write code in c++ use stack in SLL without use ( class) And add a function containing ( pri...
A: C++ code using stack for SLL.
Q: Explain how an 28F400 memory chip can switch from 8 bit data bus to 16 bits data bus without effecti...
A:
Q: Use the following state diagram and create the state table for a synchronous to detect the sequence....
A: Below is the answer to above question. I hope this will be helpful for you...
Q: Who defines user needs and what does a system require?
A: Introduction: A requirement specification document is created by combining the user's requirements a...
Q: Q-L. What is at put gf this logic gatu? A F=?
A:
Q: Write a java program to take three ints, a b c, print true if 6 is greater than a, and c is greater ...
A: Algorithm: Step1:Start. Step2:Read a,b,c values are input. Step3:Compare three values in the given ...
Q: What is the Conceptual Framework for Cybercrime? Do you have any references for your response?
A: Introduction: According to internet theorists, cyberspace provides for near-instant connections betw...
Q: Explain the type of security attacks that can be performed by hackers, and determine the security me...
A: A security attack is an unauthorized attempt to steal, damage, or expose data from an information sy...
Q: is the reduction, in decibels, to achieve a specified BER of an error- correcting coded system compa...
A:
Q: What advantages does runtime polymorphism have over compile-time polymorphism? What is the differenc...
A: Polymorphism means many forms Compile-time polymorphism means static polymorphism which is using the...
Q: 6.9.1: Objects. ACTIVITY 372660.2407286.qx3zay7 Jump to level 1 1 Define a method named orderOfAppea...
A: Algorithm: 1.Define required variables 2.use for loop and if conditional statements 3.print the out...
Step by step
Solved in 4 steps with 3 images
- In C write a simple scientific calculator program as follows:Display a menu of options according to table.Ask the user to enter a menu option (upper and lower case will work).If menu option is not valid, display msg “invalid option” and repeat parts 1 and 2. (use do-while)For “add” option ask the user to enter two numbers, store as double and display sum.For subtract option ask the user to enter two numbers, store as double and display difference.For multiply option, same as above.For divide option, same as above (test the denominator, if zero, display an appropriate msg).For squared, ask the user to input a number and output the square of the number.For square root, check if the number is negative and output appropriate msg, otherwise, output solution.For factorial, ask for a number an output factorial ( 5! = 5*4*3*2*1). (use for loop)For absolute value, output the absolute value of a given number.For greater integer, round the number to an integer greater than number.For leap year,…Create a menu system program in c++ that asking an input based on the choices below. MENU SYSTEM: A - Sensitivity Analysis B - NESTED LOOP D - Exit If the input is A then the program will compute the Sentitivity Analysis: ) * 5. If the input is B then the program will display the pattern like right angle triangle using an asterisk based o n the input. Sample Output: Input number of rows: 5 * ** *** **** ***** Input number of rows: 4* ** *** **** Function: Display Menu System – 2nd way Sensitivity Analysis – 3rd way Nested Loop – 1stth wayIn Python Propose a menu-driven program that calculates the total price for a picnic lunch that the user is purchasing for a group of friends. The user is first asked to enter her budget for the lunch. She/he has the option of buying apples, cheese, and bread. Set the price per apple, price per pound of cheese, and price per loaf of bread in constant variables. Use a nested repetition/selection structure to ask the user what type of item and how much of each item she would like to purchase. Keep a running total of the items purchased inside the loop. Exit the loop if the total has exceeded the user’s budget. In addition, provide a sentinel value that allows the user to exit the purchasing loop at any time Either Pseudo code or flow chart
- IN c Airline has just purchased a computer for its new automatic reservations system. The head has asked you to program the new system. You’ll write a c program to assign seats on each flight of the airline’s only plane (capacity: 10 seats). Your program should display the following menu of alternatives:Please type 10 for "first class"Please type 20 for "economy"If the person types 10, then your program should assign a seat in the first-class section (seats 1–5). If the person types 20, then your program should assign a seat in the economy section (seats 6–10). Your program should then print a boarding pass indicating the person's seat number and whether it’s in the first class or economy section of the plane.Use a single-subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 00 to indicate that all seats are empty. As each seat is assigned, set the corresponding element of the array to 1 to indicate that the seat is no longer…The Fibonacci sequence is: 0, 1, 1, 2, 3, 5, 8, 13, … The first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms. That is: Fib[n] = Fib[n - 1] + Fib[n - 2]. Using this information, write a C/C++ program that calculates the n th number in a Fibonacci sequence, where the user enters n into the program interactively. For example, if n=6, the program should display the value 5. See the example output in Figure 2.1.Design a program that asks the user to enter a string• The string will then be displayed back to the user• This is followed by determining the number of• alphabetic characters• numeric characters• lower_case letters• upper_case letters• whitespace characters• and then displaying them• The user should be given additional chances to enter additional strings• and each time a string is entered, the above process is to be performed• The inputting is to stop, when the user enters "end" as the input string• At that point, total number of•▪ alphabetic characters▪ numeric characters▪ lower_case letters▪ upper_case letters▪ whitespace characters• are to be displayed and the program terminate
- Write a program that calculates the amount of money a person would earn over a period of time I f his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies.Write a menu driven c++ program for student managements system, in which you have to take input student’s name, reg_num and his subjects marks (atleast 3). Now take choice from user to print his maximum marks from all subjects(e.g. user enters 50,80,75 maximum marks will be 80), minimum marks(e.g. minimum marks will be 50) from all subjects, average(e.g. (50+80+75)/3) and percentage ( e.g. (total*100)/300). (Note: Use else-if statements)You are assigned to create a simple ordering Menu System. Create a C++ program by choosing a menu of fast food. Sample below are the price and the list of food items. Short Order Miryenda 1 – Fries P 30.00 2 – Spaghetti P 30.00 3 – Burger P 30.00 4 – Fried Chicken P 60.00 5 – Coke Float P 30.00 6 – Coffee Float P 30.00 7 – Total Bill 8 - Exit Choose your order: 1 You have order Fries, how many order do your want? __ Do you want to order another food? (Yes/No) __ (if no, compute for the Total amount, if Yes go back to main menu, order another and the add the amount to the previous transaction.) Official Receipt You have ordered the following: Order 1: Order 2: Total amount: __…
- You are assigned to create a simple ordering Menu System. Create a C++ program by choosing a menu of fast food. Sample below are the price and the list of food items. Short Order Miryenda 1 – Fries P 30.00 2 – Spaghetti P 30.00 3 – Burger P 30.00 4 – Fried Chicken P 60.00 5 – Coke Float P 30.00 6 – Coffee Float P 30.00 7 – Total Bill 8 - Exit Choose your order: 1 You have order Fries, how many order do your want? __ Do you want to order another food? (Yes/No) __ (if no, compute for the Total amount, if Yes go back to main menu, order another and the add the amount to the previous transaction.) Official Receipt You have ordered the following: Order 1: Order 2: Total amount: __…You are assigned to create a simple ordering Menu System. Create a C++ program by choosing a menu of fast food. Sample below are the price and the list of food items. Short Order Miryenda 1 – Fries P 30.00 2 – Spaghetti P 30.00 3 – Burger P 30.00 4 – Fried Chicken P 60.00 5 – Coke Float P 30.00 6 – Coffee Float P 30.00 7 – Total Bill 8 - Exit Choose your order: 1 You have order Fries, how many order do your want? __ Do you want to order another food? (Yes/No) __ (if no, compute for the Total amount, if Yes go back to main menu, order another and the add the amount to the previous transaction.) Official Receipt You have ordered the following: Order 1: Order 2: Total amount: __ Cash Payment Mode :…Machine Problem:Write a Java or C++ program that will display the given menu: -----A Simple 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 Book (optional)10. 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…