(Find the number of years) Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Sample Run Enter the number of minutes: 1000000000 1000000000 minutes is approximately 1902 years and 214 days
Q: website design presentation for online catering system (COCS) that enables customers/group to place ...
A: Website designing: Website design is an important phase in website development. To design a website ...
Q: sum = 100 sum = 100 k=1 k=1 while(k<n): while (k<n): sum = k * k +sum for(j = 2; j <n ; j = j+ 2) pr...
A: 1. sum=100 k=1 while(k<n) sum = k*k+sum k= k*3 ...
Q: What difference does it make if computers are ordered or planned architecturally?
A: answer is
Q: Which VLAN on a switch is responsible for managing untagged frames?
A: INTRODUCTION: It is possible to create a virtual local area network (VLAN) to link devices that are ...
Q: Cloud Computing Issues and Benefits to Modern Education (6 paged document inclusive of the cover pag...
A: INTRODUCTION: Educational technology is critical for equipping kids with 21st-century abilities. Clo...
Q: Write a C++ program that will swap two values in two ways: A) swap the values with the aid of a th...
A: We have to write a C++ program for swapping two values using a extra variable without using the e...
Q: A user interface can be extremely constraining in its functionality. For example, the interface desi...
A: Introduction: When used in conjunction with an operating system or GUI (graphical user interface), t...
Q: Can you please explain in details and pesodo code will be enough for explanation This is a question ...
A: Pseudo code is a term which is regularly utilized in programming and calculation based fields. It is...
Q: Write a program to convert a US Customary System length in miles, yards, feet and inches to a Metric...
A: According to the Question below the solution: Output:
Q: explain the difference between (pi), (p-hat), and p-value
A: explain the difference between (pi), (p-hat), and p-value
Q: In this exercise, use the following variables: i, lo, hi, and result. Assume thatlo and hi each are ...
A: Note :- You have not mention the language of the program, So I am doing your program in C++. Your pr...
Q: 4. The value of integer variable t is equal to 10 and the value of the variable p is 2. Find the val...
A: Answer: t=2,p=2
Q: 1) Define a global variable Emps that is an array of pointers to employee structs. 2) Change your cr...
A: According to the question , we have to solve 5 parts in the questions but we will discuss first thre...
Q: I want to throw an IllegalArgumentException type exception in my code even if it does not arise on i...
A: when illegal argument is passed within a method then at runtime an expception called illegalArgument...
Q: Write a program to convert à US length in miles, yards, feet and inches to a Metric System length in...
A: Step-1: StartStep-2: Declare 4 variable miles,yards,feet,inches and Call function input() and go to ...
Q: Write a python program that generates all the permutations of an ordered set that that do not have i...
A: Algorithm: Start Import permutations for itertools Initialize a list s with [1,2,3,4,5] Using permu...
Q: x1, y1) and b=(x2, y2) if defined as : P (a, b)=|x2-x1|+|y2-y1|. Use K-means algorithm to find th
A: - Points P1(3,10), P4(5,8), P5(4,5), P7(3,2) and P8(4,12) are nearest to centroid A1 and forms a clu...
Q: Answer the following questions: What is the C statement to print sampleFloat using a field widt...
A:
Q: Question 3 You are given the description of a hotel management system. Convert the description into ...
A: Class diagram in UML is a type of static structure diagram which describes the structure of a system...
Q: Advanced Physics Cisco's SAFE has several benefits. Which is NOT a benefit? 1. Collaboration of...
A: here we have given appropriate option for the given questions, you can find them in step 2:
Q: 3) Given the grammar below, (a) list all the terminals and (b) list all the non-terminals. ASSIGN - ...
A: Please upvote me please. I need it badly. I am providing you the correct answer below. Terminals...
Q: What is the running time (time function f(n) = ?) of my algorithm with proof: public class Main { ...
A: Given code is public class Main { public static void main(String[] args) { int[] a = { 1...
Q: About c++ programming, I confused about the command srand(x) and time(). Could you please give me an...
A: Here, I have to explain srand and time commands in C++ and also an example program.
Q: ii) Write a JAVA program to input the elements of an integer array of size 10 and then print the sum...
A: Java Program: import java.util.*;class Numbers { public static void main(String[] args) { ...
Q: You have upgraded the operating system on your computer to the most recent version available. As a r...
A: System upgrade is process of replacing or adding new file to get new features in computer system.
Q: Brief explanation: What is Compiler? What is Interpreter? Main question: What is the difference of c...
A: Introduction Brief explanation: What is Compiler? What is Interpreter? Main question: What is the ...
Q: m do not have
A: 2 types of items, 1 is on which tax can be implemented and on other it cant. So what we need is a so...
Q: What exactly is the purpose of paging?
A: A page table stores the definition of each page.
Q: When it comes to I/O bus technology, what exactly is a protocol, and why is it important?
A: The format of signals sent between a sender and a receiver is known as protocol. It is defined as a ...
Q: What languages seem to be used the most to create PC/Mac operating systems? Why? What languages seem...
A: As per our guidelines, we are supposed to answer only 1st three parts. Kindly repost the remaining q...
Q: Aside from the assistive technologies mentioned in this section, list 5 A.T. , its description, and ...
A: Assistive technology helps in delivering products and services to individuals who have disabilities ...
Q: Please write it in Python Write a delete function that takes as an argument a list l and an elem e...
A: Python Code: def delete( l, x ): l.remove(x) return x Explaination : Define a function de...
Q: There 3 red balls and 2 red balls in an opaque bag where 100 people are sitting. Person 1 picks up a...
A: All calculation and explanation is provided below.
Q: Custom Input Output Tests Executions mains 2. 2nd Smallest by Jemar Jude Maranga Enter cus ton input...
A: As given, we need to write a C program that prints the second smallest digit in an array. And the ma...
Q: Find C Language Program Top-Scorer Tomorrow is the closing ceremony for the 2022 World Cup, and as p...
A: Step-1: StartStep-2: Declare a integer variable n and take input from userStep-3: Declare an array a...
Q: When it comes to computer networks, routers are critical components. Identify and define two (2) maj...
A: Routers connects network from one computer to another , means routers receives data packets and also...
Q: Write a Python program to generate the prime numbers from 1 to N. You have to take the N from the us...
A: Start Take input range of prime numbers Find the prime numbers Display the numbers Print Stop
Q: A class needs to contain two generic methods with different number of parameters. Explain the mechan...
A: NOTE :- Below i explain the answer in my own words by which you understand it well.
Q: Assume an ADT Stack which consists of the following attributes: struct StackNode { int item; StackNo...
A: A stack is a data structure that is used to store value in a manner of Last in First out. This means...
Q: Question: To what extent are cryptocurrencies being used to help fund Ukraine's resistance to the Ru...
A: Cryptocurrency: A cryptocurrency or crypto, is a virtual currency secured by cryptography. It is des...
Q: Facts: System design is the process of d
A: Ans- Purpose of System Design- It provides details of data which are sufficient and provides s...
Q: Suppose that a computer has a processor with two L1 caches, one for instructions and one for data, ...
A: Basics:- Consider a system with only one level of cache. In this case, the miss penalty consists alm...
Q: *. I" we will compare and contrast Linux and Windows, what is the most appropriate graphi organizer ...
A: 4) If we compare and contrast linux and windows, the most appropriate graphic organizer can we use i...
Q: What is the difference between a socket and a port?
A: Socket: A socket is a communication port between a computer and a device. The term "Socket" is ma...
Q: Because no wireless networks for the air interface between phones, antennas, and cell towers are ava...
A: In a cellular network, a cell, cell tower, or cell station is a cell-powered cellular facility where...
Q: What are the many types of general concerns that might affect software?
A: Introduction: Software is defined as instructions, data, or programs used to run machines and execut...
Q: Software-Hardware Interfacing is a fundamental element of a working electromechanical system and its...
A: Yes , this is true that Software-Hardware Interfacing is a fundamental element of a working electrom...
Q: diagra
A: Class Diagram in UMLThe class diagram depicts a static representation of an application. It displays...
Q: Explain how the set-associative cache concept combines the concepts of direct cache and fully associ...
A: Introduction: The set-associative cache is a compromise between entirely associative cache and direc...
Q: What exactly are the two varieties of ILP, and how do they differ from one another?
A: Given: What exactly are the two varieties of ILP, and how do they differ from one another?
(Find the number of years)
Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days.
Sample Run
Enter the number of minutes: 1000000000
1000000000 minutes is approximately 1902 years and 214 days
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- (Find future dates) Write a program that prompts the user to enter an integer for today’s day of the week (Sunday is 0, Monday is 1, …, and Saturday is 6). Also prompt the user to enter the number of days after today for a future day and display the future day of the week.[Calculate grades’ average for a student] write a program that calculates the student grades’ average for a semester for the number of courses taken in that semester. Your program should do the following: 1.Read from user the number of courses (n) 2. Then, read the courses’ grades for n times (Hint: use a loop) 3.If a grade is grater than 100 or less than 0, ask the user to enter the grade again. 4.Calculate the average of grades using the following formula: average = (sum of grades) / n 5.Print out the average grade on the screen. Note: Always use appropriate data types.(Find the two highest scores)Write a program that prompts the user to enter the number of students and each student’s name and score, and displays the name and score of the student with the highest score and the student with the second-highest score.Sample RunEnter the number of students: 5Enter a student name: SmithEnter a student score: 60Enter a student name: JonesEnter a student score: 96Enter a student name: PetersonEnter a student score: 85Enter a student name: GreenlawEnter a student score: 98Enter a student name: ZhangEnter a student score: 95Top two students:Greenlaw's score is 98.0Jones's score is 96.0
- Find the number of years and days) Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Here is a sample run: Enter the number of minutes: 1000000000 1000000000 minutes is approximately 1902 years and 214 days in python }Q5: (Count positive and negative numbers and compute the average of numbers) Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values (not counting zeros). Your program ends with the input 0. Display the average as a floating-point number. Here is a sample run: Enter an integer, the input ends if it is 0: 1 2 -1 3 0 The number of positives is 3 The number of negatives is 1 The total is 5.0 The average is 1.25(Geometry: distance of two points) Write a program that prompts the user to enter two points (x1, y1) and (x2, y2) and displays their distance between them. The formula for computing the distance is: Square root of ((x2 - x1) squared + (y2 - y1) squared) Note that you can use pow(a, 0.5) to compute square root of a. Sample Run Enter x1 and y1: 1.5 -3.4 Enter x2 and y2: 4 5 The distance between the two points is 8.764131445842194
- (IN C LANGUAGE) Cumulative Addition: Computer selects a number between 7 and 23 at random. User will only add 2, 3 or 5 numbers to reach that number.For example: To reach 14: User will enter 5 5 2 2 (4 input).Also he can enter 2 2 2 2 2 2 2 (7 input) or 3 3 3 3 2 (5 input). https://www.bartleby.com/questions-and-answers/in-c-language-cumulative-addition-computer-selects-a-number-between-7-and-23-at-random.-user-will-on/0509c740-d993-44ed-a468-7e02da552600Convert feet into meters: Write a program which reads the number in feet, converts it to meters, and displays the result. One foot is 0.305 meters. One foot is 12 inches. Sample Run Enter the number of feet 16.5 16.5 feet is 5.0325 meters 16.5 feet is 198.0 inchesQ1: (Palindrome number) Write a program that prompts the user to enter a three-digit integer and determines whether it is a palindrome number. A number is palindrome if it reads the same from right to left and from left to right. Here is a sample run of this program: Enter a three-digit integer: 121 121 is a palindrome Enter a three-digit integer: 123 123 not a palindrome
- 5- Write a program which read a number consists of 4 digits and find the maximum digit of the number. FOR eg. 1472 the maximum digit is 7 the maximum digit is 9 9835(Display Magic Numbers) Display the first N magic numbers, where N is a positive number that the user provides as input. Here, a magic number is a number whose sum of its digits eventually leads to 1. For example, 1234 is a magic number because 1 + 2 + 3 + 4 = 10 and 1 + 0 = 1, while 1235 is not (1 + 2 + 3 + 5 = 11 and 1 + 1 = 2). Write a program that prints out the first N magic numbers, seven on each line. Here is the sample output: You are required to use the following function prototype: bool isMagic(int value); // Returns true if value is a magic number The outline of this function will be as follows: Step 1: Calculate the sum of digits of value Step 2: Repeat Step 1 until we get a single digit Step 3: If the resulting sum is equal to 1 then it is a magic number, otherwise not(Display Magic Numbers) Display the first N magic numbers, where N is a positive number that the user provides as input. Here, a magic number is a number whose sum of its digits eventually leads to 1. For example, 1234 is a magic number because 1+2+3+4 = 10 and 1 +0 = 1, while 1235 is not (1 +2+ 3 +5 = 11 and 1 +1 = 2). Write a program that prints out the first N magic numbers, seven on each line. Here is the sample output: Enter a positive integer number: 30 1 10 19 28 37 46 55 64 73 82 91 100 109 118 127 136 145 154 163 172 181 190 199 208 217 226 235 244 253 262 You are required to use the following function prototype: bool isMagic(int value); // Returns true if value is a magic number The outline of this function will be as follows: Step 1: Calculate the sum of digits of value Step 2: Repeat Step 1 until we get a single digit Step 3: If the resulting sum is equal to 1 then it is a magic number, otherwise not