Here's a simple Python program that wishes the user based on the current time:
from datetime import datetime
current_hour = datetime.now().hour
if current_hour < 12:
print("Good morning!")
elif 12 <= current_hour < 18:
print("Good afternoon!")
else:
print("Good evening!")
This program retrieves the current hour and prints a corresponding greeting: "Good morning!" for hours before noon, "Good afternoon!" from noon to 5 PM, and "Good evening!" after 5 PM.
you cant
More info;You will write a program that will interact with the user by name and allow for the recording of grades for three classes: Tech, History, and Math. The program will allow the user to determine how many assignments to enter in each class, the name of each assignment, the total value of each assignment, and the users score on each assignment. The program will will write the scores to a file and have the ability to:Tell the user the high and low score in each class along with the assignment nameRepeat entries back to user by assignment name and score to ensure accuracyTell the user their current grade in each classTell the user their current gpa based on the overall percentage of each class
In Linux you can do `time <program>` and it will output the time it took to execute (real/user/sys).
write a program in C that prompts the user with the following lines: a) Add two integers c) Compare two integers for the larger t) Test an integers for odd or even q) Quit
To write the algorithm for a menu-driven C program, start by defining a loop that displays the menu options to the user. Use a switch-case structure to handle user input, allowing each case to correspond to a different option. Inside each case, implement the functionality for that option, and include a break statement to exit the case. Finally, provide an exit option to terminate the program cleanly when the user selects it.
Write a program which displays digital watch on the screen, after taking the hours and minutes from the user.
you cant
programming language paradigm
user-generated content: disclaimer report abuse = Write a program which will rise any number X to a positive power nobtain values of X and n from user? =
data file
write a program to display your name age class schoolname e-mail 2hobby based on choice
Write a program which takes any number of days from the user. the program should display the number of years, number of months formed by these days as well as the remaining days.
Yes only one program at a time as it is a single user OS..
it allows only one user to run a same program as another user at a same time
If you do not have write access to the file and you are not the owner, then you cannot write to the file with a program running as some other user. Although, setting the setuid bit on the executable of a custom helper program or daemon might be set up in some fashion to do what you want.
A program is a series of instructions that directs a computer how to perform the tasks necessary to process data into information. Programmers write a program and then store the program in a file that a user can execute (run). When a user runs a program, the computer loads the program from a storage medium into memory. Thus, a program is entered into a computer'smemory, as it is needed. Programs respond to commands that a user issues.
To write a program on the TI-89 that graphs user-defined equations, you can use the built-in programming capabilities. Start by opening the Program Editor and create a new program. Use the Prompt command to gather the equation from the user, and then utilize the graph command to plot the equation. Make sure to handle any necessary variable definitions and set the graphing window appropriately before executing the graphing command.