Write a program that prompts the user to input three (3) integers: MM, DD, and YYYY. For example, 07 26 1998. The program will print the number of days elapsed from 01 January of that year, i.e. January 1st is always 1 and December 31 is either 365 or 366, depending on if leap year or not.
Q: Convert the following control words into RTL microoperations, to be implemented in a processor that ...
A: Solution Answer R12<-R10-R9 --- R8<-R8-1 --- R12<-SHR(R12) --- External Input<-TSFR(...
Q: What exactly is the distinction between JavaScript methods and JavaScript properties?
A: Intro the distinction between JavaScript methods and JavaScript properties?
Q: Show the starting and ending address of each segment located by the following segment register value...
A: The starting and ending address depends on the size of memory chip.
Q: Q3: ANSWER THE FOLLOWING. (* A: Write differences between input box and message box?
A: A) To write the difference between input box and message box
Q: What is the definition of DHCP (Dynamic Host Configuration Protocol)?
A: Introduction: DHCP stands for Dynamic Host Configuration Protocol.
Q: Computer science What are the many forms of application software? Make a list of the names and give...
A: Introduction Computer science What are the many forms of application software? Make a list of the ...
Q: Computer science Explain what an information system is made up of.
A: Introduction: People construct and utilize information systems, which are a combination of hardware,...
Q: Write a program that reads a file that contains only one line; output
A: I have written code below in JAVA:
Q: To meet upcoming rules, the VP has taken a hasty decision to transfer all of her data from on-premis...
A: Introduction: A common misconception about cloud migration is that it will be a one-time trip. But t...
Q: s by taking suit
A: given - Differentiate among flow control mechanisms by taking suitable examples.
Q: The lack of error warnings during translation of a computer programme is just a required but not suf...
A: Intro Consider the statement, During the translation of a computer program, the absence of error me...
Q: The first U.S. law to define computer trespass is: O Computer Misuse Act O Federal Information Secur...
A: Computer trespass is actually an activity or event or situation when anyone's computer is accessed w...
Q: Using loops in C++ write a program to compute the difference in the ASCII values of the largest and ...
A: Let us see the answer:- Introduction:- ASCII VALUE:- ASCII is a 7-bit character set with a total of ...
Q: 44. In Internet programming, programmers receive parameters via a query string which looks like a St...
A: Introduction
Q: What are the distinctions between computer organisation and computer architecture?
A: Introduction: The distinction between computer organisation and computer architecture is as follows:
Q: A: What is the advantages and disadvantages of visual basic?
A: Visual Basic visual basic is a programming language developed by Microsoft that provide a graphical ...
Q: 4. What will print when the main method below is executed? public static void main (String [] args) ...
A: Hello student , hope you are doing good . The answer to both of the question is attached below alo...
Q: (3a2 +2)(5a+4) 5:3 +1 E O(x"). Indicate the least integer n for which
A: This question comes from Time Complexity in Algorithm which is a paper of Computer Science. Let's di...
Q: Write a program called MaxArray.java that reads two int arrays and constructs a third array containi...
A: In this question, we are asked to write a java program to enter the two array and create the 3rd arr...
Q: How many linked lists are there in a hash table of size m? What is a hash function used for? Use exa...
A: Hashing is used to uniquely identify the specific object from a group of similar objects. Hashing is...
Q: PROBLEM: Write a program that prompts the user to input coefficients A, B, and C of a quadratic equa...
A: I have provided C++ CODE along with CODE SCREENSHOT and TWO OUTPUT SCREENSHOTS----------------
Q: Discuss the trade-offs of the various picture representations, and which format would you choose if ...
A: Intro The image representation is broadly divided into two categories vector images and raster ima...
Q: b. Print the following pattern for the given input (you must use recursion): Sample Input: 5 Sample ...
A: Introduction solve this in python only and
Q: What does a foreign key mean in terms of database integrity? What can you say to justify this requir...
A: Introduction: In database design, foreign keys are highly significant. Ensuring that the relationshi...
Q: What are the two meanings of the acronym DBA?
A: The two interpretations of the abbreviation DBA is:-
Q: To be considered fully defined, a variable's 'type' and 'extra attributes' must both be given (and t...
A: Introduction: The idea of a variable's scope and visibility aids us in describing the attributes of ...
Q: Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2.7 billion times per se...
A: The answer as given below:
Q: What exactly are bignums? Which languages are they compatible with?
A: It is a tool that is used to represent the code for the value of the integer which contains a very l...
Q: Show the starting and ending address of each segment located by the following segment register value...
A: Given value 1. 7103H
Q: problem 8) Write a function that generates a list of random numbers from a normal distribution. Your...
A: According to our company policy we can answer one question at a time if you want the answer of the a...
Q: nano sec then the al to (Approximately
A:
Q: When a computer is turned on, what are the internal components that allow it to operate?
A: work of internal components to operate when a computer is turned on
Q: Computer science Requests that are iterated and non-iterated, authoritative and root servers, and D...
A: Introduction: The Domain Name System (DNS) is referred to as "the phonebook" on the Internet. Domain...
Q: Create a C programme that takes two integers from the user and shows the result of the factorial of ...
A: Introduction: Here we need to write a c program that reads two integers from the user and displays t...
Q: Q2: Based on Data Encryption Standard (DES), if the shared key is "Informed" and the output of Round...
A: Data encryption standard (DES) has been found vulnerable against very powerful attacks and therefore...
Q: B: write a program to enter two numbers and print the largest number.
A: Introduction the question is about programing language of visual basic and here is the solution in t...
Q: B: write a program to show this message box elete are you sure you want to delete this file Yes No
A: ANSWER:-
Q: Computer science ________is the viewable and editable uncompiled programme statements.
A: Introduction: is the viewable and editable uncompiled program statements. A programming language is ...
Q: What is the difference between deploying and publishing an application while working in C#?
A: Introduction: The distinction between deploying and publishing a C# programme is enquired about here...
Q: Experimentally find out the function table of the SR latch that you have built, i.e., Qt+1= f(S, R, ...
A: 1) Truth table of RS Latch is as given below Hence, an R-S Latch can be implemented by using ju...
Q: Write a program that prompts the user to input a number. The program should then output the number a...
A: According to bartleby guidelines we need to answer only the first question. Algorithm: 1.import scan...
Q: Determine the number of branches in a tree diagram that represents selecting three members from S wi...
A: Given, S={M, N, P}
Q: Is there a easy way to learn SPSS
A: SPSS stands for Statistical Package for the Social Sciences. SPSS can take data from almost any typ...
Q: Provide me with the MATLAB code to swap the first and last row of the matrix given below, mat = 1111...
A: Requirement: Provide me with the MATLAB code to swap the first and last row of the matrix given bel...
Q: What role do regions and availability zones play in improving application resilience, availability, ...
A: Introduction: Cloud computing is a technology that allows users to access resources over the interne...
Q: List the OSI model and the TCP/IP Model. List how they compare (ie. what levels match?) and give an ...
A: OSI Model The OSI Model is a logical and conceptual model that defines network communication used by...
Q: 2. Consider the following network address: 209.15.6.0/28 a. How many subnets are there in this netwo...
A: Given network address=209.15.6.0/28 Find:-Subnets=? first and last valid hosts=? s...
Q: Describe the idiom of generate-and-test programming.
A: Generate-and Test strategy A goal may consist of many subgoals. The generate and test strategy proce...
PLEASE CODE THIS IN VISUAL CODE & MAKE SURE IT RUNS
Step by step
Solved in 3 steps with 1 images
- The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight in kilograms and dividing by the square of your height in meters. Write a program which prompts the user to enter the weight in kgs (integer value) and height in feet and inches (both integers) and then calculates the BMI of the person. Your program first need to convert inches to meters (i.e. inches * 0.0254) and then use the following formula to calculate BMI: weight kilogram / (height_meter)^2 Your program displays the BMI value in two decimal places and the corresponding status as shown in the examples below. Note that one inch is 0.0254 meters and 1 foot is 12 inches. For example: Input Result 62 5 10 89 6 0 45 BMI BMI < 18.5 18.5 s BMI < 25.0 25.0 ≤ BMI < 30.0 30.0 ≤ BMI 7 82 5 Interpretation Underweight Normal Overweight Obese 2 Enter weight (kg): Enter height (feet): Enter height (inches): BMI is 19.61, Normal Enter weight (kg): Enter height (feet): Enter height (inches): BMI is…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önder
- PROBLEM: Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. SPECIFICATIONS: - You may only use the codes that we studied under our lectures All lines of codes should have a comment. - Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum…PROBLEM:Write a program that prompts the user to input the amount of money that an ATM machine will dispense and then show the breakdown of how many 1000, 500, and 100 peso bill/s are dispensed. The program must display the amount then prompt the user if the transaction will continue or not by choosing between Y (for Yes) and N (for No). If an invalid character is entered, it must display that the user entered an invalid character. The program must also display that the maximum allowable amount is 10,000 and the minimum allowable amount is 100. If the entered amount is greater than 10,000 or less than 100, an error notification must be displayed. Moreover, the entered amount must be exactly divisible by 100. TEST CASES: If a user inputs an amount less than or equal to 10,000: REMINDER: Maximum amount must only be 10,000 and the minimum amount must not be less than 100 Enter Amount to dispense: 4900The Amount of money you entered is 4900.Do you want to continue your transaction?Enter…1. Write a program that prompts the user to enter an integer between 0 and 6 and prints thie day name of the week (Sunday is 0, Monday is 1,..., and Saturday is 6). 2. Write a program that prompts the user to enter an integer and tests if it is divisible by 5 and 3, or if its divisible by 5 or 3 or if its divisible by 5 or 3 but not both.
- Given an airplane’s acceleration a and take-offspeed v, you can compute the minimum runway length needed for an airplane totake off using the following formula:length =v2/2aWrite a program that prompts the user to enter v in meters/second (m/s) and theacceleration a in meters/second squared (m/s2), then, displays the minimum runwaylength. Here is a sample run: Enter speed and acceleration: 60 3.5The minimum runway length for this airplane is 514.286A long-distance carrier charges the following rates for telephone calls: Starting Time of Call Rate per minute ($) (**only depends on Starting Time) 00:00 – 06:59 0.10 07:00 – 19:00 0.45 19:01 – 23:59 0.30 Write a program that asks for the starting time and the number of minutes of the call, and displays the charges. The program should ask for the time to be entered as a floating-point number in the form HH.MM. For example, 07:00 hours will be entered as 07.00, and 16:28 hours will be entered as 16.28. Input Validation: The program should not accept times that are greater than 23:59. Also, no number whose last two digits are greater than 59 should be accepted. Assuming num is a floating-point variable, the following expression will give you its fractional part: num – static_cast<int>(num);Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula: length = v2/2a Write a program that prompts the user to enter v in meters/second (m/s) and the acceleration a in meters/second squared and displays the minimum runway length.
- A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $1 per hour for each hour or part thereof over four hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format, and should calculate and print the total of yesterday's receipts. The program should use the function calculate Charges to determine the charge for each customer.The first 11 prime integers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31. positive integer between 1 and 1000 (inclusive), other than the first 11 prime integers, is prime if it is not divisible by 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, and 31. Write a program that prompts the user to enter a positive integer between 1 and 1000 (inclusive) and that outputs whether the number is prime. If the number is not prime, then output all the numbers, from the list of the first 11 prime integers, which divide the number.Write an expression that obtains a random integer between 34 and 55. Write an expression that obtains a random integer between 0 and 999.