Exercise 4: Write a program that determines the distance to a lightning strike based between the flash and the sound of thunder. The speed of sound is approximately 1. mile is 5280 ft.
Q: process from the notes} to con
A: Given Use the !{process from the notes} to construct a NFA N_5 that recognizes the @lang L(N_1)*. U...
Q: IN C++ USING CLASS Write a program in C++ that implements the game tic-tac-toe: Tic-...
A: Given The answer is given below. include<bits/stdc++.h> using namespace std; #define COMPUTER1...
Q: Flow control is one of the main building blocks that determines how a program should run. Ghana Coco...
A: Controlling the flow of information (data): Flow management is the activity of controlling the pace ...
Q: SIX If the two values are identical, write the word "MATCH" otherwise, indicate whether the "TOP" or...
A: code to compare two numbers
Q: Which one of the following is/are true ? e" +n = 0 (n³) V(n) + n = 0 (n log (n)) n* n * n +n* 2 = N ...
A: The answer is
Q: What is the time complexity of the following function- 5T(n/5+50)+n,T(1)=1 (a) θ(50logn) (b) θ(n5...
A: What is the time complexity of the following function- 5T(n/5+50)+n,T(1)=1 (a) θ(50logn) (b) θ(n...
Q: Exercise 2: Write a program that calculates the cost per square inch of a circular pizza, given its ...
A: import java.util.*;import java.text.*;public class Main { public static void main(String[] args) { ...
Q: Create a C program that can identify the memory usage using the undefined behavior statement
A: Program c : Undifened behavior:.
Q: 1. Files and folders; we all use them today on our varying computer devices. Discuss two reasons to...
A: Given The answer is given below,
Q: Script 1: create a JavaScript program that defines, as an array, a list of 10 of your favorite thing...
A: Note: I have given answered as asked in the question Solution: forEach: The name itself says each wh...
Q: What trade-offs do you have to make when building enormously scattered data environments?
A: A trade-off is characterized in economics as a "opportunity cost." For instance, you may take a day ...
Q: Write an assembly language program (simply type it in the note pad and upload here) to calculate and...
A: Question 1. Write an assembly language program (simply type it in the note pad and upload here) to c...
Q: Design a program in assembly language emu 8086 that provides the following features of the Library ...
A: Check further steps for the answer :
Q: What are the different stages of the overall structural testing procedure?
A: Given Write about different level of structural testing procedure.
Q: Examine the advantages and disadvantages of various system models.
A: Introduction: System modeling is constructing abstract models of a system, each of which gives a dif...
Q: program that prints out first 40 numbers divisible by 3
A: here in this program we will learn python code to print first 40 numbers divisible by 3. in the foll...
Q: How is the output for frequency of a DDS changed?
A: DDS (direct digital synthesis )is used for creating waveforms while digital to analog conversion.
Q: Use a fixed-point iteration method to determine a solution accurate to within 10^2 for x3 − x − 1 = ...
A:
Q: 2. What order is an algorithm that has as a growth-rate function (big -O) a. 8 x n3 – 9 xn b. 7 x lo...
A: a) f(n) = 8n^3 - 9n The above function represents a polynomial. The term with the highest degree is ...
Q: What is the definition of an inline function?
A: Introduction: An inline function is one for which the compiler instead of constructing a distinct se...
Q: The organization and connectivity of a computer's many components are referred to as its architectur...
A: The way hardware components are linked to build a computer system is referred to as computer archite...
Q: SRAM is typically used for on-chip memory because: SRAM is faster than DRAM. SRAM uses fewer transis...
A: SRAM is faster than DRAM.
Q: i = 0, j = 0 For(a = 0; a*a < n; a++){ For(b = 0; b < n; b *= 2){ For(c = 0; c*c...
A: For all intialization 1 time complexity Like i=0,j=0, c,a,n And statement inside for loop also sam...
Q: Write a Java program to find the second highest number from an user entered array of integers.
A: JAVA Program: import java.util.Scanner;public class Highest{ public static void main(String[] arg...
Q: y Queue that uses defensive design
A: given- Draw a state machine specifying the operations for a Priority Queue that uses defensive desig...
Q: 2. Please sort the input array [3 -10 9 21 -7 8 14 1] using QUICKSORT algorithm to output an increas...
A: Divide and Conquer approach is followed in the Quicksort algorithm, which helps in sorting. Subarray...
Q: What the different between java and dart in the object oriented?
A: Java is a concurrent, class-based, object-oriented, language specifically designed to have as few im...
Q: Write a Java program to find the second highest number from an user entered array of integers.
A: For this question, we will be first asking the user how many elements the user want to add to the ar...
Q: Write an SQL query to report all the classes that have at least five students. Return the result tab...
A: To create a table named Enrollment, run following code: CREATE TABLE Enrollment ( student varcha...
Q: What is the name of the size of a single storage location in the 8086 processor?
A: What is the name of the size of a single storage location in the 8086 processor?
Q: Script 1: create a JavaScript program that defines, as an array, a list of 10 of your favorite thing...
A: Screenshot of Code - Output -
Q: The following statement uses a non-correlated subquery to find the South American country with the s...
A: Question 1. The following statement uses a non-correlated subquery to find the South American countr...
Q: Create a search algorithm (I recommend a genetic algorithm) that acts as a finder of a five characte...
A: Programming language used => PYTHON I have provided PYTHON CODE along with CODE SCREENSH...
Q: a class, Team.java, that has the following: * two private instance variables: a String named color ...
A: // Java Code: import java.io.*; class Team{ //declaring the private variables private String color; ...
Q: Why are watchdog timers required in many embedded systems?
A: 1) A watchdog timer is a timer that monitors microcontroller based embedded programs to see if they ...
Q: It is vital to comprehend how multiprocessor systems interact with one another in order to classify ...
A: A multiprocessor system has many processors and a communication mechanism between processors. Homoge...
Q: It's exactly what it sounds like: a jump drive.
A: There are many devices which are used to store information. Jump drive is one of them. It is highly...
Q: In the Histogram chart, edit the bin size to be 10.0 data polnts and then close the Format Axis pane...
A: The solution is given below for the above given question:
Q: For the grammar G with the productions: S -> a S b | c | S S Give a CNF G' such that L(G') = L(G) ...
A: Solution:
Q: What faults in the Whetstone, Dhrystone, and Linpack benchmarks are addressed by the SPEC CPU benchm...
A: SPEC CPU benchmark addresses Dhrystone, Whetstone, and LINPAC benchmark deficiencies: Dhrystone is a...
Q: The organization and connectivity of a computer's many components are referred to as its architectur...
A: Your answer is here of the organization and connectivity of a computer's many components are referr...
Q: How will you find that if the first occurrence of the character 'a' in the given string is immediate...
A: Write an algorithm to find if the first occurrence of the character 'a' in the given string is immed...
Q: Q1. Give one definition for Software Quality Q2. List the parts shared by McCall's Quality Factor...
A: Given The answer is given below. Software Quality:- An effective software process applied in a manne...
Q: The organization and connectivity of a computer's many components are referred to as its architectur...
A: According to the information given: We have to define the architecture that's component referred to...
Q: Do you have any recommendations for data flow recording methods?
A: According to the information given we have to recommend data flow recording method.
Q: Write a Python Simpsons class that implements a solution to the following slightly modified problem ...
A: Python code is given below-
Q: Write a Python program that will prompt the user for an input number between 11 and 100 inclusive. C...
A: The program should not move forward until the user enters a positive integer value. Be sure to add ...
Q: Write a Matlab function named reflect_polynomial that will: [a] accept a univariate polynomial defin...
A: The objective is to write MATLAB code for the given data.
Q: (v) In JAVA, define a method that takes three integers as the parameters and returns the smallest nu...
A: In JAVA, define a method that takes three integers as the parameters and returns the smallest number...
Answer is given below-
Programming in python-
Step by step
Solved in 2 steps
- 1. Federal law requires that hourly employees be paid “time-and-a-half” for work in excess of 40 hours in a week.For example, if a person’s hourly wage is $12 and he or she works 60 hours in a week, the person’s gross pay shouldbe (40 *12) + (1.5 *12 * (60-40)) = $840.Write a program that requests the floating number of hours a person works in a given week and the person’s hourlywage as input, and then displays the person’s gross pay. Save it as overtimePay.py3prep Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values should be displayed in currency format with the $ sign right up against the first digit. See SAMPLE OUTPUTS below.MoonBucks Coffee Company - Coffee Prices40 pounds or more $7.50 per lb.20 pounds or more $8.75 per lb.10 pounds or more $10.00 per lb.1 to 9 pounds $12.00 per lb. Start with a comment that includes your name and course number. Include pseudocode that describes all steps required to solve the problem. Employ variable names that…Python Programming TasksQuestion 3Businesses some time market their contact no as: 111-GET-SONY. This technique makes easy for the customers to remember the brand name. To do so they use the alphabets that are printed on the numbers on dial pads of Tele/Mobile phones as follows: A, B, andC = 2D, E, and F = 3 G, H, and I = 4 J, K, and L = 5 M, N, and O = 6 P, Q, R, and S = 7 T, U, and V = 8 W, X, Y, and Z = 9. However, the telecom systems needs proper numbers for dialing. Create anapplicationthatshould prompt the user to enterthe no in specified format such as XXX-XXX-XXXXand then translates the number to their numeric equivalent. Input: 111-GET-SONYOutput: 111-438-7669 Question 4Write a program imitating a website where users can signin/signup, view certain information which can only beseen by signed in users, logout or exit the application.Initially you would have asequence userswithfollowing structure:users =…
- Java Language The company will held its quarterly performance for each department; wherein each group of the department are rated from 1 to 5, where 1 is the lowest score and 5 is the highest score. The department has two groups, groupA and groupB. Each group will be rated by five evaluators. Create a program that will ask for the input rate of the evaluators, and determine the group that got the highest rating, as well as the overall rating of the department. Use the UML diagram below as a reference. Department() – accepts 5 ratings of the evaluators and determines the groupScore which is the total rating of the group. getGroupAverage() – returns the value of groupAverage which is the average score of the group. displayAverage() – displays the overAllAverage which is the average of the whole department. overAllScore is the over all score of the department. Department Group Score: Int Group Average : Double Overall Score: int overall Average: double Department()…raph EECP1290: Computer Programming for Engineering Write a program to calculate the K value using if else condition If P value is more than 9 then K = M/2 – vP+C If P value is less than or equal to 9 then K = M/2 + /P +C I= Where C is a constant with value 1.715. Speed Conversion ChartYour friend Amanda, who lives in the United States, just bought an antique European sports car. The car’s speedometer works in kilometers per hour. The formulafor converting kilometers per hour to miles per hour is:MPH = KPH * 0.6214In the formula, MPH is the speed in miles per hour and KPH is the speed in kilometersper hour. Amanda is afraid she will get a speeding ticket, and has asked you to write aprogram that displays a list of speeds in kilometers per hour with their values convertedto miles per hour. The list should display the speeds from 60 kilometers per hourthrough 130 kilometers per hour, in increments of 5 kilometers per hour. (In otherwords, it should display 60 kph, 65 kph, 70 kph, and so forth, up through 130 kph.) made in visual studio 2017
- 5- Write a program which read a number consists of 4 digits and find the maximum digit of the number. FOR eg. 1472 the maximum digit is 7 the maximum digit is 9 9835Python Assignment: In India McDonald's has the n number of customers and they are famous for their taste and quality so they plan to Organise the challenge for foody people. What is the challenge is?| you have taken a food challenge from the Chef and now you have to eat directly the Y burgers. You will eat as follows: At the first minute you will eat exactly the X burgers and every minute after that you will eat twice the number of burgers you ate the minute before. As you can get tired of food, Chef also lets you take a break from eating for one minute. When you start eating again after a break, your food streaks are reset, which means that in the first minute after the break you will eat X burgers and every minute after that you will eat the burgers you ate twice the last minute. Allow a1, a2, ., let it be your meal length in minutes. The cook needs to have all the ai different in pairs. Get the minimum number of minutes you need to eat Y burgers directly or decide that it is not…Brute force equation solver this is python program. Numerous engineering and scientific applications require finding solutions to a set of equations. Ex: 8x + 7y = 38 and 3x - 5y = -1 have a solution x = 3, y = 2. Given integer coefficients of two linear equations with variables x and y, use brute force to find an integer solution for x and y in the range -10 to 10. Ex: If the input is: 8 7 38 3 -5 -1 Then the output is: 3 2 Use this brute force approach: For every value of x from -10 to 10 For every value of y from -10 to 10 Check if the current x and y satisfy both equations. If so, output the solution, and finish. Ex: If no solution is found, output: No solution You can assume the two equations have no more than one solution. Note: Elegant mathematical techniques exist to solve such linear equations. However, for other kinds of equations or situations, brute force can be handy. ''' Read in first equation, ax + by = c '''a = int(input())b = int(input())c = int(input()) ''' Read in…
- int y=0,i; for (int i=0;i<10;++i) y+=i; 36 66 45 550199% 10:00 docs.google.com/forms 13 last constant Problem 1 At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 5 points are deducted. Write a program that asks the user for his initial grade and how long he delayed in submitting, and then displays the final result. Sample Run 1: Enter your initial grade: 82 Enter the late submission time (in minutes) : 6 Your final grade is 52 Sample Run 2: Enter your initial grade: 115 Grades should be between 0 and 100 Sample Run 3: Enter your initial grade: 43 Enter the late submission time (in minutes): 10 Your final grade is 0 Sample Run 4: Enter your initial grade: 72 Enter the late submission time (in minutes) : -2 Time should be positive Your answer Problem 2 Write a Java program integers day. month, and vear. You are NOT required to check if the values entered by the user are in give the user the ability to determine the day of a given date. The user shall…Q7: Code a complete Python program that performs the following operations by reading the weight of athletes until a zero is entered on the keyboard. When a negative value is entered by mistake from the keyboard, it should ask to enter the value again. How many athlete weights have been entered, Average weight of all athletes, Programmer must find out how many athletes are in each weight. Weight weight <50 Lightweight 50≤ kg <70 Middleweight Higher Heavyweight SAMPLE RUN Enter weight: 30 Enter weight: 65 Enter weight: 90 Enter weight: 120 Enter weight: 0 ------------------------------------- There are 1 light, 1 medium and 2 heavy weights