Exercise (: Using while loop structure, write C++ program that prompts the user to enter the number of students ng in the class then reads it. It should then ask the user again to enter the ng grades for the students and validate each one to be in the range [0-25]. Finally, your program should compute and print the average grade of the class. Your output should look like this:
Q: Express the function F(A, B, C)=A+B'C in a sum of minterms form. OF(A.B. C) = m(0,2,5,6,7) OF(A, B,…
A: In order to solve this question, let us first consider the expression and transform it to a…
Q: When it comes to making use of a database, what are some of the downsides that come along with it?
A: The development of database systems is difficult, time-consuming, and complex. Specialized staff:…
Q: Explain What Is The Z-Buffer Hidden Surface Algorithm.
A:
Q: The OWASP Zed Attack Proxy was once known as Web Scarab (ZAP). To what end may it be put to use in a…
A: Zed Attack Proxy by OWASP: One of the most well-known security tools in the world is the OWASP ZAP…
Q: A small airline company is developing software to control its operations. You should design and…
A: Given data, A small airline company is developing software to control its operations. design and…
Q: How important is the role of artificial intelligence in the construction of databases? There are…
A: Artificial intelligence plays a very important role in the construction of databases. It is…
Q: What are the boundary values for the following precondition, and which of the boundary values…
A: The question has been answered in step2
Q: A ) Our List ADT supports: Group of answer choices all the collection operations indices…
A: An Abstract Data Type helps us identify he different methods along with their parameters to be…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: Python programming language : The general-purpose, high-level programming language Python was…
Q: Explain Supersampling With Pixel-weighting Mask
A: The question has been answered in step2
Q: Implement the following method. There is no need to enforce the preconditions; you may assume…
A: Use a for loop to iterate from startNumber to endNumber and then we check for a condition whether…
Q: VHDL Circuit Design Logic Buddy O Verilog QUESTION 21 Convert 672 base 10 (decimal) to base 2…
A: Examples of hardware description languages are: -> A computer language that is discussed above is…
Q: What are the key elements that make up a website?
A: Introduction: A website is a collection of electronic documents and web pages that are linked to one…
Q: How exactly may artificial intelligence (AI) come in use throughout the process of database…
A: Introduction: This explanation covers the more feasible idea of accelerating ML model training using…
Q: What are three reasons why web designers could construct a website of excellent quality?
A: Introduction: There is a tool accessible. Web programming has become much more straightforward…
Q: What is returned by the call go ( 4 )? public static int go(int x) { int q=0; while( x > 0) { q X ||…
A: The following is the trace table of the given Java code: Line Number q x Output 1 undefined…
Q: Revise the following Course class implementation in the following c++ code When adding a new…
A: Solution: Required language is C++ Follow step 2 for the solution.
Q: Do you think there are any other factors that contribute to the significance of arranging cpu time?…
A: Introduction: A procedure known as CPU configuration or scheduling enables one function to fully use…
Q: Ask for two integers - the first is their goal amount and the second is the actual amount. The goal…
A: 1.Start 2.Declare required variables of boolean data type and integer data type.Set boolean…
Q: This method prints the values of the trees sorted from maximum to minimum. public void…
A: I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: What kind of threats does the use of databases pose to people's privacy and civil liberties?
A: Introduction: The purpose of this inquiry is to bring attention to the dangers that the database…
Q: at precisely is me
A: Dear Student, The answer to your question 'What precisely is meant by the term "intrusion prevention…
Q: What precisely is the User Datagram Protocol, often known as UDP?
A: Introduction: The User Datagram Protocol, sometimes known as UDP, is a connectionless protocol. This…
Q: uestion 4 Functions In this assignment, you will be writing and calling a handful of functions…
A: The answer is given below.
Q: what is a prefix?
A: Solution: Given, what is a prefix?
Q: Some of the objectives of the LOCAL directive are:
A: LOCAL Directive: The local directive merely specifies the symbol's scope to be local; it does not…
Q: Write A Short Note On Z-Buffer.
A: The buffer is a data area shared by hardware devices or program processes that operate at different…
Q: please i have problem with run import java.util.*; public class Main{ public…
A: Final code:- import java.util.*;public class Main{ public static void main(String…
Q: Which of the following GUI/Graphic APIs are still present in the Java compiler (as of Java 11),…
A: Answer is attached in the below step.
Q: Explain Vector Generation/Digital Differential Analyzer (DDA) Algorithm.
A:
Q: No selection 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: Explain the fractal line with suitable example.
A:
Q: How important is the role of artificial intelligence in the construction of databases? There are…
A: Artificial Intelligence : Technical systems can now understand their environment, deal with what…
Q: Q2 Draw a DFA that accepts any string with aab as a substring
A: We are asked to draw a DFA that accepts any strings with 'aab' as a substring. DFA stands for…
Q: Instantiate an array list that contains Planet objects, and assign it to a variable of the correct…
A: Given question: Instantiate an array list that contains Planet objects, and assign it to a variable…
Q: StringInstrument.java // TODO: Define a class: StringInstrument that is derived from the Instrument…
A: import java.util.Scanner; public class InstrumentInformation { public static void main(String[]…
Q: public EmailFolder(String label) Assume the variable folders is an array list of EmailFolder…
A: ArrayList is a class available in util package. This will have add method which can add up the…
Q: The number of computer-based forensic tools has been on the rise over the last 10 years, making it…
A: The question has been answered in step2
Q: What are the key differences between TCP and UDP with relation to these three characteristics?
A: Transport Layer:- Through flow control, segmentation and desegmentation, and error management, the…
Q: What precisely is the User Datagram Protocol, often known as UDP?
A: User Datagram Protocol is is a connectionless protocol because it doesn't require any virtual…
Q: What are your thoughts about recording with sampling rates above 44,100?
A: Solution : Sample Rate The sample rate is the rate at which samples are taken. Consider an analogue…
Q: 1. Create a size-specific array of ones (10 , 1). Put the result into the bias array variable.
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: How many bits are required to implement the LRU replacement scheme in a two-way set associative…
A: Introduction: The fundamental reason fully-associative caches perform better (in terms of hit rate)…
Q: The root cause of the file system's hierarchical organization has been identified, and additional…
A: On an operating system, drives, folders, files, and other types of storage devices are organised and…
Q: 1248 16 32 64 128 256 class recursiveFunc { static void number(int num) { } } if(num>256) { return;…
A: Recursive function:- A recursive function is a programming construct that executes by referencing…
Q: What is type-I and type-II error in hypothesis tests? How do you reduce the probability for type II…
A: The above question is solved in step 2 :-
Q: If barriers to mobile commerce do in fact exist, what exactly are these barriers? How are you going…
A: Introduction: The primary obstacles preventing m-commerce from taking off are still device security,…
Q: 11.11 LAB: Dates Complete the code to implement the following operations: Complete read_date():…
A: Python Python is an object-oriented, high-level (easier for humans to grasp), and data-based…
Q: How exactly does Intrusion Detection Software carry out its duties?
A: Introduction: Intrusion detection systems monitor networks for malicious activities or policy…
Q: Can you explain the threats that HTTPS helps you avoid?
A: Introduction: HTTP is a protocol that is used in websites to safeguard them from people who are not…
Step by step
Solved in 2 steps with 1 images
- Assignment Write a program that tracks how much steps the user walks in total in a day and reports if the daily target is reached or not. The program will keep reading double values, each representing steps walked during an individual activity within a day (stepsWalked) until either the user enters a negative value or the daily target of 5000 steps is met. If the user enters a negative number, the program should print total steps walked as a double. Otherwise, if the target is exactly reached, the program should simply print "Target is reached", finally if the target is surpassed the program should print the text "Target is surpassed by", followed by the excess amount above the target as a double, and finally printing the text "steps". NOTE: You MUST use a repetitive statement in this question. NOTE: Each stepsWalked value will be given as a non-negative value. You do NOT need to check this. Input Output Answer assignment 3000 1300 500 2305.2 Target is surpassed by 2105.2 steps 450…C++ programming Write a program that reads the grades of 3 students in three different courses and displays the average grade of each student in these three courses, as well as the average grade of all students. You can use any loop method of your preference. (Hint: This is a nested loop technique)Challenge Problem (pyhton) T E S T S C O R E S Write a program that implements a test scores program. Valid test score entries are between 0 and 100 inclusive. The program should display a welcome message and run everything through the "main" function. have the ability to enter several test scores (try a loop) and print out the total score, as well as, the average score. continuously ask for test scores until the number 99.9 has been entered. test for valid entries and the value 99.9. If a test score is valid, the program should add the current score to the total score and update the number of test scores by one (+1), otherwise it displays an error message. Note : This assignment involves the use of a while loop and if-else decision making controls. You CANNOT use the reserved keywords break and continue for any portion of this program or any program for that matter throughout this course.
- No written by hand solution IN JAVA - NEEDS DRIVER AND CLASS PROGRAM Average Rainfall Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. The program should first ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate twelve times, once for each month. Each iteration of the inner loop will ask the user for the inches of rainfall for that month.(Numerical) Write a program that tests the effectiveness of the rand() library function. Start by initializing 10 counters to 0, and then generate a large number of pseudorandom integers between 0 and 9. Each time a 0 occurs, increment the variable you have designated as the zero counter; when a 1 occurs, increment the counter variable that’s keeping count of the 1s that occur; and so on. Finally, display the number of 0s, 1s, 2s, and so on that occurred and the percentage of the time they occurred.The program in the Programming Example: Fibonacci Number does not check whether the first number entered by the user is less than or equal to the second number and whether both the numbers are non-negative. Also, the program does not check whether the user entered a valid value for the position of the desired number in the Fibonacci sequence. Rewrite that program so that it checks for these things.
- MATLAB 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".c++ code to Calculate the average score of each player using the chart given:1st player: 286 262 2652nd player: 212 152 2153rd bowler: 365 432 2164th bowler: 192 154 235Use for loop in input the score for each gamecode must be done in C++ no other language is acceptableWrite a program using nested loops that asks the user to enter a value for the number of rows to display. It should then display that many rows of * and $, with one * in the first row, two in the second row, and so on. However, the last in each row should be aligned (preceded by as many $ as necessary). A sample run would look like this: Enter number of rows: 5 Then the and $ should appear like this: * $ $ $ $ $ $ $ * * * $ $ $ * * *
- C++ A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee's weekly pay and the average salary of all the workers. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40 hours, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees, and a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week, the hourly pay rate, and the weekly pay. Your program must contain at least the following functions—a function to read the data from the…Basic while loop expression. Write a while loop that prints userNum divided by 4 (integer division) until reaching 2 or less. Follow each number by a space. Example output for userNum = 160:40 10 2 Note: These activities may test code with different test values. This activity will perform four tests, with userNum = 160, then with userNum = 8, then with userNum = 0, then with userNum = -1. See "How to Use zyBooks".Also note: If the submitted code has an infinite loop, the system will stop running the code after a few seconds, and report "Program end never reached." The system doesn't print the test case that caused the reported message.C++ code please Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the appropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the user can repeat the program for different values. Example of expected output: Enter (Y/y) to find the periodic payment and unpaid balance after certain payments: y Enter the loan amount: 20000 Enter the interest rate per year as a percentage: 2.75 Enter the number of payments per year: 12 Enter the number of years for the loan: 30 The periodic payment is: 81.65 Enter the number of payments made: 20 The unpaid balance after 20 payment(s) is : 19267.89 Enter (Y/y) to find the periodic payment and unpaid balance after certain payments: n Format your output with setprecision(2) to ensure the proper number of decimals for testing!