[SHORT ANSWER] Use Python. Assume the integer variables begin and end are assigned with values. Now, using a while loop, if statement, and modulus(%) operator, display odd numbers horizontally as shown in the following example:
Q: ar and differen
A: Pseudo Code - It is one of the methods which can be used to represent an algorithm for a program. It...
Q: Describe an efficient method to sort a sequence of n elements if the keys fall into the range of [n2...
A: Comparison based sorting is a kind of sorting, in which, in order to find the Sorted array, the elem...
Q: Suppose we are given two sorted arrays A[1..n] and B[1..n]. Describe an algorithm to find the median...
A: If n is 1, return the average of both arrays' elements. If n is 2, return the average of the first ...
Q: In data integrity, mention four main considerations that are put in place to validate collar data
A: four main considerations that are put in place to validate collar data In data integrity are
Q: Which of the following is a reference to the strName member variable in the customer structural vari...
A: Introduction Create a structure named customer. It contains a variable named strName. Define how t...
Q: A one-dimensional dynamic programming approach is required for a one-dimensional dynamic programming...
A: The solution to the given problem is below.
Q: Submit a write up that describes the steps of creating a database of Certificates using MongoDb. Be ...
A: Answer : Submit a write up that describes the steps of creating a database of Certificates using Mon...
Q: B) Write a PYTHON script to enter a value of S (between 1 and 3) for (50) entered values of X then f...
A: Find the code in python given as below and output:
Q: Why do you think Information Technology as a course is relevant in your course of study?
A: As per company guidelines we are suppose to answer only 1 question. Kindly re-post other questions ...
Q: Can you please help me to do Snow flake in python please
A: I have answer this question in step 2.
Q: Explain......... ______ are the parameters bound to the subprogram in a subprogram call statemen...
A: A formal parameter are the parameters bound to the subprogram in a subprogram call statement. The ...
Q: Show how Data is signed and how the signature of the Data is verified? Assume the Data is signed by ...
A: Company A wants to send an encrypted message. As stated above, Company A must have a private key Ar ...
Q: A- Write a PYTHON script to find the value of Z from following relation: 50 mx2 Z = Where: Python x ...
A: Declare array variable x,y array variablesAssign p with 0, assign q with 0 and assign z with 0 Use f...
Q: A body falls from rest in the gravitational field of the earth. The distance travelled in the fifth ...
A: Hi Dear!! Please give positive feedback!! As per the Bartleby guidelines I am giving a solution for ...
Q: 3. a) Differentiate between top-down and botton-up parsing. b) For the following grammar, draw the...
A: A parse tree or parsing tree or derivation tree or concrete syntax tree is an ordered, rooted tree t...
Q: What exactly is a natural ordering? How can you define a natural ordering for a class that you creat...
A: Natural ordering is a type of total ordering that is the default (most commonly used) for the provid...
Q: What are the similarities and differences between a derived class and its base class?
A: Base class is the class in object oriented programming language from which other classes are derived...
Q: What is the decimal representation of 27?
A: Introduction the question is about the decimal value and here is the solution in the next step.
Q: Explain why many system developers and business leaders feel data modelling is the most critical asp...
A: Introduction: In general, each industry and area has a given quantity of data. They may contain a va...
Q: Describe a case in which a user's total denial of a service (i.e., the user receives no answer from ...
A: The Denial of Service (DoS) attack is focused on making a resource (site, application, server) unava...
Q: Instructions: 1. Create a console program that will perform the following: Ask the user to enter the...
A: Console program performing following: Ask the user to enter the pieces of apple ...
Q: Conduct brief research on these two malwares and write in bullets their exploited vulnerabilities, i...
A: Cryptolocker is a type of ransomware that confines admittance to contaminated computer by encoding i...
Q: Using Kotlin Make up four students - add them into an array. Create a function for the class that...
A: We need to rectify errors in the program.
Q: Sorting algorithms are incredibly important and used by us on a daily basis. In this course we have ...
A: In questions wuth many parts,we must answer three.
Q: According to the activity relation chart; Develop a block plan using the algorithm you learnt in the...
A: Introduction
Q: What exactly is Internet filtering, and how does it function? Determine which nations are having sev...
A: Introduction: Internet filtering and its effectiveness
Q: Describe some of the differences between building operating systems for mobile devices and designing...
A: Introduction: An operating system (OS) is the software that handles all of the other application pro...
Q: In a few words, describe the calling convention
A: A calling convention manages how functions interact on a particular architecture and operating syste...
Q: Acme Parts runs a small factory and employs workers who are paid one of three hourly rates depending...
A: The Answer is
Q: a. Web
A: Actually, given question regarding web.
Q: n countries. One obvious way to estimate this is using a ratio est LATION. How can a linear regressi...
A: Step by step with explanation is given below: from the above question we can conclude that Hansen Hu...
Q: What are your expectations after learning Information technology.
A: The use of computers and information technology-related equipment, programmes, and applications is r...
Q: Assume that you signed up for freelance service for the first time. To prove your capabilities, you ...
A: 1.description the proposed system will be a software which would allows kids from 4 to 10 years to...
Q: What is database security, and how does it differ from other types of security? What are two ways to...
A: Database Security: Database security as same suggest helps in securing the database by using several...
Q: Which XXX should replace the missing statement in the following BSTReplaceChild algorithm? ESTReplac...
A: The question is to fill the missing statement in BSTReplaceChild algorithm.
Q: Q) what is the optimal assignment?
A: Step-1: Find out the each row minimum element and subtract it from that row 1 2 3 4 ...
Q: Write a program to find the average of three scores. Use one class for each score.
A: Use a class to store each score in such a way that each class has an instance variable to represent ...
Q: Explain why an application developer could choose to execute a programme via UDP rather than TCP.
A: Introduction: TCP is, in fact, a connection-oriented programming language. UDP is a programming lang...
Q: Topic: Concepts of programming Language Compute the weakest precondition for the following selecti...
A: Please refer below for your reference:
Q: Write a Python programme to demonstrate how to use the isinstance() method to determine whether the ...
A: Introduction: Write a Python program to demonstrate how to use the instance() method to determine wh...
Q: What can Security offer us as national security administrators and international security practition...
A: Introduction the question is about What can Security offer us as national security administrators an...
Q: 'How can a database layout error be more serious than an error in a non-database environment?'
A: Introduction The reason that loss is more severe in the database setting than in the non-database e...
Q: SECTION#2: Searching elements from Array and ArrayList Question No#3: Write down one java program to...
A: Code; import java.util.*; public class Main{ public static void main(String args[]){ Scanne...
Q: e) Can multilevel feedback queue prevent starvation of processes? Give reasons behind your answer.
A: In the given question multilevel feedback queue prevents starvation by moving the process that waits...
Q: A company planned to sell a laser device a person can wear around his or her neck that makes photogr...
A: Security surveillance cameras allow you to keep an eye on a specific area or group of areas for acti...
Q: Assume you want to keep track of changes to the takes relation. Can the above approach ensure that m...
A: Introduction: The basic principle of an audit trail is the supervision ( or tracking) of the usage a...
Q: Write a program to find the largest number between two numbers? Ues if
A: Ans: Code: #include <iostream>using namespace std;int main() { int n1,n2; cout<<...
Q: 49. An application uses a two-dimensional array defined as follows: int days[29] [5]; Write code tha...
A: The code here declares an 2D array which has 29 rows and 5 columns . The sum of the rows of the matr...
Q: When do you believe it is best to keep all data and applications in-house, and when do you believe i...
A: Introduction: Yes, your knowledge is comparatively safe within the cloud—likely far more thus than o...
Q: Construct the NFA that will accept the string of (dcļac)* dc (gg|bb)*dc.
A: Below is the answer to above question. I hope this will meet your requirements.
[SHORT ANSWER] Use Python. Assume the integer variables begin and end are assigned with values.
Now, using a while
loop, if statement, and modulus(%) operator, display odd numbers horizontally as shown in the
following example:
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Background: Game Rules The rules to the (dice) game of Pig: You will need 2 dice. To Play: a. The players each take turns rolling two die. b. A player scores the sum of the two dice thrown (unless the roll contains a 1): If a single number 1 is thrown on either die, the score for that whole turn is lost (referred to as “Pigged Out”). A 1 on both dice is scored as 25. c. During a single turn, a player may roll the dice as many times as they desire. The score for a single turn is the sum of the individual scores for each dice roll. d. The first player to reach the goal score wins unless a player scores higher subsequently in the same round. Therefore, everyone in the game must have the same number of turns. Execution and User Input This program is quite interactive with the user(s) and will take in the following information; please review the sample input / output sessions for details; we describe them again here emphasizing input. The program will prompt for the number of…Remaining Time: 54 minutes, 49 seconds. * Question Completion Status: QUESTION 19 Write a Java program that prompts the user to enter the School Grade Level of a student and then calculate their discount amount in the regular fees structure offered during this pandemic situation. By using the below table, calculate their discount amount from the amount of the regular fee and then print the discount amount in OMR by using the appropriate selection structure. (Assume the user is entering a maximum Grade level is 12) discount amount = Regular Fees * percentage of discount rate School Grade Level Regular Fees in OMR Discount Rate >9 and 6 and 3 and 0 and <=3 30.500 5% otherwise 20.400 No discount T T T Arial 3 (12pt) v T -E E- 只i ン Click Save and Submit to save and submit. Click Save All Answers to save all answers. Save All Answers TOSHIBA F5 F6 F7 F8 F9 F10 F11 F12 INS SCNULL LOCK AD & 67 7 V 8A9 4 0Domino's Time Function Name: dominosTime() Parameters: N/A Returns: None Description: During the summer, you ordered a lot of food from Domino's. Pizzas are $12, an order of pasta is $6, and chicken wings are $8. Write a function that asks the user how many of each food item they would like, and then print a response telling them what their order to- tal will be. The order total should be an integer. >>> dominosTime() How many pizzas do you want? 3 How many orders of pasta do you want? 2 How many orders of chicken wings do you want? 2 By ordering 3 pizzas, 2 orders of pasta, and 2 orders of chicken wings, your order total comes to $64.
- Matric Number: 2. Let x be the first three digits of your matric number, AND y be the last three digits of your matric number. If the first digit of y is 0, replace it with 2. Ехатple: If you matric number is 2013034, Thus, x = 201 and y = 234 a. Write the values of x and y based on your matric number. b. If a = x (mod 7) and b = (-1) + y (mod 7), find the integer(s) c with 10Computer Fundamentals and Programming 2 Write a program that determines a student’s grade. The program will accept 3 scores and computes the average score. Determine the grade based on the following rules: - If the average score is equal or greater than 90, the grade is A. - If the average score is greater than or equal to 70 and less than 90, the grade is B. - If the average score is greater than or equal to 50 and less than 70, the grade is C. - If the average score is less than 50, the grade is F. Source Codes and Print Screen of the OutputName: Claz 4. Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case. The code segment below is intended to display all multiples of 5 between the values start and end, inclusive. For example, if start has the value 35 and end has the value 50, the code segment should display the values 35, 40, 45, and 50. Assume that start and end are multiples of 5 and that start is less than end. Line 1: i + start Line 2: REPEAT TIMES Line 3: { DISPLAY (i)oplev a bonin vimobn ldemyA i + i + 5 Line 4: Line 5: Line 6: } Which of the following could replace in line 2 so that the code segment works as intended? wlf a0wollo 1 end - start + 1 b. end start + 6 (( end - start) / 5) + 1 d. 5 * (end - start) + 1 а. C.Exercise I- Medicine Write a program that asks the user to enter the name of the medicine (t for ThroX, f for FeliX), his mass. The user should enter as well if he has a prescription or not. The program will calculate the dosage using: age and his ThroX without prescription -The max dosage should be 0.75 mL -The dosage = mass / 150 -The number of pills per day to take is 1 ThroX with prescription -The dosage =mass * 3 / 150 -The number of pills per day to take is 5 FeliX with prescription -The dosage = 0.77 mL FeliX without prescription -The dosage should be between 0.3 and 0.7 -The dosage = mass * 0.009 -The number of pills per day to take is 2 -The number of pills per day to take is 6 The program should display the dosage and the number of pills to be taken per day if the requirements are full filled, otherwise it display "Please check your doctor for a prescription". In case the medicine does not exist in the database, the program display “Your medicine is not in our database!"…1: If the variable divisor is not zero, divide the variable dividend by the divisor, and store theresult in quotient. If divisor is zero, assign it to quotient. Then print all the variables. [ Assumethat divisor and dividend are integers and quotient is a double ]15. 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 2017c## please Write a Console Application that reads two integers, determines whether the first is a multiple of the second and displays the result. [Hint: Use the remainder operator.]Time CalculatorWrite a program that asks the user to enter a number of seconds.-There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes and leftover seconds in that many seconds.-There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours, minutes, and leftover seconds in that many seconds.-There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours, minutes, and leftover seconds in that many seconds.* Question Completion Status: A Moving to another question will save this response. Question 9 Given the function F(X,Y,Z) =XZ + Z(X'+ XY), the equivalent, most simplified Boolean representation for F is O a. Z+XYZ O b.XZ O c. Z O d.Z+YZ A Moving to another question will save this response. مشمس 36°CSEE MORE QUESTIONS