Question 1 Write a c program that allows to calculate z = Ix-yl with x, y, z declared as integer and x and y initialized with values of your choice. Use for that a conditional structure : if.....; else ; Type your answer Question 2 --/0 Type your answer --/0 Write a c program that allows to calculate z = |x-yl with x, y, z declared as integer and x and y initialized with values of your choice. Use for that a conditional structure: z = (condition)?(result1):(result2);
Q: Draw System Development Life Cycle (SDLC) diagram.
A: In this question we have to draw the SDLC (System Development Cycle) Let's code
Q: Describe the structured analysis approach and object-oriented approach Mention at least one…
A: The answer to the question is given below:
Q: Write a Matlab function that takes a gray scale image as a parameter and plots the histogram of it…
A: Here I explain which function is used to do that task.…
Q: What is a benefit of using a lookup table? a.) They resolve weak relationships. b.) They build in…
A: Lookup table:- In order to approximate a mathematical function, a lookup table is an array of data…
Q: Given the user input in this format: 5 bwwww wwwww bbwwb bbbbb wbbww Where size = 5, and the…
A: The question has been answered in step2
Q: Explain the properties that satisfy Message Authentication Code (MAC).
A: A message is a communication or statement that is passed from one person to another person or group.…
Q: What is software life cycle model.?
A: The above question that is what is software life cycle model is answered below step.
Q: Which node is the root of this tree ? K 單選: O a. M O b. G с. А d. D O e. K f. J g. C E L B F LL A с…
A: Answer the above question are as follows
Q: Find the index of the first negative number
A: I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: 2. What is the output by each of the pseudocode segments a a = 1 b=2 c = 5 while a f endwhile d =…
A: NOTE: Since no programming language is mentioned. Therefore answering in Python language. We have…
Q: Comment on scaling parallel merge sort.
A: Sorting is a "benchmark test" that is often run on very large parallel clusters, but the purpose of…
Q: Write a scenario or situation that shows attacks that affected a system, then suggest Security…
A: A system user received a ransom note informing them that their files had been encrypted. The note…
Q: Write a scenario or situation that shows attacks that affected a system, then suggest Security…
A: The answer to the question is given below:
Q: What is the degree of the following Tree ?
A: "degree" of any node is the number of sub nodes a node can have. The degree of any tree or a graph…
Q: Verilog Question Lets say i have a module that outputs a 32 bit number. I want to grab bits 8-14 or…
A: Verilog is used to simplify the process and make the Hardware Description Language (HDL) more robust…
Q: Q5: A periodic signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz. What is the lowest…
A: QUES 5) A periodic signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz. What is the…
Q: User activities has long been a top reason for cyber security breaches in business. How would you…
A: Introduction Cyber Security:Cybersecurity is the process of preventing hostile assaults on…
Q: Based on the following System log at time of system crash, answer the questions that follows:…
A: Answer: start transaction, T start transaction, 12]start transaction, 12]start transaction, 12]…
Q: What is and what are the functions of the biliary tree
A: Answer the above question are as follows
Q: Discuss class diagrams.
A:
Q: Write Python code that asks the user to enter a text, then your code should print each word and how…
A: def main(): # taking user input of the string line = input("Enter string: ") # break the…
Q: 6 0 4 6 1 4 3 2 8 2
A: Solution - Given the code helps you to print the distance output from the source when…
Q: 1. Design the logic for a program that outputs every number from 1 to 20.
A: As I have read the guidelines I can provide answers to only 1 part of the questions in case of…
Q: Exercise 4A Write functions to perform the following tasks efficiently. Do not change the function…
A: Code Output
Q: What is the step by step procedure for the seven segment display birthday problem ?
A: What is the step by step procedure for the seven segment display birthday problem answer in below…
Q: Write a program that calculates the surface area of a hexagonal prism (figure below) which is given…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: (i) Use a tree to test whether the following wff is a tautology. If it is not, then read off from…
A: Given, The well-formed formula (wff): ∃x(Gax ↔ (Gax ∧ Gxb)) The complement of wff: ¬∃x(Gax ↔ (Gax ∧…
Q: Discuss class diagrams.
A: The class diagram represents the static view of the system. The class diagram is not only used for…
Q: Title System Requirements You are asked to build an application used in Hotels by hotel's…
A: The Code Given Below Is For The Customer Info Module package I3.UI; import…
Q: me that you have a wired network. Explain how you would convert this system to a fiber optic system
A: Answer:
Q: Is it conceivable for a compiler to generate output for the micro architecture level instead of for…
A: 1. Microarchitecture is thinking about design as programming problem, where each instruction at the…
Q: what is structure chart.
A: What are structure charts? In software engineering a structure chart shows the breakdown of a…
Q: I am still struggling to complete the assignemnt. it fails one of the tests; 2:Compare…
A: The modified program is given below:
Q: Write an ARM assembly program in Keil to check whether an Nx N matrix is a magic square. A magic…
A: The c++ program is given below:
Q: Examples 515 memeSum(26, 39) // 2+3 = 5, 6+9 = 15 // 26 + 39 515 = memeSum (122, 81) → 1103 // 1+0=…
A: In this problem, we need to solve the given statements Logic - for(let i = 0; i < a.length;…
Q: 3. Two 7-digit integers (leading zeros allowed) are considered to be equivalent if one can be…
A:
Q: In pyton Define a function drawCircle. This function should expect a Turtle object, the…
A: According to the information given:- We have to follow the instruction in order to get desired…
Q: Q2: What are the pros and cons of cloud service?
A:
Q: Hello! Please help me with my Java hw The three java files (source code) pasted below associated…
A: Why should you use Java? Java is compatible with a variety of platforms (Windows, Mac, Linux,…
Q: Examples memeSum (26, 39) → 515 // 2+3 = 5, 6+9 = 15 // 26 + 39 = 515 memeSum (122, 81) → 1103 //…
A: Algorithm --> Take input from users. Now use the below logic logic - for(let i = 0; i <…
Q: What entities constitute a full-service Kerberos environment?
A:
Q: What does the US Supreme Court decision in MGM v. Grokster mean for the development of future…
A: Let's see the answer:
Q: Write a C program that will display text on any terminal. The program should first prompt the user…
A: CODE(Find explanation in comments): // C program to write user input to terminal…
Q: Explain why the Unified Modeling Language (UML) is important to use as a standard for creating…
A: Unified Modeling Language (UML): UML is a modeling language, which is used to visualize the design…
Q: In GSM, a "TDMA frame" is composed of eight distinct time slots. Each GSM time slot is 577 s…
A: Eight timeslots and 577 microseconds are available in each time slot in a TDMA framework. This will…
Q: Prepare a report about the Unified Modeling Language (UML) and the UML tools. Explain what is the…
A: UML is as integrated set of diagrams that is used for specifying, visualizing, constructing, and…
Q: What is fuzzy approximate reasoning and its models.
A:
Q: Describe the principle steps in the analysis phase and list the major deliverables
A: Answer the above question are as follows
Q: Java programming 1. a) Write a Java code which gives the value of (1+(1/n))^n for n= 2,4,...,2^14.…
A: Program a public class ProgramA { public static void main(String args[]) { double value = 0;…
Q: When analyzing areas surrounding (or ‘near’) a location (such as a school) for demographic…
A: Buffer analysis: Buffering usually creates two areas: one area that is withina specified distance to…
Step by step
Solved in 2 steps with 3 images
- C++ only Upvote for your own work and correct answer/ Downvote for copying the answer from a different website. It must be in C++ and it must be a working code. It needs to follow the required directions for example: MAKE SURE IT POINTS OUT EVERY TIME THE STATEMENT IS INVALID IF IT IS INDEED INVALID. Thank You. Assignment: Create a C++ program that can test the validity of propositional logic. Remember, a propositional logical statement is invalid should you find any combination of input where the PROPOSITIONAL statements are ALL true, while the CONCLUSION statement is false. Propositional Statements: If someone has a rocket, that implies they’re an astronaut. If someone is an astronaut, that implies they’re highly trained. If someone is highly trained, that implies they’re educated. Conclusion Statement: A person is educated, which implies they have a rocket. Your output should declare the statement to either be valid or invalid. If it’s invalid, it needs to state which combination…C++ only Upvote for your own work and correct answer/ Downvote for copying the answer from a different website. It must be in C++ and it must be a working code. Thank You. Assignment: Create a C++ program that can test the validity of propositional logic. Remember, a propositional logical statement is invalid should you find any combination of input where the PROPOSITIONAL statements are ALL true, while the CONCLUSION statement is false. Propositional Statements: If someone has a rocket, that implies they’re an astronaut. If someone is an astronaut, that implies they’re highly trained. If someone is highly trained, that implies they’re educated. Conclusion Statement: A person is educated, which implies they have a rocket. Your output should declare the statement to either be valid or invalid. If it’s invalid, it needs to state which combination of inputs yielded the statement invalid. MAKE SURE IT POINTS OUT EVERY TIME THE STATEMENT IS INVALID IF IT IS INDEED INVALID.C++ - No library functions like atoi Write a machine language program to output your first name on the output device. Submit your "machine code" followed by a 'zz.' An example of the machine code to output "hello" is shown below. This is an example of what a machine language submission would look like: 50 00 48 50 00 65 50 00 6c 50 00 6c 50 00 6f 00 zz
- C++ Programming Exercise: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first month's interest on $1,000 is 1000 X 0.006 = 6. Becuase the payment is $25 and the interest of the first month is $6, the payment toward the principal amount is 25-6 = 19. This means after making the first payment, the loan amount is 1,000-19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 X 0.006 = 5.886,…Making choices with the conditional expression LISP provides a control structure called the conditional expression that works like an if statement in C++. It tests a condition and runs either a consequent expression or an alternative expression, depending on the truth value of the condition. The entire conditional expression then returns the value of the consequent or the alternative expression. Type the following conditional expression at the interpreter's prompt: |(if (> 4 3) 4 3) What value is returned? Now we'll define a function that solves a general problem, finding the maximum of two numbers, using the following conditional expression: |(define (maximum x y) (if (> x y) y)) Test this function with several pairs of numbers.how to do this in in C++ Language Zodiac Sign Identifier - Ask the user's birth month and birth day and return the corresponding Zodiac Sign he/she belongs: Evaluate the user's birth month and day by checking the following: If born from, Mar 21 to Apr 19 - Aries Apr 20 to May 20 - Taurus May 21 to Jun 20 - Gemini Jun 21 to Jul 22 - Cancer Jul 23 to Aug 22 - Leo Aug 23 to Sep 22 - Virgo Sep 23 to Oct 22 - Libra Oct 23 to Nov 21 - Scorpio Nov 22 to Dec 21 - Sagittarius Dec 22 to Jan 19 - Capricorn Jan 20 to Feb 18 - Aquarius Feb 19 to Mar 20 - Pisces Example: What is your month of birth? 1 - January (31 days) 2 - February (27 days, if Leap Year 28 days) 3 - March (31 days) 4 - April (30 days) 5 - May (31 days) 6 - June (30 days) 7 - July (31 days) 8 - August (31 days) 9 - September (30 days) 10 - October (31 days) 11 - November (30 days) 12 - December (31 days) Please enter your birth month: 8 Please enter day of your birth: 16 Please enter your year of birth: 1997 Your birthday is…
- Solve the problem in C++ (Assign grades) Write a program that reads student scores, gets the best score, and then assigns grades based on the following scheme: Grade is A if score is >= best – 10; Grade is B if score is >= best – 20; Grade is C if score is >= best – 30; Grade is D if score is >= best – 40; Grade is F otherwise. The program prompts the user to enter the total number of students, then prompts the user to enter all of the scores, and concludes by displaying the grades. Sample Run Enter the number of students: 4 Enter 4 scores: 40 55 70 58 Student 0 score is 40 and grade is C Student 1 score is 55 and grade is B Student 2 score is 70 and grade is A Student 3 score is 58 and grade is BEmployees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF), and Global Insurance (GI): Basic Salary Range ($) Tax Rate SPF GI 0 – 1999 0 % 11 % 1 % 2000 – 2999 5 % 12 % 2 % 3000 – 4999 8 % 13 % 5 % Above 5000 10 % 17 % 8 % Based on the table given, you are required to write a C programming for a system that accepts the employee’s basic salary, and generates the net salary after the respective deductions as described aboveProgramming Assignment 1: Particular employees earn $60000 annually. Write a program in C++ that determines and displays what the amount of his gross pay will be for each pay period if he is paid twice a month (24 paychecks per year) and if he is paid bi-weekly (26 checks per year).
- Write a C++ program Design and write a program that will accept a sentence as input, reverse the words and print the sentence out backwards. The individual words should not be reversed as we did in class. The words in the sentence should be in reverse order. Example Input: The movie was not very true to the book.Output: book the to true very not was movie The (NOTE: You may keep the period at the end if you want to.) Turn in your design (Flow Diagram) along with your code and screen shots. You can use a program like PowerPoint or some other drawing package for this or you can draw it by hand then take a picture and upload the picture along with your code and output. The following problem requires the file dictionary_four_letter_words.txt. (unable to attach the file, but copied some of it below) aahs aals abas abba abbe abed abet able ably abos abri abut abye abysaced aces ache achy acid acme acne acre acta acts acyl adds adit adosadze aeon aero aery afar agar agas aged agee ager ages…PROBLEM STATEMENT Build a complete C++ program for lecturers to keep track of students' assessments. This program should be able to find the sum, average mark and total percentage for each assessment. Display the assessment type, percentage of each assessment, total mark obtains by the student and status of the result. You can use this range to classify status of the result. 0 to less than 50 Re-do/Retake this course 50 to less than 70 Good 70 to 100 Excellent Other values Not availableQuarterly Sales Create a program in c++ , that gets quarterly sales from a user and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters.