Counting the Number of Days between January 1, 1900 to today (whenever the program is run) Using Virtual Studio that is installed on the Virtual Machine, write a program that computes and displays the number of days that have elapsed between January 1, 1900 and today (the day the program is run).
Q: Display all the numbers the user entered that are greater than 100. Numbers smaller than 100 are…
A: Given questions are not interlinked. As per our guidelines only one question will be answered. So,…
Q: A variable’s __________ is the time period during which the variable exists in memory while the…
A: Lifetime: The lifetime of a variable is the time that includes the variable existence in the…
Q: Write a program that plays a guessing game with the user. The program should have the right answer…
A: Please find the answer below :
Q: My library > CS 109: Python Programming for Engineers with MatLab home > 21.6: LAB*: Program: Grade…
A: Solution: The python code for above question is given below.
Q: Invoking System.currentTimeMillis() returns the elapsed time in milliseconds since midnight of…
A: Below I am providing the whole java code with required explaination .. please go through that .
Q: Write a program to help a local restaurant automate its breakfast billing system. The program should…
A: Program: //Including header file #include<iostream> #include<string> #include…
Q: Design a program to do the administration for a fun run competition. Participants can run a distance…
A: NOTE : SINCE THE PROGRAMMING LANGUAGE IS NOT DEFINED. SO THE PROGRAMMING LANGUAGE USED HERE IS…
Q: In a library catalog, the followings are stored about each book: the author and the title, available…
A: Sol: Algorithms Step1: First of all we have taken input n for count the book Step2 then we have…
Q: Project Name: Chpt2_Project Class Name: Chpt2_Project Write a Java program that calculates how fast…
A: Here, in this program, you need to calculates how fast a bucket will fill up. Program inputs which…
Q: Use Java 5-1) (Count positive and negative numbers and compute the average of numbers) Write a…
A: Note: The below program has been complied and executed in NetBeans IDE 8.2
Q: 1. In the game of Monopoly, a pair of dice are rolled to move a player's piece around the board. If…
A: %fifty times rollingplayer1_total_double = 0;player2_total_double = 0;player1_totalSteps =…
Q: Program in python Specifications Develop a program to allow the user to interactively enter…
A: Python program for above : # get the order print("Enter your order: ", end =" ") order =…
Q: Use the methods of the Math class. Instructions: 1. Create a console program that will perform the…
A: Given data, Use the methods of the Math class. Instructions: 1. Create a console program that will…
Q: Write a program that computes the cost of painting and installing carpet in a room. Assume that the…
A: In this question, we will create a class ROOM to store the properties of the room and to calculate…
Q: Write a procedure that generates a regular heightfield in data-files/model/heightfield.off with…
A: the solution for the above-given question is given below:
Q: A savings account is opened with £100000 at the beginning of January. A deposit is then made of…
A: As the programming language is not mentioned here, we will be using PYTHON The complete code is…
Q: Print a table that contains the following information for each month. The number of months that have…
A: CODE- #python code#maindef main():# set the initial month and declarationmonth = 1old_adults =…
Q: Write a program that asks the user to enter today’s sales for five stores. The program should…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Here's the C++ Programming Exercise: The population of town A is less than the population of town B.…
A: The population of town A is less than the population of town B. The population growth rate of town…
Q: Certain programs facilitate the construction of other programs, and can be used over and over again…
A: Mojoko submitted many programs and their data at a Computing Centre, to later get her results…
Q: In C++ language, create a program that gets quarterly sales from a user, and calculates the total of…
A: pseudocode :
Q: In a 50-person class, students with grades below 70 are considered unsuccessful. Write an algorithm…
A: Algorithm: Step 1: Start Step 2: Declare grade variable Step 3: Input grade Step 4: if…
Q: he assignment is how to list out the Parts and Chapters of a book.The user enters the number of…
A: Required: The assignment is how to list out the Parts and Chapters of a book. The user enters the…
Q: before a program can run, it must be loaded in memory, write in detail this process.
A: A program is a code of bits, the way a program is loaded into memory is that a block of memory is…
Q: Write a program that, given the time duration of a task in the number of hours, minutes, and…
A: I have provided c++ code in step2
Q: General Instructions: 1. Exam part will be available for the whole day. 2. Program will be graded as…
A: - We have to the last sum divisibility problem.
Q: Suppose the weekly hours for all employees are stored in a table. Each row records an employee’s…
A: Explanation: Work-hours of every worker at intervals every week is keep in empWorkHours[][] on day…
Q: Design a program to do the administration for a fun run competition. Participants can run a distance…
A: Program:-(in python3)…
Q: Objects.bxt x 3.50 0.09 3.38 0.04 26.52 0.23 2571.35 1.75 96.95 0.09 An object will float if its…
A: Things to do in the program: Open file in reading mode Read the numbers from file and store it in…
Q: KEYBOARD ENTRY EXAMPLE Sample input and output for keyboard entry: Note: Your program does NOT have…
A: // Note: I have given the answer as asked in the question //Note: This is the standard solution…
Q: Which of the following is not one of the three operations that most computer programs perform?…
A: The given problem is related to Operating system processing and the reuqirment is to identify the…
Q: Write a program that helps the teacher to correct the exam automatically. The program should work as…
A: Accept input as string Then count the number of matching responses of each student Based on the…
Q: What will be the following code do? A = 100; if(A>99) clear A; end A is retained in the workspace A…
A: To find: To find out the output of the given code Given: A=100;ifA>99 clear A;end
Q: PYTHON!!!! Teachers in most school districts are paid on a schedule that provides a salary based on…
A: 1. Input the starting salary2. Input the annual % increase3. Input the number of years 4. Declare…
Q: (Racing car) Write a program that simulates car racing, as shown in Figure 9.29b– d. The car moves…
A: Solution:-- 1)To draw a fan and a moving car. 2)The above requirements are drawn using python code.…
Q: Write a program that takes balance of a user's account as input.it should then ask the user how much…
A: The answer is given in next step:-
Q: In Python: A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth…
A: In this code, we are checking that the year entered by user is leap year or not, if the year is leap…
Q: Write a program to help a local restaurant automate its breakfast billing system. The program should…
A: source code main.cpp #include<bits/stdc++.h> using namespace std; struct menuItemType {…
Q: Write a program to help a local restaurant automate its breakfast billing system. The program should…
A: C++ code is given below
Q: Change the program above to add the numbers 157 and 13. (Hint: these numbers are constants and…
A: Mail box Mnemonic code Numeric code Instruction 00 IN 901 ;input 1st number 01 STO 99 399…
Q: Q1/ Write a program that reads from the user the number of students in the class and their grades i…
A: Code:Specific language is not mentioned so i am giving the code in c++ langauge: #include…
Q: Create a program that takes in a student’s full names and marks for 3 In-class exercises, then…
A: Since the programming language is not mentioned in the question. So, we have solved this question…
Q: Combine your Game1 program (the guessing game) with the graphics program I posted. Your "windows"…
A: import randomfrom graphics import *def main(): win = GraphWin("GameWin Program", 300, 300)…
Q: Write a program to help a local restaurant automate its breakfast billing system. The program should…
A: We need to continuously take orders till user wants to close the order
Q: At a certain school, student email addresses end with @student.college.edu, while professor email…
A: Lets see the solution.
Q: 4. Sum of Everything by Jemar Jude Maranga Write a program that will repeatedly ask the user to…
A: Program is in step 2. In the program, as you said input should be in series and output is the sum of…
Q: A statement... O Is an offset unit of code guarded or governed by a condition, loop or function O…
A: 1. A statement is an offset unit of code guarded or governed by a condition, loop, or function The…
Q: Java or C++ program to display the given output -----Library System---- 1. Add a Student 2. Add a…
A: /* import packeges and necessary classs */import java.lang.*;import java.util.Scanner;import…
Q: rite a program that prompts the user to enter:
A: Approach Use a do-while loop within if statement calculate the population of town A…
Q: Write a program in C++ that will print the number of grades (A, B, C, D and E) for 20 students…
A: #incude<iostream> using namespace std; class Grade { int students[20]; //number of students…
csc231
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Create a program that takes in a student’s full names and marks for 3 In-class exercises, then calculate the average of this marks. This average mark is then categorized as follows: Marks obtained Grade Level Message 80 – 100 1 Magnificent!! 70 – 79 2 Excellent!! 60 – 69 3 Good work!! 50 – 59 4 Good!! 0 – 49 0 Fail – Try again next Year!! Greater than 100 or less than 0 X Invalid Marks!!, Marks too high. Or Invalid Marks!!, Negative marks not allowed. Sample run 1: Enter student full names: Goodluck Johnathan Enter 3 marks separated by spaces: 78 94.6 88 Output: Student name: Goodluck Johnathan Grade Level: 1 Comment: Magnificent!! Sample run 2: Enter student full names: Ellen Johnson Sirleaf Enter 3 marks separated by spaces: 200 104.87 99.9…Invoking System.currentTimeMillis() returns theelapsed time in milliseconds since midnight of January 1, 1970. Write a programthat displays the date and time. Here is a sample run: Current date and time is May 16, 2012 10:34:23Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N). Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee. The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.The program must also calculate the total number of participants and the total number of club members who registered.The program must identify the category with the…
- Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N).Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee.The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.The program must also calculate the total number of participants and the total number of club members who registered.The program must identify the category with the…Write a program in python that allows an instructor to calculate the final grade for the students in a class. Use the following menu to drive the program: 1. Enter new student information 2. Exit When the user chooses (1) they will be prompted for the following information: Number of Exams and the grade for each Number of Quizzes and the grade for each Number of Homework assignments and the grade for eachInput validation: All grades entered must be between 0 and 100. The final grade is then calculated as follows: Exams: 40% of final grade Quizzes: 40% Homework: 20% Display the final grade for each student. The user may enter as many students as possible until they choose to quit.In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73
- Write a multithreaded Java program that randomly selects and calculates any one task from any five given tasks. The five tasks are outlined as under: Task1: calculates logarithm of numbers between 50-75. Task2: calculates average of numbers between 101-200. Task3: calculates sum of odd numbers between 201-300. Task4: calculates average of even numbers between 351-425. Task5: calculates sum of numbers between 450-555. 2-Modify the previous multithreaded program such that executes all 5 tasks and displays the obtained resultsUse Python for this question: Craps is a single player dice game, that proceeds as follows: the player rolls 2 six-sided dice once if the total is 7 or 11, the player wins if the total is 2, 3 or 12, the player loses otherwise, the game continues, ... see 2 ... the player the continues to roll the dice repeatedly, until ... the total is the same as the original total (from 1), in which case the player wins the total is 7, in which case the player loses Write a function craps that simulates a single game of craps (may be many rolls) and returns 1 if the player wins and 0 otherwise. Attached in the image is the output for this question:Write a program in Restaurant.cpp to help a local restaurant automate its breakfast billing system. The program should do the following: Show the customer the different breakfast items offered by the restaurant. Allow the customer to select more than one item from the menu. Calculate and print the bill. Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item): Name Price Egg (cooked to order) $1.99 Golden-Brown Pancake $1.99 French Toast $2.99 Muffin $0.99 Bagel w/ Spread $1.20 Fresh Fruit $3.49 Steel-Cut Irish Oatmeal $4.69 Coffee $1.50 Pot of Assorted Tea $1.75 Hot Chocolate $1.75 Define a struct named MenuItem with two components: name of type string and price of type double. Use an array of the struct MenuItem to store each menu item and a parallel array to store the quantity of each item a customer orders. Your program must contain at least the following functions: Function getData: This…
- Create a program with c++ that allows you to view and edit the sales amounts for each month of the current year. Example of how the program should look: Console Monthly Sales program COMMAND MENU add - Add sales for a specified month view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for the year exit - Exit program Command: add Three-letter Month: jan Sales Amount: 10317 Sales amount for Jan is 10,317.00. Command: add Three-letter Month: feb Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: view Three-letter Month: jan Sales Amount: 14317 Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: totals Yearly total: 29,610.00 Monthly average: 14,805.00 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye!…in python “c” represents a crop and “w” represents a water source. Each water source hydrates the eight tiles around it (including itself) Input the number of rows and columns in the crop field:ROWS> 4COLUMNS> 4Input each row of the crop field.ROW0> c c c wROW1> w c c cROW2> c c c cROW3> c w c cNot all crops are watered!OUTPUT FalseThe following crops are not watered:OUTPUT [(2, 3), (3, 3)] Input the number of rows and columns in the crop field:ROWS> 7COLUMNS> 1Input each row of the crop field.ROW0> cROW1> wROW2> cROW3> cROW4> wROW5> cROW6> wAll crops are watered!OUTPUT TrueWrite a Java program to file student information in a student directory of your project folder. Create a student directory in your project directory to store all student file. Each file should have the student name, age, major and gender. Each of these student entriesshould be on a separate line.