Write a program in C that converts temperature given in degree celcius to the temperature in degree Fahrenheit.
Q: Create a class named Poem that contains the following fields: title - the name of the poem (of type...
A: Below attached is the complete program of subclasses and super class : import java.util.*; ...
Q: In Python Write a function shampoo_instructions() with parameter num_cycles. If num_cycles is less t...
A: def shampoo_instructions(user_cycles): if user_cycles<1: print('Too few.') elif user_cyc...
Q: Convert following numbers from one base to another, all steps must be shown. 1. Convert (10000001)2 ...
A: Only the first three parts will be answered. Please upload question again with different parts: 1 Bi...
Q: Question 42: Match each argument within a lookup function with its best description. ...
A: LOOKUP function searches for a value from an array. The VLOOKUP function is a kind of lookup functio...
Q: The relational database below contains two related tables - “Supplier” and “Product”: “Product” ta...
A: A foreign key is used to joins a table to another table by referencing its primary key. A foreign ke...
Q: The database interface of a library allows searching only for a single attribute (such as Titleor Au...
A: Objective: It is stated that the database interface enables users to search only for a particular fi...
Q: Question 60: Match each Solver feature to its best description. Set Objective ...
A: NOTE: SINCE YOU HAVE POSTED MULTIPLE QUESTIONS, WE WILL SOLVE THE FIRST ONE FOR YOU. TO GET ANY PART...
Q: Topic: Server-Side Development (Hacker Defense) In a paragraph or two, describe why prepared stateme...
A: 1)Prepared statements are robust to SQL injection, so it is not important to correctly escape parame...
Q: a) Sana suspects that her computer is infected by spyware. Give two unusual events that may alert he...
A: a) Spyware is software containing a malicious piece of code that is installed on Sana's desktop mayb...
Q: Mention the difference between RAM and ROM.
A: Computer memory: It is the place where data and procedure to perform task is stored and maintained ....
Q: Q1.Write a C++ program that declares three arrays, Markl, Mark2, Result. and carries out the followi...
A: Step 1:- The array is defined as a collection of similar types of data. For Example int A[2] In the ...
Q: Write pseudocode for one of the classic traversal algorithms (preorder, inorder, and postorder) for ...
A: As question is asked for one of the the traversal algorithm.
Q: C++ please add comments so I understand Write a program that takes n elements as input and inserts t...
A: // CPP program to construct binary// tree from given array in level// order fashion Tree Node#includ...
Q: What is the Pseudocode?
A: Here, we import the datetime module to use its built-in functions. The datetime.date() function sets...
Q: Use the web to find multiple reviews and reports on four different personal productivity software su...
A: Productivity software suits G suite is a comprehensive solution of Office. It is a leading personal...
Q: Which protection attributes do we consider when we consider risks to information assets?
A: An information asset is a part identified with arrangement of precise information or data for dynami...
Q: C++
A: An If/else statement is a "single selection" statement true the statement is considered to be true ...
Q: What gets displayed in the browser if the following PHP code is placed in an HTML document? <?php...
A: Adding PHP code to HTML: <!DOCTYPE html> <html> <head> <?php $x= "hi"; prin...
Q: Compare the details of TCP and UDP
A: TCP stands for Transmission Control Protocol. UDP stands for User Datagram Protocol. These are the m...
Q: /* TestCarSensor.java - program to test the CarSensor class.*/public class TestCarSensor{public stat...
A: Errors in CarSensor.java: The class had below errors: Data type was missing for data member: error,...
Q: Lili Company 1 (Use C programming language and struct)Lili has a company, so it has a lot of employe...
A: #include<stdio.h>#include<stdlib.h>#include<string.h>// For functions like strcpy(...
Q: Write the program in python. Write a class called BuildersGame that represents the board for a two-...
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: We have a MediaPlayer interface and a concrete class AudioPlayer implementing the MediaPlayer interf...
A: //Create an interface MediaPlayer having an abstract method //public void play(String audioType, Str...
Q: How exactly would I be able to paraphrase this pseudo-code so that it can make a bit more sense? 1...
A: This is to solve the traffic assignment connection at the same place at one time. The Boltzmann cons...
Q: Why are intervals of probability and consequence preferable to exact numbers in risk analysis?
A: The interval of probability and consequence preferable to exact number in risk analysis. As, The pro...
Q: C++
A: Every C++ program must have only one main function. Since main function of the program is the driver...
Q: In Python Define print_shape() to print the below shape. Example output: *** *** *** ...
A: Program code: #define the function print_shape()def print_shape(): #for loop for x in range(3)...
Q: Difference between Scilab and c++
A: The scilab is a free and open source . It is a cross platform numerical computational package and a ...
Q: Q2. Write a C+ program that prompts the user to enter 3 number (x1,x2,x3) and compute and display th...
A: The main objective of the program, avgstd.cpp to prompt the user to enter the three values and read ...
Q: Convert the following C++ programs into Pep/9 assembly #include <iostream> using namespace std...
A: Actually, given code is: #include <iostream> using namespace std; int minimum (int i1, int i2)...
Q: What is the difference between benchmarking and baselining?
A: Difference between benchmarking and baselining A benchmark is a measurement used to make a compariso...
Q: what is the concept of Optionals in Swift language in a program?
A: Optional type in swift: Optional is a type, which holds "nil" value. The symbol (?) or (!) is sued ...
Q: 1. A memory system with cache memory has an 8-bit word address. The direct-mapped mapping technique...
A: Note: Answering the first question as per the guidelines Given Data : Address size = 8 bits Mapping...
Q: A large company pays its salespeople on a commission basis. The salespeople receive $200 per week pl...
A: import java.util.*;import java.lang.*;import java.io.*; class Codechef{ public static void main (Str...
Q: 1)Create a function that takes Celsius temperature and returns a Fahrenheit. Study CURSOR with param...
A: Calculating Fahrenheit from Celsius temperature with use a cursor FOR loop inside procedure: CREATE ...
Q: Develop a C++ program that produces the following output. The program split the number intotwo parts...
A: #include<cmath>#include <iostream>using namespace std; int main() { double num; cin>&...
Q: Convert the following C++ programs into Pep/9 assembly #include <iostream> using namespace std...
A: The, code has given below:
Q: Write an OCTAVE code that calculates the tip based on amount of bills, using the following rules and...
A: Flowchart: Oval symbol to indicate the start and end of the program. Parallelogram symbol to read t...
Q: Write an application in Java that asks the user to enter two integers, obtains them from the user an...
A: Java Code import java.util.*; class Main { public static void main(String[] args) { Scanner Sc= ne...
Q: If you have 128 oranges all the same size, color, and weight except one orange is heavier than the r...
A: Run a loop until no matrix cell in an iteration is altered. Run a loop that has been nested, then c...
Q: Question 38: An absolute cell reference does not changed when copied to a different cell. Answer...
A: Absolute cell reference: This cell reference does not change its value when copied to the different...
Q: 1-12 Noting that 3² = 9, formulate a simple procedure for converting base-3 numbers directly to base...
A: Given, 32=9 (2110201102220112)3 is the number given in base 3. It can be conv...
Q: 17.37 PRACTICE: Vectors**: Longest sequence C++ A common statistic of interest is the longest s...
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: What are the phases in the systems development life cycle (SDLC) - Name five different systems devel...
A: EXPLANATION An effective System Development Life Cycle (SDLC) should show a high-quality system that...
Q: In Python Define a function print_total_inches, with parameters num_feet and num_inches, that prints...
A: Program code: #define the function print_total_inches()def print_total_inches(num_feet, num_inches):...
Write a
Step by step
Solved in 3 steps with 1 images
- Write a complete C++ program that prints the change in population of the the United States: p = p + Bp Dp where p is the population, B is the birth rate of 12.4 births for every 1000 people (12.4/1000) each year, and D is the death rate of 8.4 for every 1000 people (8.4/1000). In 2017, the population of United States was 325.7 million. Your program should ask the user for the number of years and print expected population over those years starting from 2017. Each line should have: the year and the population (in millions). A sample run: Please enter the number of years: 10 Year 2017 325.70 Year 2018 327.00 Year 2019 328.31 Year 2020 329.62 Year 2021 330.94 Year 2022 332.27 Year 2023 333.60 Year 2024 334.93 Year 2025 336.27 Year 2026 337.61Write a C++ program which calculates percentage of three subjects and then prints, the student is Fail if marks are less than 50, got D grade if marks are equal to 50 percent or above, student got C grade if marks are 60 percent or above, student got B grade if marks are equal to 70 percent or above and student got A grade if marks are equal to 80 percent or above.1. Write a complete C program that reads the temperature of five cities in the last week then print out the coldest city in each day and hottest day in each city.
- Write a program in c that calculates the student grades’ average for a semester for the number of courses taken in that semester. Your program should do the following: Read from user the number of courses (n) Then, read the courses’ grades for n times (Hint: use a loop) If a grade is grater than 100 or less than 0, ask the user to enter the grade again. Calculate the average of grades using the following formula: average = (sum of grades) / n Print out the average grade on the screen. Note: Always use appropriate data types.Write a c program that calculates the potential energy of 3 charges q1=1, q2=2, q3=3 located at points (1,2,3), (3,−4,−5), and (−4,2,−6) respectively. The units are coulombs forcharge and meters for coordinates. The energy is given by the expression; U=k(q1q2/r12+q2q3/r23+q1q3/r13) where rij is the distance between the charges qi and qj, and k= 9×109in SI units.Your program should print the result on the screen.Write a program in C that asks the user to enter a number of seconds and works as follows:• There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes in that many seconds. If there are leftover seconds they should be displayed also on a separate line.• There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours and minutes and leftover seconds in that many seconds.• There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours and minutes and leftover seconds in that many seconds. Pay close attention to how the output is formatted in the example. If there are 0 days, hours, minutes or seconds that line should not be printed.
- Make a C program Write a program that will calculate and print out bills for the city water company. The water rates vary depending on whether the water is for home use, commercial use or industrial use. A code of H means home use, a code for c means commercial use and a code of I means industrial use. The water rates are computed as follows: code H: P250.00 plus P0.002 per gallon used code c: P5,000.00 for the first 4 million gallons and P0.002 for each additional gallon. code I: P8,000 if usage is more than 4 million gallons but not moe that 10 million gallons and P18000 if usage exceeds 10 million gallons.Write a program in c++ for determining if a year is a leap year. In the Gregorian calendarsystem you can check if it is a leaper if it is divisible by 4 but not by 100 unless it is also divisible by 400.For example, 1896, 1904, and 2000 were leap years but 1900 was not.Write a program that takes in a year as input (as a command line argument) and prints the string "{year} was a leap year'' if true and "{year} was not a leap year'' if false.Note: background on leap year https://en.wikipedia.org/wiki/Leap_yearHere is a possible example call to the program .\isleapyearc 1896 output: 1896 was a leap year Here is a negative example call to the program .\isleapyearc 1897 output: 1897 was not a leap year with note You are supposed to get the year from command line arguments. You are getting it from stdin c++ languageWrite a program that calculates and writes the product of odd integers from 1 to 15. It must be written in the C programming language. Thank you from now.
- Write a program in C++ that : • Asks user to input an integer numbers, until the user input 0. • Prints how many of these numbers are positive, negative, even and odd,Write a C++ program that accepts a positive integer (orstring) as input and then displays a new number obtained by replacingevery pair of repeated adjacent digits by a single digit. For example,the integer 558834226 has three repeated adjacent digits: 55, 88 and 22.This means that your program should display the integer 583426 insteadof (558834226). You may assume that no digit is repeated more than twice.Write a program in C++ that calculates the total grade of a student for N number of quizzes. Read value of N from user, and then ask the student marks in quiz 1, and total marks of quiz 1 and so on till N. Display the total of all the quizzes marks and the total marks as given below. Calculate the overall percentage (sum of the total points earned divided by the total points possible) and output it as a percentage. Sample input and output: How many quizzes? 3 Input your marks in quiz 1: 10 Total marks of quiz 1: 10 Input your marks in quiz 2: 7 Total marks of quiz 2: 12 Input your marks in quiz 3: 5 Total marks in quiz 3: 8 Your total is 22 out of 30, and percentage is 73.33%.