Fredwick wants a program in which he can continuously enter Some positive integer values and the program Should stop once he enters the value 0. The moment he enters 0, the program Should display the count of: a) Numbers divisible by 3. 6) Numbers less than 100 but greater c) Numbers divisible by 7 but not even. than 50. In Ctt language.
Q: Show that the following statement is true: n?ε Ω(nlog n)
A:
Q: 33. Write a C++ program to input the elements of a string array of size 5 and compute the product of...
A: I have provided C++ CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT-----
Q: What is the value in al in a,b,c, and d? mov al,6Bh shr al,1 a. shl al,3 b...
A: Introduction: The SHL (shift left) instruction performs a logical left shift on the destination oper...
Q: ntial is data quality in an organization's database, and what are the factors that cont
A: Below the essential is data quality in an organization's database
Q: Create an MVC application that passes the data of the user through a blade and gets the same data in...
A: The Answer is in Below steps
Q: Change main to load employees from a file if a command line argument is given to the program (using ...
A: given - Implement a function readEmpFromFile that takes a FILE * as the only argument and returns a ...
Q: Describe the various types of models which are used in software engineering.
A: Note: as per the guidelines I am solving only one question for you.kindly repost other questions. 2....
Q: • Size of DC circuit breaker increases as the voltage level increases. •AC arcs current reduces to z...
A:
Q: Given an array of elements drawn from a totally ordered set. Present an O(n)-time algorithm that eit...
A: We need to write an algorithm for the given scenario.
Q: 1/O Devices as Files ..week 11 pop_Q1 • The following Linux commands all preform the same operation ...
A: We need to specify the function of given commands.
Q: Write program to enter and draw, as a CT signal, the following two sequences: A-(3, 6, 9, 12) and B-...
A: I'm providing the answer of the above question with the program & figure. I hope this will be he...
Q: Make a list of the reasons why users would routinely shut off their laptops or mobile devices. What ...
A: Introduction: Make a list of the reasons why users would routinely shut off their laptops or mobile ...
Q: Minimize the DFA M1 given by its transition table below into a minimal DFA M2 using the DFA minimiza...
A: We are given DFA M1 and we are going to minimize the DFA to M2. Minimization in DFA is done to make ...
Q: Provide an explanation for the phenomena known as phantom limbs. Despite the usage of the two-phase ...
A: Within an transaction, the phantom phenomenon happens when an equivalent query generates distinct se...
Q: If the start state of a DFA is final, then L(M)=Σ* L(M)=∅ ε∈L(M) |L(M)| is infinite None of ...
A: Here in this question we have given that if the start start is final then which is true among given...
Q: Consider a relation schema R = (X, Y, Z) on which the following functional dependencies hold: { XY -...
A: Here in this question we have given a relation schema R = (X, Y, Z) on which the following functiona...
Q: Describe how a firewall resembles a data stream that has been divided into packets.
A: According to the question A firewall is a community safety tool that monitors incoming and outgoing ...
Q: The language we E' w contains the 0,1 0,1 2
A: Solution - In the given question, We have to find which option is correct for the given DFA.
Q: In late 1990's, the Department of Education started to get concern about the health of every public ...
A: Convert the weight from pounds to kilograms using mass=weightInPounds/2.2; Convert the height from i...
Q: Explain the advantages and disadvantages of sharding, as well as the possible concerns.
A: Introduction: The primary benefit of sharding is that it enables the database to grow beyond the lim...
Q: 2) Give NFAS ( state transition diagram only !) for each of the following languages a) {wE{0,1,2} | ...
A: For a given input, if the symbol from both ends is 0, then state 0 is sure to be reached 1, then st...
Q: Using 74L S163 4-bit binary counter and any nessary gates, design a counter that produces the count ...
A: Using 74LS163 4-bit binary counter and any necessary gates , solution ; 4 bit binary counter ( 0...
Q: What is a Smart Office, and how does it work?
A: Introduction: Smart Office: It is a modern workplace where technology enables employees to operate ...
Q: Convert the decimal signed number -7 into 8-bit signed binary number. The signed binary number is 11...
A: Here in this question we have given a decimal number (-7) and we have asked to convert it into sign...
Q: the IEEE-754 single precision real number after encodingt the real decimal number -76.0625? e IEEE-7...
A: Let's first understand about IEEE 754 numbers :-
Q: 6. File Analysis Write a program that reads the contents of two text files and compares them in the ...
A: Note : Answering in python as no programming language is mentioned. Task : Read two text files. Per...
Q: How can data stored on a device that only allows sequential access be converted to data written on a...
A: Sequential access: As the name means, going sequentially or accessing sequentially. Sequential acces...
Q: en big endian and small endian computer architectures. Additionally, research the origins of this ph...
A: given - Explain the difference between big endian and small endian computer architectures. Additiona...
Q: Write a function call Occurrence that receives two arguments: an array of vectors (generic type) and...
A: Here is code in C++ as follows: Code: #include <iostream>#include <vector>#include <i...
Q: Can you tell me whether the security procedures in place are sufficient to secure the information sy...
A: Introduction: Information security encompasses a great deal more than preventing unauthorized access...
Q: one of the counter arguments offered against hard determinism is that it has use language an inaccur...
A: Determinism is the philosophical position that states that everything that happens or exists is the ...
Q: ATLAB CODE US Needed for the following
A: I have written MATLAB Code below:
Q: / What is inheritance? State the different types of inheritance supported by java with example and r...
A: Inheritance is an important pillar of OOP(Object-Oriented Programming). It is the mechanism in jav...
Q: Why has the Macintosh environment become one of the most widely used computer graphics environments ...
A: Introduction: Macintosh graphics are one of the most significant components in the design of multime...
Q: (a) Write a linear time ( 6(n) ) divide and conquer algorithm to calculate x", that is x is raised t...
A: A int calculate(int x,int n) { if (n==0) return 1; else if (n%2==0) // if...
Q: What does it mean when people refer to an assembly language as such?
A: Introduction: Incorrect use of the word "assembler" when referring to the programming language itsel...
Q: hghy 1 points
A: HGHY is a pulp molding machine.
Q: The parity check matrix is given as shown: Determine the code rate. Express your answer in fraction.
A: code rate = k/n = 4/7 = 0.571
Q: What role does a security architecture play in the planning and implementation of a security infrast...
A: Creating and enforcing a security infrastructure using a security framework: « A security framework ...
Q: Write a Python program to create a table and insert some records in that table. Finally selects all ...
A: Python program to create a table and insert some records in that table. Finally selects all rows fro...
Q: What is the reason for the stack being referred to as a LIFO structure?
A: Introduction: LIFO stands for last in, first out. It is a data structure manipulation technique in ...
Q: Abiha, one of your friends, has just gotten a computer. The Ubuntu Linux operating system is install...
A: Introduction: System Software: System software is a form of software that serves as an interface bet...
Q: 1. Find a connection between games and patterns. Look for a game in which patterns are involved. Exp...
A: Introduction 1. Find a connection between games and patterns. Look for a game in which patterns ar...
Q: out IEEE 8
A: given - Explain about Wireless security and Explain about IEEE 802.11 Wireless LAN Overview.
Q: What are the most crucial considerations in relation to physical database architecture?
A: Database is basically a software that manages the collection of related data. The data can be fetche...
Q: Simplify the following Boolean expressions to a minimum number of literals (a + b+ c')(a'b' + c) (a'...
A:
Q: 1- A combinational circuit is defined by the following three functions: F1= XY + XYZ F2= XY + XYz F3...
A: Answer the above questions are as follows:
Q: g) The smallest unit of binary data is the 1. bit. 2. byte. 3. word. h) Which of the following best ...
A: *Note: We have given guiding principle, we can only do first question according guideline. So please...
Q: C++ simple friend function. Create a C++ class called cube that calculates the volume of a cube. Use...
A: Code :- #include<iostream> using namespace std; class cube { public: double side; double volum...
Q: evaluate a int data type using switch, the evaluated variable needs to be enclosed in single quotati...
A: The idea is that when building text strings that contain quote marks and apostrophes, you must be ca...
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Step by step
Solved in 4 steps with 2 images
- Problem: Feed Nibble Monster Till Full Write a program that generates a number in [0, 500] at the beginning -- this corresponds to how hungry the monster is -- and keeps asking the user to feed the monster until that number falls to zero. Each time the user feeds the monster a nibble, hunger decreases by the decimal value of the character (i.e. if the user feeds 'A' hunger decreases by 65). But when the user feeds the monster some character that isn't a nibble, the hunger increases by the decimal value of the character (since puking depletes energy). Use while loop. Sample runs: Notice the loop exits after one iteration, because hunger was very low and one nibble made the monster full: Notice hunger increasing after non-nibble (pink highlight): Notice that the program just keeps going when the user feeds the monster only non-nibbles. Do you think the program will keep running forever if the user never gives the monster nibbles?C Language You are conducting a linguistic study and are interested in finding words that contain the letter 't' or 'T' in the first half of the word (including the middle letter if there is one). Specifically, if the first half of the word does contain a 't' or a 'T', your program should output a 1. If the first half does not contain the letter 't' or 'T', but the second half does, then your program should output a 2. Otherwise, if there is no 't' or 'T' in the word at all, your program's output should be -1. You may assume that the word entered does not have more than 50 letters. Examples Input: apple Output: -1 Input: raincoat Output: 2 Input: enter Output: 1 Input: Taylor Output: 1Fredwick wants a program in which he can continuously enter Some positive integer values and the program Should stop once he enters the value 0. The moment he enters 0, the program Should display the count of: a) Numbers divisible by 3. 6) Numbers less than 100 but greater than 50. c) Numbers divisible by 7 but not even. In Ct language.
- 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!"…21. GeeBees Clothiers is having a sale. The store manager wants a program that allows a salesclerk to enter the original price of an item and the discount rate. The program should calculate and display the amount of the discount and the sale price. The algorithm in Figure 2-21 is supposed to solve this problem, but it is not working correctly. Correct the algorithm, and then desk-check it using an original price of $100 and a discount rate of .25 (the decimal equivalent of 25%). Output: discount sale price oviginal príce discount rate Imput: Algorithm: 1. enter the original price and discount rate 2. calculate the sale price by subtracting the discount from the original price 3. display the discount and priceSingular to Plural. Create a program that accepts a word in singular, and produces the corresponding plural. Use the following rules: a. If the word end in ‑s, -ss, -sh, -ch, -x, or –z, then add –es to the word. For example, the plural of tax is taxes b. If the word ends in -fe, then replace the ending with –ves. For example, the plural of wolf is wolves c. If the word ends in y and the previous letter is a vowel, then add –s to the word. For example, the plural of boy is boys d. If the word ends in y and the previous letter is a consonant, then change the –y ending with –ies. For example, the plural of city is cities e. If the word does not meet the criteria above, then add –s to it.
- French Articles: French country names are feminine when they end with the letter e, masculine otherwise, except for the following which are masculine even though they end with e: le Belize le Cambodge le Mexique le Mozambique le Zaïre le Zimbabwe Write a program that reads the French name of a country and adds the article: le for masculine or la for feminine, such as le Canada or la Belgique. However, if the country name starts with a vowel, use l’; for example, l’Afghanistan. For the following plural country names, use les: les Etats-Unis les Pays-BasMATLAB QUESTION - As of 2018, the population of "A city" is 646 thousand and the population of "B city" is 269 thousand. While the population of "A city" decreases by 7.1% every year, the population of "B city" increases by 12.9%. According to this information, write a program that calculates the year in which the population of "B city" passed the population of "A city".Computer 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 Output
- 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }quadratic.py by using "sys.argv" ● Create a program, quadratic.py, that takes in three arguments that represent the a, b, and c values in the quadratic formula. The values should be to two decimal places. You do not need to account for imaginary values. Then print out both roots in the form: “The solutions are x and y” Where x and y correspond to the positive and negative roots, respectively.Microwaves / Radio Waves If a scientist knows the wavelength of an electromagnetic wave she can determine what type of radiation it is. Write a program that asks for the wavelength in meters of an electromagnetic wave and then displays what that wave is according to the following chart. (For example, a wave with a wavelength of 1E-10 meters would be an X-ray.) 1x 10-11 1 x 10-8 4 x 10-7 7x 10-7 1x 10-3 1 x 10-2 Gamma Rays. X Rays Ultraviolet Visible Light Infrared