e, whats wrong with this. its always Battleship #include int main() { char id; printf("Enter the class ID : "); scanf("%c",&id); if(id='B') printf("The ship class is Battleship");
Q: a network OSI layer that is responsible for .authentication and authorization application layer…
A: Let us see the answer below,
Q: What impact has the use of ICT had on our society today?
A: Introduction: The broad use of information and communication technologies has had a profound impact…
Q: What are the benefits associated with using pure functions?
A: Introduction: Pure works are advantageous since they have no side effects. When you desire a clean…
Q: using emo8086, display a set of "*"or * base on the user's integers input (0-9) example: enter…
A: Algorithm: Input any number between 0-9 Iterate a loop from 0 to inputted number do Print "*"…
Q: DNS, including iterated and non-iterated queries, authoritative and root servers, and DNS entries
A: Completely describe the DNS, including iterated and non-iterated queries, authoritative and root…
Q: Exactly what does it mean to engage in "critical thinking"? Developing software follows this rule.
A: Answer:
Q: What stages are involved in modelling completely distributed systems?
A: Introduction:Here we need to give the steps involve in the fully distributed system modeling.
Q: Consider the topic of infrastructure sharing in mobile telecommunications networks briefly.
A: Answer: Infrastructure Sharing Among Mobile Telecommunication Networks: Mobile telephony has been…
Q: Could you kindly describe what occurred during the data breach that was recently made public using…
A: Given: A data violation is a cyberattack that improperly accesses and reveals sensitive data. Any…
Q: The following five criteria need to be satisfied before an ATM that recognises fingerprints may be…
A: Explanation: 1).Fingerprint authentication can be divided into two sub-domains: fingerprint…
Q: What is the correct command to find square root of any number, x. sqrt(x) O What is the output of…
A: Answer:
Q: In artificial intelligence, what is rationality and logical reasoning?
A: There are two terms given related to artificial intelligence: Rationality Logical reasoning
Q: What type of implications may a data breach have for the safety of information stored in the cloud?…
A: The above question is answered in step 2 :-
Q: What motivates us to learn programming languages?Give a reason for your decision
A: In the world of science and technology we are introduced by many technology as times is growing…
Q: The term "privacy" doesn't have a clear definition. The best five things you can do to keep your…
A: privacy, is the aspect of information technology (IT) that deals with the ability an organization or…
Q: When comparing wireless and wired networks, wireless networks have a lesser throughput.
A: Introduction: When properly configured, wired networks offer more longevity and stability than…
Q: Q3/ Read the following code carefully, and then program the same idea using the if-else-if ladder:…
A: The same idea as the code mentioned in the question but here using if-else-if ladder .
Q: 7. The following demonstrate show data can be stored in the data segment and the program rewritten…
A: The following address show the data can be stored in data segment and the program rewritten so…
Q: The term "privacy" doesn't have a clear definition. The best five things you can do to keep your…
A: Given: Dear student we need to explain about Privacy , The best five things we can do to keep your…
Q: In what circumstances may a user's effort to add data to the database result in a record that…
A: Introduction: The purpose of the query is to determine the circumstances under which an authorised…
Q: 3.5.1: Recursive function: Writing the base case. Add an if branch to complete double_pennies()'s…
A:
Q: Someone who examines and evaluates software on computers is known as a software tester. You are…
A: Overview: As a software tester, you're a valuable addition to any organization that employs you. You…
Q: The incoming and outgoing traffic, the database, the rules, and the authentication of domain logins…
A: Deification: One of your computers functions as a domain controller if you utilise Windows Server…
Q: 10110 о о 1011 13 о 11 оо ооооо ооо ооо о о о 12 о ооо о ceil(12.5) Fix(12.5) length('oil and gas')…
A: ceil(N) is a pre-defined MATLAB function that rounds each element of N to the nearest integer…
Q: Firewalls play an important role in network security and protection. Do you remember to explain the…
A: It is critical to comprehend the role of firewalls in network security and protection.Remember to…
Q: Firewalls play an important role in network security and protection. Do you remember to explain the…
A: Given: The importance of firewalls in network security and protection should be described. Remember…
Q: What are the distinctions between top-down and bottom-up information security approaches? Bottom-up…
A: Solution: The difference between the two methods provided for data security: In the top-down method,…
Q: 1. Please provide a brief response. Why do you want to join a software company Support Team?
A: Answer: A customer support job is a phenomenal profession decision for you in the event that you…
Q: What is type casting? Explain implicit and explicit type conversion with example.
A: Typecasting is converting one data type into another one. There are two types of type casting/ type…
Q: What kind of effects did the data breach at Capital One have on the general population? If things…
A: Explanation: Customers' trust in Capital One's financial goods and services was shaken as a result…
Q: What are your options for keeping your social media accounts private?
A: What is the social media platform? Social media is a computer-based technology. In this technology,…
Q: - Computer science : How does the system detect thrashing? Once it detects thrashing, what can…
A:
Q: sures have been taken by the database administrator of a firm to prevent the theft of personal…
A: Introduction: Below describe the database administrator of a firm to prevent the theft of personal…
Q: python: Which one of the following options best describes a good reason to define functions when…
A: 1) A function is simply a chunk of code that you can use over and over again, rather than writing it…
Q: The following matrix illustrates the estimated times (days) of an assignment problem. By using…
A: In polynomial time, a combinatorial optimization technique used to solve the assignment problem is…
Q: In the operations portion of the business plan that you are currently drafting for your firm, how…
A: Answer: The following are five methodologies to assist managers with actually settling clashes with…
Q: Sam has been through his scoring card in previous World Cup games. He has played a total of N games…
A: Input - Output details: First line contains an integer N, denoting the number of world cup matches.…
Q: What kind of effects did the data breach at Capital One have on the general population? If things…
A: Explanation: Customers' trust in Capital One's financial products and services was harmed as a…
Q: 13. if AX= 84; what is the result of executing the instruction CWD AX
A: This instruction (Convert signed Word to signed Doubleword) copies the sign bit of a word in AX to…
Q: 3. Make a program to accept a reading in richter scale of an earthquake and display the extent of…
A: Given :
Q: Could you kindly describe what occurred during the data breach that was recently made public using…
A: Introduction Data breach: A data breach occurs when a hacker gains unauthorized access to and…
Q: To what degree is it feasible to define a digital signature, and if this is the case, how does the…
A: What is a Digital Signature? Message and message digest:A document is called a message.Fingerprints…
Q: To write a main code that calls a function the main code and the function should be:
A: Answer for both mcqs given below with explanation
Q: Please, those of you who are experts, find a solution to this issue as quickly and precisely as…
A: Given:- Please answer the following question accurately and fast, experts. Describe the Software…
Q: Investigate the ways in which gaining data via observation and through the inspection of documents…
A: Analysis of the Observations: One of the methods that is used the most often in the social sciences…
Q: A very successful cinema director named "Chef" decided to solve the problem. When a customer wants…
A: It is defined as a powerful general-purpose programming language. It can be used to develop…
Q: at does Regula expression accept by the following finite automaton?
A: Given:
Q: When calling a function that takes many arguments, it is necessary to determine whether or not the…
A: Introduction: A Python function is a Python representation of a program's method. Certain functions…
Q: What heuristics may you apply to improve the design of your system?
A:
Q: In the next paragraph, you will learn about manual software testing, as well as the advantages of…
A: Manual software testing: It is necessary to have a conversation regarding manual software testing…
Fix please, whats wrong with this. its always Battleship
#include <stdio.h>
int main()
{
char id;
printf("Enter the class ID : ");
scanf("%c",&id);
if(id='B')
printf("The ship class is Battleship");
else if(id='C')
printf("The ship class is Cruiser");
else if(id='D')
printf("The ship class is Destroyer");
else if(id='F')
printf("The ship class is Frigate");
else
printf("Invalid");
}
im not computer subject major
Step by step
Solved in 4 steps with 2 images
- 2. You are to write a program that computes a patient's bill for a hospital stay. different components of the program are The The PatientAccount class The Surgery class The Pharmacy class The main program The PatientAccount class will keep a total of the patient's charges. It will also keep track of the number of days spent in the hospital. The group must decide on the hospital's daily rate. The Surgery class will have stored within it the charges for at least five types of surgery. It can update the charges variable of the PatientAccount class. The Pharmacy class will have stored within it the price of at least five types of medication. It can update the charges variable of the PatientAccount class. The student who designs the main program will design a menu that allows the user to enter a type of surgery and a type of medication, and check the patient out of the hospital. When the patient checks out, the total charges should be displayed.Python Program: Write a program which controls a metro train and that keeps track of stations and who gets on and off. Design and implement a class called train, which has at least the following: At least the following attributes (you can include others): metroID stationNum which keeps track of the station that the train is at. iii. direction which keeps track of the direction the train is travelling in. passTotal which keeps track of the number of passengers currently on the train. A default constructor which sets the metroID to a random number between 1 and 1000, the station number to 0, the direction (int), and the passTotal to 0 (train is empty). A constructor with one parameter; the parameter is the metro id. The constructor assigns the passed integer to the metroID attribute; the rest of the attributes are set as described in the default constructor. Accessor methods for each attributes. Mutator methods for each attributes. nextStation(int lastStation) which determines…Static variables can... ...can be accessed even without creating an object of that class. ...only be accessed by static methods. ...not be accessed using class prefix. ...not be inherited.
- Write a C++ Program Design a class named TermPaper that holds an author’s name, the subject of the paper, and an assigned letter grade. Include methods to set the values for each data field and display the values for each data field. Create the class diagram and write the pseudocode that defines the class. Pseudocode PLD Chapter 10 #3 pg. 468// Start// Declarations// TermPaper paper1// string firstName// string lastName// string subject// character grade// output "Please enter first name. "// input firstName// output "Please enter last name. "// input lastName// output "Please enter subject. "// input subject// output "Please enter letter grade. "// input grade// Set the first name for paper1// Set the last name for paper1// Set the subject for paper1// Set the letter grade for paper1// output "First Name: ", paper1.getFirstName()// output "Last Name: ", paper1.getLastName()// output "Subject: ", paper1.getSubject()// output "Grade: ", paper1.getGrade()// Stop header file #include…1. Object-Oriented concept 2. Interface 3. Inheritance 4. Use scanner class Write a code that converts binary to decimal and decimal to binary, Hexadecimal to decimal. Then by using the arithmetic equation add, subtract, multiply, divide binary numbers as well as a decimal number. It is a must to use object-oriented concepts. you can use Integer.toBinaryString(), Integer.parseInt()A library wants to manage its collection of books and authors more efficiently. They would like to create a Python program to help with this task. The following requirements need to be implemented: Create an Author class with the attributes: name, dob (date of birth), and nationality. The class should have a __str__ method to represent the author in a user-friendly format. Create a Book class with the following attributes: title, author (an instance of the Author class), publication_date, and price. Also, include a class variable all_books that keeps a list of all book instances created.The Book class should have: A __str__ method to represent the book in a user-friendly format. A __eq__ method to compare two books. Two books are considered the same if they have the same title and author. A __lt__ method to compare two books based on their publication dates. A class method get_all_books that returns a list of all books in the library. A static method most_expensive_book that takes…
- Python modules. Define the Artist class in Artist.py with a constructor to initialize an artist's information. The constructor should by default initialize the artist's name to "None" and the years of birth and death to 0. Define the Artwork class in Artwork.py with a constructor to initialize an artwork's information. The constructor should by default initialize the title to "None", the year created to 0, and the artist to use the Artist default constructor parameter values. Add an import statement to import the Artist class. Add import statements to main.py to import the Artist and Artwork classes. Ex: If the input is: Pablo Picasso 1881 1973 Three Musicians 1921 the output is: Artist: Pablo Picasso (1881-1973) Title: Three Musicians, 1921 main.py: TODO: Import Artist from Artist.py and Artwork from Artwork.py if __name__ == "__main__":user_artist_name = input()user_birth_year = int(input())user_death_year = int(input())user_title = input()user_year_created = int(input()) user_artist…Help with Java Programming Create a program that simulates a meeting reservation system. This project is broken up into 4 parts. Part 1: Basic requirements: 1. The program shall allow the user to select from the following options: a. Create a new meeting b. Show meetings on the calendar c. Clear all meetings 2. Each meeting has a subject, start day/time and end day/time a. Subject is a short text description of the meeting b. Day is a date that contains month, day, and year c. Meeting times need only deal with hour and minute 3. When the user wants to create a new meeting, the program asks for the subject, start and end day/times for it and adds it to the calendar a. For the basic requirements, meetings are not allowed to overlap. If a meeting the user wants to schedule overlaps with an existing meeting, the program presents an error message showing which meeting the one the user wants to schedule overlaps with 4. When the user wants to show all meetings for the week, the report…Write a Code in C# Assume that a bank maintains two kinds of accounts for customers, one called as savings account and the other as current account. The savings account provides compound interest and withdrawal facilities but no cheque book facility. The current account provides cheque book facility but no interest. Current account holders should also maintain a minimum balance and if the balance falls below this level, a service charge is imposed. Create a class account that stores customer name, account number and type of account. From this derive the classes cur_acct and sav_acct to make them more specific to their requirements using the concept of Inheritance. Include necessary member functions in order to achieve the following tasks: ▪ Accept deposit from a customer and update the balance. ▪ Display the balance. ▪ Compute and deposit interest. ▪ Permit withdrawal and update the balance. Check for minimum balance, impose penalty, necessary, and update the balance
- Which import statement should be included in the source code of a class so that the Math class is explicitly imported? Choose from the given choices. *In Python write an address book program using object oriented design, you would need at least two things: An “address book” class. A class that will store information about a “person”. Using knowledge of classes, and thinking constructively about the task assigned with object-oriented design in mind. Requirements: A class named `Person`. Class constructor requires first, middle and last name of your person. Class method `set_email` must exist to set the person’s e-mail address, e.g.` "kirk@starfleet.org".` Class method `get_info` that returns a string formed from a person’s first, middle, last names and e-mail address, in this exact form: `"James Tiberius Kirk <kirk@starfleet.org>".` Class method `__str__ that returns the same string as the `get_info` method. A class named `AddressBook`. It must do the following: No class constructor arguments are required, though you should consider some internal data structures for initialization. Class method…Create a program that will implement the following decision table, that classifies a ship depending on its class ID Class ID Ship Class B or b Battleship C or c Cruiser D or d Destroyer F or f Frigate