CODE USING C++ Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong". It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct. Now, will you take on this task? Input A line containing four one-letter strings separated by a space. c·O·D·y Output A line containing a string. Correct
Q: When does caching go wrong?
A: Introduction: When programmes display local property, temporary storage is the best option. However,...
Q: Write a python program for number of circular permutations of m different things taken all at a time...
A: Number of circular permutation =(n-1)! Start define function circular takes n as a parameter init...
Q: What is the definition of system testing? Describe the many sorts of testing methodologies.
A: Introduction: System testing is a sort of black box testing approach used to assess a system's overa...
Q: Give state diagrams of DFAS recognizing the following languages. In all parts the alphabet is {0,1} ...
A: The language is empty. And there must be at least one state for DFA. So, we could create a non-final...
Q: What is the distinction between chopped text and copied text, and where does each go?
A: The cut order commands the chosen information from its unique position, while the copy command makes...
Q: Make a thorough note on software testing concepts, issues, and techniques.
A: This question tells about software testing concepts, issues, and techniques.
Q: Describe enterprise storage systems, file servers, network attached storage, RAID systems, organisat...
A: A storage device is a system or structure that is used to store the data either temporarily or perma...
Q: Herman Hollerith's contribution's include: a) the ENIAC COMPUTER b) VLSI c) an electronic punc...
A: Introduction: Here we are asked a MCQ question , and we are required to tell which option is correct...
Q: create a word cloud in python use wine review dataset word cloud like show in below picture
A: Explanation: See below steps code and output. This is a python code for word cloud
Q: Computer science Discuss the benefits and drawbacks of regular software upgrades in a few sentences...
A: Introduction: We understand that it is the process of replacing software products with newer version...
Q: Single form could be saved as an executable extension with: O EXE None of the above Frm VRD
A: FRM is file extension is contains structure data of a table of MYSQL data base
Q: Why does the capacity of the RAM influence the computer's performance? Justify your response.
A: To explain why the capacity of the RAM influence the computer's performance.
Q: Oracle SQL Packages Create a stored procedure to display top three of cheapest course in terms of ...
A: To return the smallest value of the selected column we use the MIN( ) function. And to return the ma...
Q: PHP includes all the standard arithmetic operators. For this PHP exercise, you will use them along w...
A: PROGRAM INTRODUCTION: Start the required tag for the HTML file that includes HTML, HEAD, META, and ...
Q: vhat is the difference between network architecture and application architecture
A: Application Layer: In the Open Systems Interconnection (OSI) model and Transfer Control Protocol (TC...
Q: an you explain DMA for object and array of object in C++ with an easy short example? I am having a h...
A: Here, I have to explain dynamic memory allocation for object and an array of object in C++.
Q: Host A and Host B are connected by a single 2 Mbps (Megabits per second) link that has a propagation...
A: The answer as given below:
Q: Describe how an interface designer may safeguard users of a collaborative interface (such as e-mail ...
A: Users are brought together by collaborative interfaces through shared information, actions, and expe...
Q: Please explain the ChIP assay. Why is it employed? Please provide examples.
A: Project Integration Management Project integration management is the mechanism where various proces...
Q: To be able to examine and resolve troubleshooting difficulties, all technicians require the right to...
A: Operating system technicians are responsible for installing, configuring, and maintaining the operat...
Q: Define and describe two (2) upcoming computer technology devices and systems that can provide extra ...
A: Actually, there are two emerging computer technologies.
Q: Consider the three words in the network A, B, and C. The host sends a 700-bit packet to the host saw...
A: Intro In a network having three hosts A, B, C. the Total end to end delay for transferring a packe...
Q: More Malware! Ugh! For this question select a specific type of malware (Trojans Horses, Viruses, Wor...
A: Actually, computer is an electronic device which takes input and gives the output.
Q: Answer the following questions: 1. What are the Ten Commandments of Computer Ethics?
A: (Note: According to given guideline, we are supposed to answer only one question, Please repost othe...
Q: A process that spawns or initiates another process is known as. a. a child process b. forking c. bra...
A: Intro The process initiating another process Forking happens when developers take a copy of source ...
Q: Assume we have a computer with the following specifications: a magnetic disc with a delay of 15 mill...
A: Intro In this problem the computer has a following characteristic: The access latency of magnetic ...
Q: Why are there so many different partitioning algorithms in use are they so different? by operating s...
A: Given: Your question related to different partitioning algorithms in use by the operating system a...
Q: .6 Give state diagrams of DFAS recognizing the following languages. In all parts the alphabet is {0,...
A: Here, I have provided the DFA for given language. We have two or more final state because we have "o...
Q: computer science : What are the many sorts of maintenance and what are the differences between them?
A: Introduction: Maintenance is the process through which organisations keep their resources in good co...
Q: Make a distinction between the Operating System and the System Programs. Provide examples and then e...
A: The solution to the given problem is below.
Q: clared a dynamic array after the number of records is known. After data is read, perform the analysi...
A: In the below code the input data is stored in a Data.csv file as per the below example. ID,Income,Ho...
Q: Consider an array of N integers. Describe an algorithm with an 0(N) runtime that processes the array...
A: Please refer below for your reference: Below is a O(n) approach: I have counted the number of null a...
Q: What is the reason for the inventory being issued, and what essential principles does it reveal?
A: What is the main reason for inventory? The primary objective in terms of holding inventory...
Q: Binary search necessitates the sorting of data before it can be used. If we start with unsorted data...
A: Introduction: Binary search requires the array to be sorted before searching an element in the array...
Q: Why would a system designer want Unicode to be the default character set for a new system? What reas...
A: Intro Reasons for the system designer to use Unicode as default character set: Operating systems s...
Q: 12. Perform the given calculations in base-five notation. Assume that the numerals are already writt...
A: Base 5 notation numbers contains number from 0 to 4.
Q: What exactly is database security? What are two methods for keeping a database safe?
A: Introduction: What exactly is database security? What are two methods for keeping a database safe?
Q: gram to decrypt the enclosed text based on the attached key. alphabet = "abcdefghijklmnopqrstuvwxyz"...
A: CODE WITH COMMENTS alphabet = "abcdefghijklmnopqrstuvwxyz"key = "fcpevqkzgmtrayonujdlwhbxsi"text = "...
Q: 3. Change the following IPV4 addresses from binary notation to dotted decimal notation. [ a. 1000001...
A: We have 2 IPv4 addresses given in binary notation. We need to convert these addresses from binary to...
Q: Explain the operation of virtual memory in operating systems.
A: Introduction: The operating system moves data from inactive programmes out of RAM and stores it in v...
Q: Explain the CNSS security Model. What are the three dimensions of it?
A: Introduction: CNSS security model is a three-dimensional model which was developed by John McCumber ...
Q: Assist with Android to Mac file transfer. I'm seeking for a different option. Who knew there was ano...
A: Intro iOS is the operating system in mac and android is itself an operating system. Google's Andro...
Q: open source in computer science?
A: What is open source? It can be a software or a platform that is accessible to anyone and it also all...
Q: How to add a transparent black border around all the links on a HTML page only when the mouse is ove...
A: Given :- How to add a transparent black border around all the links on a HTML page only when the mou...
Q: Given the interfaces of today, why would anyone need anything more than a browser to make technology...
A: Interaction between humans and computers is ever changing day by day. Human computer interaction is ...
Q: Write a Java program to take a string & a number(N) from the user and print the string made starting...
A: 1) Beow is JAVA Program to read a string and number from user and print the string that starts with ...
Q: The data content lost inside, when computer turned off * O RAM O None of available choices O Power s...
A: Actually, RAM stands for Random Access Memory.
Q: C++ PROGRAMMING EXERCISE Given an array of integers below, write a program to reverse all the elemen...
A: Please refer below commented code and screenshot for your reference: Language used is C++: For testi...
Q: Create a Java class that accepts a number The input number must be between 10 and 99. You must vali...
A: Your java program is given below as you required with an output.
Q: Describe the distinctions between replication and duplication.
A: Introduction: the distinction between DNA replication and duplication is that replication primarily ...
CODE USING C++
Can you identify if Cody's name is spelled right? If so, then make a
It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.
Now, will you take on this task?
Input
A line containing four one-letter strings separated by a space.
Output
A line containing a string.
Step by step
Solved in 3 steps with 1 images
- Screel ... Part 3-Change In this part, you are asked to write a C-program that makes change for amounts less than one dollar. User input should be a positive integer value less than 100, which represents an amount of cash, in cents. The program should prompt the user for a such a positive integer value, and should then print the original amount of cash, together with a set of coins (quarters, dimes, nickels, cents) that could make up that amount. The program should produce change containing the minimum number of coins required for the given amount. The output should be in a natural, non-stilted form. For example, input of 58 should produce the following output: 58 cents: 2 quarters, 1 nickel, and 3 cents. rather than something like 58 cents: 2 quarters, 0 dimes, 1 nickels, 3 cents. Invalid input (0, negative values or positive values of 100 or more) should be rejected by your program as shown in the examples below. Your program should repeatedly prompt the user for the next amount,…In C++ write a program that prints the day number of the year, given the date in the form month-day-year. For example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. The program should check for a leap year. A year is a leap year if it is divisible by 4, but not divisible by 100. For example, 1992 and 2008 are divisible by 4, but not by 100. A year that is divisible by 100 is a leap year if it is also divisible by 400. For example, 1600 and 2000 are divisible by 400. However, 1800 is not a leap year because 1800 is not divisible by 400. Make it fast...C++ One way to create a pseudo-random three digit number (and we are including one- and two-digit numbers as well) is rand()%1000. That gives numbers from 000 to 999, which is just what we want. Write a program that generates a random number and asks the user to guess what the number is. If the user's guess is too high then the program should display "Too high, try again." If the user's guess is lower than the random number the program should say "Too low, try again." The program should use a loop that repeats until the user correctly guesses the random number. The program should keep track of the number of guesses the user makes. When the user correctly guesses the random number, the program should display the number of guesses. As specified, have the program tell the player how many guesses were used. A good player should always be able to find a three-digit number in ten or fewer guesses. The programs needs to include a menu that allows the user to select easy (3 digit number),…
- in C++ Review - for loops, if-else, switch, functions Many computer applications, such as Microsoft Excel, can compare date values that occur after January 1, 1900. For example, these programs can determine if 06/06/99 is less than (comes before) 11/01/00. They use January 1, 1900 as their reference point. This becomes day 1. All other dates are calculated as to the number of days they are relative to January 1, 1900. For example January 2, 1900 is equal to 2. October 31, 2000 is equal to 36829. Notwithstanding, Excel cannot tell you which day of the week these two dates fell on. For this assignment, you are to write a C++ program which will: Have the User enter in a date. Calculate the "day value" of that date. For this you will need to write several functions as stated below. A function that determines if a year is a leap year. A function that determines the number of days in a month. Remember if the year is a leap year then February has 29 days. You…CODE USING C++ 3. Place Values by CodeChum Admin Manipulating values from a series of numbers is fun, but let's try exploring the use of loops a little more. How about printing out each digit of a number by place values, in ascending order? Instructions: Create a variable and input a random positive integer. Using while loop, print out each digit of the inputted integer in separate lines, starting from its rightmost digit until the leftmost digit of the number. Tip: Use % 10 to get the rightmost digit, and / 10 to remove it from the number. Another tip: don't forget to consider the case wherein the input is `0` Input A line containing an integer. 214 Output Multiple lines containing an integer. 4 1 2c++ Write a program to use enumeration type to represent the seven colors of the rainbow, i.e. red, orange, yellow, green, blue, indigo and violet, as the enumerators in sequence, and red starts from 1. Then, ask the user to choose a value between the range of 1 – 7. If the user enters 3, the output will tell the user yellow has been chosen, and also display the previous and next colors of the chosen colors. If the user enters 1 or 7, display the chosen color and only next/previous color is displayed accordingly. Write the program in an infinite while loop, until a number which is beyond the range of 1 – 7 is entered. The sample output is as follows, Enter a number in the sequence of the rainbow color (1-7): 7 Violet is chosen. The previous color is indigo. Enter a number in the sequence of the rainbow color (1-7): 1 Red color is chosen. The next color is orange. Enter a number in the sequence of the rainbow color (1-7): 3Yellow is chosen. The previous color is orange and next…
- using c++ Write a program that computes and displays the charges for a patient's hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient, the following data should be entered: The number of days spent in the hospital The daily rate Hospital medication charges Charges for hospital services (lab test, etc.) The program should ask for the following data if the patient was an out-patient: Charges for the hospital services (lab test, etc.) Hospital medication charges The program should use two functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out-patient information. Both functions should return the total charges.This assignment is to modify the rock-paper-scissors game f. As before, each of twoplayers enters P, R, or S. The program will announce the winner and the basis for determining thewinner: Paper covers rock, Rock breaks scissors, Scissors cut paper, or Draw, nobody wins.The players must be able to enter either upper-case or lower-case letters.There are two major changes. First, you will need to create an enumeration called choices thathas three values, ROCK, PAPER, and SCISSORS. You should then use the typedef keyword to createa type for this enumeration named Choice. When you read the player's choice in your getThrowfunction, you will need to return a Choice for that player rather than a char as before. This makesit so that the only part of the program that deals with character type variables is the getThrowfunction; the rest of your program should always use variables of the enumerated Choice type. Thismeans that your checkWinner function will take two Choices as parameters…The internet enables people to network, join a cause, take a poll, etc. Your program will prompt the user for a description of a poll to be taken and then prompt 5 users for a response of 1-10 (1 being a 'poor' response; 10 being the 'best' response).Your program does not have to validate that the user entered 1-10. We'll do that type of checking later.Your program must use a string data type to store the poll description and a Python list data type to save the integer responses of the 5 user responses.Your output should list all the responses stored in the list, the highest given response, the lowest given response and the average of the 5 responses. See sample input and utput below.Review powerpoint 3, slide 21 for an example if you need one. Sample interactive run of your program: Give a simple description of the poll to be takenRate your understanding of the first 3 zyBook chaptersEnter a 1-103Enter a 1-1010Enter a 1-104Enter a 1-102Enter a 1-105Sample outputRate your understanding…
- CODE USING C++ We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate where among the 5-digit integer is the largest one. There are only 4 possible cases for this mission: if the largest digit is the first digit, print "Leftmost" if the largest digit is the third digit, print "Middle" if the largest digit is the last digit, print "Rightmost" if none of the above is correct, print "Unknown" Now, show me how far you've understood your lessons! Input A line containing a five-digit integer. 14632 Output A line containing a string. MiddlePart 3– Change In this part, you are asked to write a C-program that makes change for amounts less than one dollar. User input should be a positive integer value less than 100, which represents an amount of cash, in cents. The program should prompt the user for a such a positive integer value, and should then print the original amount of cash, together with a set of coins (quarters, dimes, nickels, cents) that could make up that amount. The program should produce change containing the minimum number of coins required for the given amount. The output should be in a natural, non-stilted form. For example, input of 58 should produce the following output: 58 cents: 2 quarters, 1 nickel, and 3 cents. rather than something like 58 cents: 2 quarters, 0 dimes, 1 nickels, 3 cents. Invalid input (0, negative values or positive values of 100 or more) should be rejected by your program as shown in the examples below. Your program should repeatedly prompt the user for the next amount, until an…Write a program called palindrome.cpp. The program should have the two functions listed below. Your program should loop until the user enters “quit". The determination of a word being a palindrome or not should be case insensitive. void getWord ( string& word ): This function is responsible for getting the word from the user. void isPalindrome ( string& word, bool& result ): This function is responsible for determining if a word is a palindrome or not. It will return true if the word is a palindrome and false if the word is not a palindrome using a boolean variable passed by reference. Sample Output 1 What is the word? Kayak Kayak is a palindrome Sample Output 2 What is the word? APPLE APPLE is not a palindrome Notes • Remember that you can access each character in a string by using the index operator, i.e., word[3], and the highest index of any string is the length of the string minus one. • To handle the case-insensitivity part you may need to work with functions that change the case…