Write a program that asks a user to input non-negative integers (numbers that are >=0) until the user enters a negative number (< 0).If odd the user gets 1 point if even user gets 0 points. Output the total number of points If the user the following numbers: 3 -9 Then the points gained is 1+1+0+0 = 2 points since 3 is odd so 1pt, 5 is odd so 1 pt, 0 is even so Opt, 2 is even so 0 pt and program quits since -9 is negative
Q: ntifier for employees. nsider two cases: • Suppose that (firstName, last Nam mary key. • Suppose tha...
A:
Q: State three ways to represent a Finite State Automaton (FSA).
A: Finite state Automaton is a state diagram which contains states and the transitions between the stat...
Q: How much attention should hotel management spend to System and Data Security while acquiring new tec...
A: Introduction: Managing technology and taking advantage of the benefits it presents may be difficult,...
Q: What is a modification problem? What are the three possible types of modification problems?
A: Modification problem A modification problem occurs when a table uses one row to record facts about ...
Q: If your modem uses 64 level signalling what is the data rate ? (Assume standard bandwidth for voice ...
A: The standard bandwidth for for voice channel is 8000Hz.
Q: Explain why distributed software systems are more difficult than centralised software systems, which...
A: Distributed software system: It is a software system/architecture in which resources/nodes are separ...
Q: Q1) Implement the following non-member function which reverses a given string. String reversal must...
A: Q1) Implement the following non-member function which reverses a given string. String reversal must...
Q: -Problem -3 -Create a flowchart design that depicts the solving of the following problem: Asks user ...
A: We have to create a flowchart for the program in which we will take input from the user of three num...
Q: Why is data encryption critical to your business or organization?
A: NOTE :- Below i explain the answer in my own words by which you understand it well.
Q: For each of the following languages, give two strings that are members and two strings that are not ...
A:
Q: -Problem -3 -Create a flowchart design that depicts the solving of the following problem: Asks user ...
A: Please refer to the following step for the complete solution of the problem above.
Q: Write a GUI based program that converts Fahrenheit temperature measurement to Celsius temperature me...
A: // Since it was not give how user will select Celsius or Fahrenheit. I have made to convert Celsius ...
Q: Vrite a java program to take a string and a non-empty substring sub, print true if the substring app...
A: import java.util.*;public class Main{ public static void main(String[] args) { Scanner s=new Sca...
Q: or software failures in the hi
A: Software Failure When a user feels that the software is no longer delivering the desired outcome in...
Q: Some software subsystems are deemed “low quality, high value.” Analyze how the re-engineering of tho...
A: Low quality high Business value Low quality High business value these kinds of systems making import...
Q: What issues are likely to arise if structured programme inspections are used at a company that uses ...
A: Introduction: Agile software development is a set of approaches focusing on iterative development, i...
Q: Provide three examples of HTTP methods that REST web services provide. The built-in HTTP accept head...
A: Please find below your answers: Core componenets of HTTP Response : i) Status/Response Code - Indi...
Q: Which of the following statements about the Vigenère cipher are TRUE? Select all the answers you thi...
A: Vigenere Cipher is a ploy alphabetic substitution cipher where we have a key repeating for making th...
Q: Multiply (10101) by (10011) in GF(2^5), with (x^5 + x^4 + x^3 + x^2 + 1) as the modulus. Show import...
A: A binary number is a number expressed in the base-2 numeral system or binary numeral system, a metho...
Q: You are supposed to construct a class named Matrix that shall contains private data member matrix:...
A: Solution of Question 1 Programming language used: C++ All solution steps are included in program cod...
Q: How many effective address is generated when a word content was copied from AX into data segment mem...
A: The effective address is the location of an operand of the instruction since the operand is the data...
Q: Need help, step-by-step instruction: I got a column of price values with dollar signs in front of ea...
A: Find the code with instruction given as below :
Q: Explain what a "compensation action" is and why these activities may need ncluded in workflows using...
A: "compensation action" is and why these activities may need to be included in workflows using an exa...
Q: Computer Science ef get_syllable_count(poem_line: POEM_LINE, words_to_phonemes: PRONUNCIATION_DICT) ...
A: Given lines are ef get_syllable_count(poem_line: POEM_LINE, words_to_phonemes: PRONUNCIATION_DICT) ...
Q: Define a real-time operating system with the help of examples. Describe how it differs from a standa...
A: The real-time operating system is an operating system that guarantees a certain capability within th...
Q: Write program to copy a block of 8 bytes of data to RAM locations starting at 50H from RAM locations...
A: Assembly language: Assembly language is a low level programming language. It is used to tell directl...
Q: Why is object-oriented programming getting so much press these days?
A: The object-oriented programming is also known as OOP.
Q: Your organisation wants to shift away from utilising desktop apps and instead use services to access...
A: Three risks that might arise while moving from Desktop applications to remote services: -> Securi...
Q: Q.2. What do you understand by annotations? Explain is the role of annotations in JPA.
A: -> Annotations are meta data or data about the data -> types of annotations include explanatio...
Q: Explain why planning and distributing a mass-market system release is costly.
A: explain why planning and distributing mass market system release costly.
Q: Why is object-oriented programming getting so much press these days?
A: Given Question: What's the big deal with object-oriented programming these days?
Q: Decimal 5311 Code 0000 1 0001 0011 3 0100 4 0101 0111 1001 7 1011 8 1100 1101 10 11 12 13 14 15
A: We are going to convert the given decimal numbers from 10 to 15 in 5311 code.
Q: (d) Given the Turing Machine (TM) in Figure Q1(c), write down the content of the tape and the positi...
A: Given Turing Machine contains, Set of states= {1,2,3,4} Initial state=1 Final state={4} Set of input...
Q: h-down automata that accepts the regular language L = /aab*aba/ using the alphabet {a,b}.
A: Given : L = /aab*aba/ using the alphabet {a,b}.
Q: Write a program that reads from a student his/her name and his/her ID whic program should display th...
A: import java.util.Scanner;public class Main{ public static String getDay(int code){ // divide code b...
Q: Explain why all versions of a system built to accommodate software diversity could fail in the same ...
A:
Q: PLEASE DO IN JAVA (for programs like Eclipse) Create a UEmployee class that contains member variabl...
A: Almost all the code is same . It is mentioned in the question that the type user should be provide f...
Q: 2. Sometimes, passing by value is called passing by __________. a) copy b) argument c) address ...
A: Sometimes, passing by value is called passing by argument Passing by reference implies the called fu...
Q: Why is data encryption
A: data breaches, threats, and attacks it is important to consider the benefits of data encryption. Enc...
Q: Explain what reductionism is and why it is useful as a foundation for a variety of disciplines. eng...
A: NOTE :- Below i explain the answer in my own words by which you understand it well. Will knowin...
Q: 1. The given hexadecimal number (1E.53)16 is equivalent to
A: Answer: 30.32421875
Q: Objective: To create a JSON for Population census with objects and arrays Scenario: PQR Census Com...
A: JSON stands for JavaScript Object Notation JSON is a lightweight data-interchange format JSON is pla...
Q: What is the definition of risk management? What is the best way to keep track of risks? Give some ex...
A: What is the definition of Risk Management? What is the best way to keep track of risks? give some ex...
Q: Problem #1: [35 pts] Write a program to calculate the estimated engine horsepower of a car based on ...
A: Ans: Code: import java.util.*;import java.lang.Math; public class Main{ public static void main(Stri...
Q: What do you mean by Rate Limiting?
A: We need to define rate limiting.
Q: Write a C++ program to add, subtract, mulitply and divide two fractions and display the result fract...
A: Note: The program result is in the fractional form not in the reduced/simplified form. If required k...
Q: What does it mean to be a privileged individual?
A: In general, a privileged individual is one who enjoys a special right or advantage that most people ...
Q: Write a program that reads from a student his/her name and his/her ID which is formed of 8 digits. T...
A: The solution to the given problem is below. **Note: As programing language is not mentioned in the...
Q: Given the following binary number in 32-bit (single precision) IEEE-754 format, the decimal value cl...
A:
Q: How can I make a fact table with only one process?
A: The fact table is a central table in the data schemas. Process is the program under execution.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 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.Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100%, then the item’s retail price is 10.00.• If an item’s wholesale cost is 5.00 and its markup percentage is 50%, then the item’s retail price is 7.50.The program should have a function named calculateRetail that receives the wholesale cost and the markup percentage as arguments and returns the retail price of the item.Write a program that lets the user guess whether a randomly generated integer would be even or odd. The program randomly generates an inte- ger and divides it by 2. The integer is even if the remainder is 0, otherwise odd. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.
- Write a program that asks the user for two positive integers between 2 and 10 to use for the length and width of a rectangle. If the numbers are different, the larger of the two numbers should be used for the length and the smaller for the width. The program should then display a rectangle of this size on the screen using the character ‘X’. For example, if the user enters either 2 5 or 5 2, the program should display the following:In Python Write a program that computes the fuel efficiency for a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about a series of legs. For each leg, the user enters the current odometer reading and the amount of gas used (separated by a space). The user signals the end of the trip with a blank line. The program should print the miles per gallon achieved on each leg and the total MPG for the tripA county collects property taxes on the assessed value of property, which is 60 percentof its actual value. For example, if a house is valued at $158,000.00 its assessed valueis $94,800. This is the amount the homeowner pays tax on. If the tax rate is $2.64 foreach $100.00 of assessed value, the annual property tax for this house would be$2502.72.Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10
- A county collects property taxes on the assessed value of property, which is 60 percentof its actual value. For example, if a house is valued at $158,000.00 its assessed valueis $94,800. This is the amount the homeowner pays tax on. If the tax rate is $2.64 foreach $100.00 of assessed value, the annual property tax for this house would be$2502.72.Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Run your program three times with the data below Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual eggs that are not part of a dozen. Write a program that prompts a user for the number of eggs in the order and then display the amount owed with a full explanation using the following wording: You ordered 27 eggs. That’s 2 dozen at $3.25 per dozen and 3 loose eggs at 45 cents each for a total of $7.85. So far everything is right but something in my equations is causing my ouput to show up as 45.0Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual eggs that are not part of a dozen. Write a program that prompts a user for the number of eggs in the order and then display the amount owed with a full explanation using the following wording: You ordered 27 eggs. That’s 2 dozen at $3.25 per dozen and 3 loose eggs at 45 cents each for a total of $7.85.
- Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual eggs that are not part of a dozen. Write a program that prompts a user for the number of eggs in the order and then display the amount owed with a full explanation using the following wording: You ordered 27 eggs. That’s 2 dozen at $3.25 per dozen and 3 loose eggs at 45 cents each for a total of $7.85. write a program that calculates the following: The program calculates the cost of 12 egss The program calculates the cost of 35 eggs The program calculates the cost of 6 eggs JAVA import java.util.Scanner; class Eggs { public static void main(String[] args) { // Write your code here } }The Café Noir Coffee Shop wants some market research on its customers. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 10 or more than 110), the program reprompts the clerk continuously. When the clerk enters fewer than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value onthe third attempt, an error message is displayed and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also…Write a program that plays the popular scissor–rock–paper game. (A scissor can cut a paper, a rock can knock a scissor, and a paper canwrap a rock.) The program randomly generates a number 0, 1, or 2 representingscissor, rock, and paper. The program prompts the user to enter a number 0, 1, or2 and displays a message indicating whether the user or the computer wins, loses,or draws. Here are sample runs: scissor (0), rock (1), paper (2): 1↵EnterThe computer is scissor. You are rock. You won