Write a Program to create 10 object of student which contains given information e.g. name, roll number and marks. Take input from user. Now show name and roll number of student who got maximum marks on screen.
Q: Write a program that asks for the names of three runners and the time, in minutes, it took each of…
A: The Comparable interface: Is used to sort objects of user-defined classes. Is found in the package-…
Q: n physics, an object that is in motion is said to have kinetic energy. The following formula can be…
A: I give the code in Java along with output and code screenshot
Q: gramming Exercise 2-11 | Instructions Eggsjava 1 import java.util.Scanner; 2 class Eggs ( public…
A: Algorithm: Start Read number of eggs in the order 'n' Calculate m=n/12 Calculate rem=n-((n/12)*12)…
Q: Imagine a publishing company that markets both book and audiocassette versions of its works. Create…
A: Given: Imagine a publishing company that markets both book and audiocassette versions of its works.…
Q: Imagine some publishing company that markets both book and audio cassette versions of its works.…
A: #include<iostream> #include<stdio.h> #include<stdlib.h> #define MAX 100…
Q: Read and understand the following problem: 1. Write a program that accepts from the user a…
A: val = int(input("Enter the Weight Of Object: ")) // declared a variable val that will take the…
Q: OBJECT: To compute the net pay of an employee, given his/her pay rate, number of hours, and…
A: OBJECT: To compute the net pay of an employee, given his/her pay rate, number of hours, and…
Q: Assignment Write a program that moves a forester unit and a desert corps unit to a given target…
A: Assignment Write a program that moves a forester unit and a desert corps unit to a given target…
Q: Imagine a publishing company that markets both books and audio-cassette versions of its works.…
A: As no programming language is mentioned, it is solved using basic C++
Q: UTER FUNDAMENTALS AND PROGRAMMING 2 USING JAVA Problem 1: Using Scanner format, create a program…
A: Java code to compute the discount amount and the discounted price is given below.
Q: Task 4 Implement the design of the Travel class so that the following output is produced: [You are…
A: 1.Creating a class name Travel 2.count is static variable of class because with each time calling…
Q: Use Python for this question: Craps is a single player dice game, that proceeds as follows:…
A: The python program is given by import random #function to calculate the sum of 2 dies def…
Q: PART A. Write a program NumberShape that asks the user to enter a single-digit number and outputs…
A: Program Explanation- Note- Your last four lines of the code are incorrect.The correct code is shown…
Q: Write a program that calculates the electricity bill. The rates of electricity per unit are as…
A: A function is a square of code which possibly runs when it is called. You can pass information,…
Q: Write a code for craps game. Craps is a dice game in which the players make wagers on the outcome of…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Generate 2…
Q: Write an application in Java which defines String=”hello world”, convert it into character array…
A: code: import java.util.*; public class GFG { public static void main(String args[]) {…
Q: Write a program that prompts for an integer (that a side length) and displays, using asterisks, a…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: (a) Suppose Circle is a class. Now draw the memory allocation of the following four statements.…
A: Here, a Circle object with the name c1 is declared. Then, c1 is transferred to another circle (c2)…
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: 1. Write a program that prints your name, age, and department in console 2. Write a program that…
A: As no programming language is mentioned, it is solved using C++
Q: Write java program to demonstrate the use of filing Write string type data to file Read string type…
A: 1) Read String type data from file and write data to another file import java.io.*;public class…
Q: 1.Using pseudocode, a method that will add two numbers, and return the sum to the calling function.…
A: The, code has given below:
Q: A student makes the following argument. if I receive a good grade, the instructor teaches well. I…
A: Here we need to create a statement by taking reference from given data.
Q: Arranging Pebbles Write a program that can arrange a group of pebbles into its designated position.…
A: i give this question answer program with number of integer we describe, first take number of colur…
Q: GetContestantNumber - This method gets and returns a valid number of contestants and is called twice…
A: Below is the implemented code for the given problem statement
Q: 3). In a math class you lean about the different operations that can be done to a series. Imagine…
A: //include the required header file #include <iostream> using namespace std; //definition of…
Q: Write a set of test cases – specific sets of data – to properly test a simple program ¡ Program…
A: Code: The triangle function accepts three integer parameters, which represent the lengths of the…
Q: Input On the first line - information about the car in format {Car {fuel quantity} {liters per…
A: put car , truck and vehicle classes in a model folder public override void Refuel(double amount) {…
Q: Question No. 2: Write a python program that takes input values as integer, checks the number…
A: Given: Concatenate the integer and string values and print as a string. Create another class…
Q: Imagine some publishing company that markets both book and audio cassette versions of its works.…
A: code in c++
Q: public void Unknown() if
A: Given :
Q: Write a program that works out the amount a person has to pay for parking in a car park in a tourist…
A: The program is to calculate parking charges. If they say they are disabled, they are told it is…
Q: Problem 7: Guess the price of the car!? You will implement a variant of the number guessing game we…
A: Python used to answer this question
Q: to input an array and for the program to find the minimum and the maximum numbers and also to find…
A: But we can take array input by using the method of the Scanner class. To take input of an array, we…
Q: Problem #2: [35 pts] Write a java program that helps the Lebanese scout to create an online generate…
A: Code: import java.util.*;public class Main{ public static void main(String[] args) {…
Q: Write a program that takes integers as arguments and adds them. b. Write a program that takes…
A: #include <iostream>using namespace std; //function declarationint addition(int a,int b); int…
Q: Use string interpolation to insert "INSERTED" into to the parameter str! public class…
A: Pass the value to the method StringInterpolation from main() and return the string from that method.
Q: Use python, import sys, sys.argv to create a program called classname.py. The program should define…
A: please see the next step for solution
Q: Question #1: Treadmill burned calories Java Program A treadmill workout machine provides the…
A: // Screenshot of the code & output // code to copy CaloriesBurned.java import java.util.Scanner;…
Q: Dry run the below programs and explain the reasons of output. If there is any error then correct…
A: Output: 20 10
Q: Question # 8: Write a program that inputs a number and checks whether it is a perfect number or not.…
A: Answer 8: Objective: The program reads the user input and verifies if the number falls under the…
Q: Question #1: Treadmill burned calories Java Program A treadmill workout machine provides the…
A: import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner…
Q: cs101: Lab #5 Using Classes and Objects Part II 1. Write a program that computes the area of each…
A: Given:
Q: Please do this in Python Programming and provide Screenshots The output should be exact same like in…
A: According to the Question below the Solution: As per our guidelines we are supposed to answer?️…
Q: Program4 - (from ch7) - Computer-Assisted Instruction (Project Name: AITeacher) - The use of…
A: Actually, given information: The use of computers in education is referred to as computer-assisted…
Q: 1. Instructions: The program you will analyze is shown below. The program listing contains a class…
A: Analysis of the program: Created an object of Rectangle class as rec with the argument (3, 5) where…
Q: Rectangle by CodeChum Admin A rectangle can be formed given two points, the top left point and the…
A: To find center point of rectangle : mid_x = (x1+x2)/2 mid_y = (y1+y2)/2 Perimeter of rectangle…
Q: Create a java program using user defined function. Create a function/method void: -showinfo with…
A: public class Main{ public static void showinfo(int A1, String FN, String LN, String MI, int A2)…
Q: Java Write a program that prompts the user to enter the number of students and each student's name…
A: Use Scanner instance to accept input from user and store all the names and scores in two different…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Course Title:
Question :
Write a Program to create 10 object of student which contains given information e.g. name, roll number and marks. Take input from user. Now show name and roll number of student who got maximum marks on screen.
Step by step
Solved in 4 steps with 2 images
- Python Assignment: In India McDonald's has the n number of customers and they are famous for their taste and quality so they plan to Organise the challenge for foody people. What is the challenge is?| you have taken a food challenge from the Chef and now you have to eat directly the Y burgers. You will eat as follows: At the first minute you will eat exactly the X burgers and every minute after that you will eat twice the number of burgers you ate the minute before. As you can get tired of food, Chef also lets you take a break from eating for one minute. When you start eating again after a break, your food streaks are reset, which means that in the first minute after the break you will eat X burgers and every minute after that you will eat the burgers you ate twice the last minute. Allow a1, a2, ., let it be your meal length in minutes. The cook needs to have all the ai different in pairs. Get the minimum number of minutes you need to eat Y burgers directly or decide that it is not…Theater Ticket System: A small ten-seat theater has contracted you to build software which will reserve tickets. The theater has two rows of five seats each. Each row is referred to by number (1 or 2) and each seat in the row is referred to by letter (A, B, C, D, and E). When started, the program should ask the user for the row they prefer (row selection). If that row has no empty seats then the program should ask the user if they prefer the other row, if no then display a message stating the next show is tomorrow. Upon selecting a row, the program should present the user with a choice of available seats in the row. The user can then either choose a seat and print the ticket (in this case a simple message will suffice) or return to row selection. If a ticket is printed the program should return to row selection. The program terminates when all seats are reserved. Please enter a row: 1 Available seats: A B C D E Which seat, enter Q for none?: B You have booked seat: 1B…Assignment Description This program will simulate part of the game of Yahtzee! This is a dice game that involves rolling five dice and scoring points based on what show up on those five dice. The players would record their scores on a score card, and then total them up, and the player with the larger total wins the game. A Yahtzee score card has two portions: The upper portion has spaces for six scores, obtained by adding up all of the 1's, 2's, 3's, etc. The lower portion has special scores for various combinations: Three of a kind -- at least 3 dice are the same number;the score is the sum of all five dice Four of a kind -- at least 4 dice are the same number;the score is the sum of all five dice Small straight -- four consecutive numbers are represented, e.g. 2345;the score is 25 points Large straight -- five consecutive numbers are represented, e.g. 23456;the score is 30 points Full House -- three of one kind, two of another; the score is 30 points Yahtzee! -- five of a kind; the…
- Theater Ticket System: A small ten-seat theater has contracted you to build software which will reserve tickets. The theater has two rows of five seats each. Each row is referred to by number (1 or 2) and each seat in the row is referred to by letter (A, B, C, D, and E). When started, the program should ask the user for the row they prefer (row selection). If that row has no empty seats then the program should ask the user if they prefer the other row, if no then display a message stating the next show is tomorrow. Upon selecting a row, the program should present the user with a choice of available seats in the row. The user can then either choose a seat and print the ticket (in this case a simple message will suffice) or return to row selection. If a ticket is printed the program should return to row selection. The program terminates when all seats are reserved.Need help coding in Java Create an application that contains an enumeration that represents the days of the week. Display a list of the days, and then prompt the user for a day. Display business hours for the chosen day. Assume that the business is open from 11 - 5 on Sunday, 9 - 9 on weekdays, and 10 - 6 on Saturday.C Programming Language Task: Pascal's Triangle Write a program to print Pascal's triangle. In Pascal's triangle Each number is the sum of the two numbers above it. You may assume the maximum height for this task is 20. Print each character with 5 spaces of padding. e.g.printf("%5d", variable) 1 1 1 1 2 1 133 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1
- In C# language using Microsoft Visual Studio in Windows Forms App (.NET Framework) A slot machine is a gambling device that the user inserts money into and then pulls a lever (or presses a button). The slot machine then displays a set of random images. If two or more of the images match, the user wins an amount of money, which the slot machine dispenses back to the user. Design a program that simulates a slot machine. When the program runs, it should do the following: Ask the user to enter the amount of money he or she wants to insert into the slot machine. Create an application that simulates a slot machine. The application should let the user enter into a TextBox the amount of money he or she is inserting into the machine. When the user clicks the Spin button, the application should display three randomly selected symbols. (Slot machines traditionally display fruit symbols.Using C# in Microsoft Visual Studio create an application that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows:1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Do not display the computer’s choice yet.)2. The user selects his or her choice of rock, paper, or scissors. To get this input you can use Button controls, or clickable PictureBox controls displaying some of the artwork that you will find in the student sample files.3. The computer’s choice is displayed.4. A winner is selected according to the following rules:• If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes scissors.)• If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors…Problem: An online grocery store sells items on a web page. A user adds items to a basket and he clicks on the submit button when he completes. The store sells food and electronic items. The electronic items require VAT payment of 15 percentage of their prices. There are packed and lose food. The lose food is measured in weights. User specifies the weight amount or the quantity in his selection of items depending on its type. The price is computed as the product of the price per item or the price per weight and the weight or quantity are given by the user. Write an application that reads a user basket list and produces the bill receipt. Check the given samples of input/output in the figures below. The bill receipt contains the list of item details in decreasing order according to the price computed for each item. Use the selection sort' to sort the items in the list and do not use java given sort method. Selection sort is an algorithm used to arrange elements in a list. It selects the…
- X609: Magic Date A magic date is one when written in the following format, the month times the date equals the year e.g. 6/10/60. Write code that figures out if a user entered date is a magic date. The dates must be between 1 - 31, inclusive and the months between 1 - 12, inclusive. Let the user know whether they entered a magic date. If the input parameters are not valid, return false. Examples: magicDate(6, 10, 60) -> true magicDate(50, 12, 600) –> falseFunction for button "Publishing Date": • Name this function by your last name (for example, function yamoutl)). When the user clicks on the button "Publishing Date" (after filling all the textboxes), the current date and time will be printed after the text "Published on:" CSCI375 Grades Exam-1 (70 Exam-2 98 Project 86 Exam-3 80 Show the Grades Your Grades: Exam-1 - 78, Exam-2 - 98, Project - 85, Exam-3 - 80 Publishing Date Published on: 5/10/2021, 5:39:08 PM Change Background Color4. Area of a Rectangle • Write a program that compares the area of two rectangles. You can do this several ways. one way is to add the length and width of each rectangle to get it's area and then compare the two areas together. • The program should ask for the length and width of two rectangles and then tell the user which rectangle has the greater area, or if the areas are the same. • The area of a rectangle is the rectangle's length times its width. Name the source code file yourName HW4.py. • Test and run the program. Capture the output console and save it as an image file named yourName HW4 output.jpg. • Submit the py and the image files through Canvas. Note: Sample output below: Fast l: Code-Tracing Output in comenta Vart 21 Days of the Week