Write a program that uses a while loop to determine how long it takes for an investment to double at a given interest rate. The input will be an annualized interest rate, and the output is the number of years it takes an investment to double. Note: The amount of the initial investment does not matter; you can use $1.
Q: Use least squares regression to fit a straight line to the following data: Determine the Y-intercept...
A: The straight line equation is y=a+bx, to solve the equation The normal equation is:
Q: What are the benefits and drawbacks of utilizing a file integrity checker like Tripwire? This is a f...
A: Introduction: What are the advantages and disadvantages of employing a file integrity checker such a...
Q: What are the main characteristics of cloud computing?
A: Introduction: Cloud computing is a concept that refers to the omnipotent and omniscient, rapid, and...
Q: Discuss the Disk Provisioning Architecture's capabilities in the Cloud Computing paradigm.
A: Intro the Disk Provisioning Architecture's capabilities in the Cloud Computing paradigm.
Q: Internet (e.g., home network) 10.0.0/24 10.C 10.0.0.4 10
A:
Q: Q1. I Distinguish between the Go-Back-N ARQ and the Selective Repeat ARQ approaches. Use an example ...
A: Introduction Q1. (i) Differentiate between Go-Back-N ARQ and Selective Repeat ARQ methods. Explain w...
Q: Computer science What was it about von Neumann's architecture that set it apart from its forerunner...
A: Introduction: The "traditional" von Neumann architecture consists of primary memory, a central proce...
Q: What are the costs of thin-client versus thick-client architectures? Search for at least two diffe...
A: The costs of thin-client Vs thick-client architectures: Since Thin Clients are units with lower proc...
Q: Suppose 198.53.202.0 is a network address and we want 4 subnets. Find the following: - Number of bit...
A: Introduction: Given: We have a single network having IP Address 198.53.202.0We want to do subnetting...
Q: Is there a distinction between mobile devices and laptop computers? Give an example to back up your ...
A: Introduction: The most obvious distinction between a mobile phone and a personal computer is their s...
Q: What is the difference between OSPF and MPLS, and how do you explain it?
A: OSPF: OSPF stands for Open Shortest Path First. This OSPF is basically the routing protocol for the...
Q: Assume a critical section solution in which Process i is in the CS and Process j wants to enter. Aft...
A: We are given a very interesting situation in inter-process communication where we have two processes...
Q: computer- What words would you use to define four e-commerce support technologies?
A: Introduction: The Internet and personal computers, for example, are unsurprisingly at the heart of t...
Q: Where will the network's physical and virtual networking equipment be deployed and maintained?
A: Introduction: Networks refer to the many pieces of equipment that enable data to be shared between c...
Q: Write a C program using cin and cout that input and output name, address, and age to an appropriate ...
A: Flowchart: Pseudo Code: Begin struct emp{ string name; string address; int a...
Q: An analog signal Xa(t) = sin(480nt) + 3sin (720t) is sampled 600 times per second. (a) Determine the...
A: The Nyquist sampling rate specifies a sampling rate for a signal which is two times the highest or m...
Q: Exercise • Write a program that asks the user -Do you want to use this program? (y/n) • If the user ...
A: Code: #include <iostream> using namespace std; int main(){ string c="y"; int count=1; ...
Q: What exactly is ISO 27001? What distinguishes it from the NIST Cybersecurity Framework?
A: Introduction: ISO 27001:2005: We employ ISO 27001, an internationally recognised standard, to examin...
Q: #condtions: #1. should contains 6 quiz, 5 activities, minimum and two major exams (midterm & finals)...
A: #Python program to write a program ''' Assume all marks are between 0-100 ''' # Input all marks f...
Q: 4. What is the application of AM-SSB?
A: Introduction: Single-sideband modulation (SSB) or single-sideband suppressed-carrier modulation (SSB...
Q: Computer science When it comes to whole-disk encryption, what function does a TPM play?
A: Introduction: Full disc encryption is the process of encrypting all of the data on a disc. The data ...
Q: What does the Internet of Things (loT) signify for an embedded developer?
A: Introduction For an embedded developer, what does the Internet of Things (loT) imply?
Q: In the operating system, why is multithreading more frequent than having a large number of processes...
A: Introduction: Multi-threading is a programming technique that enables many code segments to operate ...
Q: Why do we care about intellectual property?
A: Introduction: Here we are required to explain why we do we care about intellectual property.
Q: 4. Explain the code. Which process will execute first and why? semaphore s = 0; //Shared P1 { P2 { /...
A: A semaphore is a special type of variable with two main operations. Signal() : this increments the ...
Q: Describe the elements that contributed to the growth of computer security into the information secur...
A: Introduction: Computer security, also known as cybersecurity or information technology security, is ...
Q: 1. Consider following class diagram: Doctor Patient -Name: String - Field:String -patientList[]: Str...
A: As per the requirement program is completed. Note: In the question programming language is not menti...
Q: One billion people use smart phones, but there are four other sorts of computers you should be aware...
A: Introduction: There are four primary types of computers:
Q: What are the distinctions between the Mobile First and Desktop First approaches to responsive web de...
A: Introduction: It is tough to determine whether to develop a responsive web design on the desktop fir...
Q: Demonstrate how to search a sequential access file in C Sharp. Demonstrate using snippet codes and w...
A: Introduction: The reading or writing of data records in consecutive order, that is, one record after...
Q: 3. Write a function that takes a number as parameter and returns the factorial. 4. Write a function ...
A: Question (3) given - Write a function that that takes a number as parameter and returns the factori...
Q: Have the user enter a password. The code loops through each character in the string. Add code in the...
A: Programme : import java.util.Scanner; public class Main {public static void main(String[] args) { ...
Q: Computer science What is the most common unit for measuring the speed of a computer clock?
A: Introduction: A computer clock's speed is measured in this unit. Processor performance is measured b...
Q: Make a list of the physical storage media on the PCs you use on a regular basis. Give each medium's ...
A: Introduction: External hard drives, SD cards, and flash drives are examples of physical storage devi...
Q: What exactly are apps, and why do they matter?
A: Introduction: Apps can be referred as mobile applications, computer program, software a...
Q: For security reasons, the values of specific characteristics in a database relation may be encrypted...
A: The following are the basic characteristics of a primary key: it must include a unique value for eac...
Q: Explain why synchronization is necessary in the following situation: You have modeled a bank as an a...
A: Introduction: Synchronization is the process of managing multiple thread requests for resource acces...
Q: Is a self-transition required in every State Diagram? What gives you the impression that this is the...
A: Introduction: The transition between states is defined by a state diagram, which is dependent on the...
Q: Discuss five educational software programs that might help a firm run more smoothly.
A: Introduction: Software designed primarily for teaching or self-learning is referred to as education ...
Q: Determine the critical components of a computer information system. What exactly is a mission-critic...
A: Intro Determine the critical components of a computer information system. What exactly is a mission-...
Q: What are the fundamental roles of a network operating system?
A: Network operating system:- The networking role of the Network Operating System (NGO) is to allow fil...
Q: The figure below shows an arrow diagram of a partial order R. R b a d e f List the maximal elements ...
A:
Q: Explain why record allocation to blocks has a substantial influence on the performance of a database...
A: Introduction: Databases' bottlenecks are usually disc accesses; because this allocation approach dec...
Q: What is the maximum number of arguments that a catch block can have?
A: Introduction: A programmer is more likely to come across logical and syntactical errors, which are t...
Q: Write and assemble a program to execute the following HLL statement. int r = 0; int n ...
A: Your C code converted to Assembly language MIPS
Q: What's the difference between a reserved and a private address?
A: Introduction to address An address always points to a host/node/server or it can represent a whole ...
Q: What are the differences between ROM and RAM?
A: Introduction: ROM vs. RAM: What's the Difference? Read-Only Memory (ROM) is a kind of memory that c...
Q: What languages are included in the oops concept?
A: Question. What languages are included in the oops concept?
Q: Explain how a company's database is used in their information systems, using any company as an examp...
A: Organizations use databases to make better data access within the company, stronger relationship bet...
Q: 1. What is a "DCO" (in regards to hard disk drive technology).
A: 1. A hidden section on many modern hard disc drives is the device configuration overlay (DCO) (HDDs...
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Write a program that uses loops to collect data and calculate the average score over a number of tests for a number of students. Use Small Basic for this assignment. The program should : 1. first ask the user to enter the number of students in the range of 1 to 10. 2. then the program asks the user to enter the number of tests (in the range of 1 to 5) 3. Then use a loop to collect the scores for those many tests for each student. The outer loop will iterate once for each student. The inner loop will iterate several times, once for each test. Each iteration of the inner loop will ask the user to enter the score for a test of a student. 3. After all iterations, the program should calculates and display the total scores and average score for each student.Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönder1. Write a program that asks the user for the price of several items sold until the user answers with an “N”. The program should accumulate the total of all prices entered. After the loop is finished, the program is to compute the sales tax of all items as 7% [0.07]. Finally, the program is to print out the total of the items, the sales tax due, and the total amount due on three separate lines.
- 3. Write a program that deliberately contains an endless or infinite while loop. The loop should generate multiplication questions with single digit random integers. Users can answer the questions and get immediate feedback. After each question, the user should be able to stop the questions and get an overall result. See Example Output. Example Output What is 7 * 6 ? 42 Correct. Nice work! Want more questions y or n ? y What is 8 * 5 ? 40 Correct. Nice work! Want more questions y or n ? y What is 5 * 5 ? 25 Correct. Nice work! Want more questions y or n ? y What is 8 * 9 ? 66 Incorrect. The product is 72 Want more questions y or n ? n You scored 3 out of 4 Required Textbook: Introduction to Java Programming and Data Structures, Comprehensive Version, Edition: 11th Author: Y. Daniel Liang Publisher: Pearson ISBN: 9780134670942At 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 the late submission time (in minutes), 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 0At 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 the late submission time (in minutes), 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
- Write a program that plays a simple dice game between the computer and the user. When the program runs, a loop should repeat 5 times. Each iteration of the loop should do the following: Generate a random integer in the range of 1 through 6. This is the value of the computer’s die. Ask from user an integer in the range of 1 through 6. This is the value of the user’s die. The die with the highest value wins. (In case of a tie, there is no winner for that particular roll of the dice.) You need to validate the input if it’s correct or not. As the loop iterates, the program should keep count of the number of times the computer wins, and the number of times that the user wins. After the loop performs all of its iterations, the program should display who was the grand winner, the computer or the user.write a c++ program Use a pretest loop to allow the user to enter data until they input 0 for the purchase amount. Do all of your output in main(). Make it look like this. Don’t forget your underlines won’t be immediately underneath. Use methods for the following: getPurchaseAmt() Get the monthly purchase amount from the user. Include an error-trap around this input value so the user will have to enter a positive number (0r 0 to end the loop). Return the purchase amount. displayMenu() Display a menu of the membership types for the user to choose from, as follows: Membership Types: Premium Plus Standard Enter choice (1, 2, or 3): This method only displays. There is nothing to return, so it will be a void method. You will call this method from getType(). getType() Call the displayMenu() method and get the membership type from the user. Include an error-trap around the menu and choice so the program will not continue until the user enters a valid choice. Return the choice.…Think of the calculation program completed in week2. What if you wanted to show what the teacher discount amount would be for 5%, 10%, 15%, 20%, and 25%. Write a loop program for the calculated program in week2 to show the teacher discount amount for the different percentages listed above. Below, you will see the sample program from week2. Your program should include: • Variables for each part of problem. See example below: Eg. $apple = 10, $orange = 15, $discount = 0.2 <!DOCTYPE html> <html> <body> <?php $apple = 10; $orange = 15; $discount = 0.2; $subtot = $apple + $orange; echo "Your total before the 20% discount is: "; echo $subtot; $caldiscount = ($apple + $orange) * $discount; $tot = ($apple + $orange) - $caldiscount; echo "<br>Your total after the discount is: "; echo $tot; ?> </body> </html>
- Java Program Write a program that will print the message “Computer Science is cool!!” 10 times. Use a while loop. Instead of printing 10 times, ask the user how many times the message should be printed. You will need to declare a variable to store the user’s response and use that variable to control the loop. Number each line in the output, and add a message at the end of the loop that says how many times the message was printed. So if the user enters 3, your program should print this: _____________________________________ 1 Computer Science is cool!! 2 Computer Science is cool!! 3 Computer Science is cool!! This message is printed 3 times. _____________________________________Write a program that helps a company manage salaries of its employees. Your program should ask for the number of hours worked and the hourly rate of an employee than, display the salary. This program should allow the user to enter the information of many employees until enters -1. Sample Run: Enter the number of hours worked (-1 to end): 32 Enter hourly rate of the worker: 100 Balary is 03200 Enter the number of hours Worked (-1 to end) : 40 Enter hourly rate of the worker: 5 Balary is 3200 Enter the number of hours worked (-1 to end): 42 Enter hourly rate of the worker: 10 Salary is 0420 Enter the number of hours worked (-1 to end) : -11. Write a program that reads an integer from the user. Then your program should display a message indicating whether the integer is even or odd. 2. A string is a palindrome if it is identical forward and backward. For example “anna",“civic",“level"and“hannah"are all examples of palindromic words.Write a program that reads a string from the user and uses a loop to determines whether or not it is a palindrome. 3. Write a program that reads integers from the user and stores them in a list. Yourprogram should continue reading values until the user enters 0. Then it should display all of the values entered by the user (except for the 0) in order from smallest to largest,with one value appearing on each line. 4. Two words are anagrams if they contain all of the same letters, but in a differentorder. For example, "evil" and “live" are anagrams because each contains one 'e’, one 'i’, one l’, and one 'v’. Create a program that reads two strings from the user, determines whether or not they are…