only code needed program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2012, the program should display that February 2012 has 29 days. If the user entered month 3 and year 2015, the program should display that March 2015 has 31 days.
Q: Build a flowchart for the following program and write C repl Ask the user to enter name and ID…
A: The flowchart is shown below.
Q: Design a pseduocode function named timesTen that accepts an integer arguement. When the function is…
A: Function timesTen Pass In: any integer "num" as parameter Compute : result = num *…
Q: A bag of biscuit can hold 22 biscuit, and a container can hold 70 bags of biscuit. Write a program…
A: #include <iostream> using namespace std; int main(){ int…
Q: Q.5. The statements in the following program are in incorrect order. Rearrange the statements so…
A: C++ is a general-purpose programming language designed as an expansion of the C programming…
Q: If the user enters 1, the program should ask for the radius of the circle and then display its area.…
A: First, we will input the choice from the user. And according to the choice entered by the user, we…
Q: Random numbers are important in programming languages. Write the code to generate and display 10…
A: #include <iostream>#include <stdlib.h>#include <time.h> int main(void){…
Q: Writ MATLAB code to calculate salary the user enters type of the job (if Employee Authority…
A: Solution: Given, if Employee Authority Deduction from salary 30%, if Government employee…
Q: Using IF and Switch statement, write a program that displays the following menu for the food items…
A: Program explanation: Include the header file. Choose the item from B F P S. If chosen B display the…
Q: Create a c# code that will ask the user to enter a student’s information. Their Last name, First…
A: The code is completed in c# with output in step 2.
Q: The utilities commission has decided that the electric company overcharged its customer for 2 months…
A: Program code: #include <stdio.h>int main(){ //declaring variables float…
Q: turbo c++ program of A company pays an employee $5 per hour if he works 40 hrs. or less. If more…
A: According to the question below the program: Program Output:
Q: Write a program that input numbers from the user until user press “E”. Program should display total…
A: Positive number is identified if the entered number is greater than zero. Negative number is…
Q: Writer C# program in which accept number from the user between 1 to 7 and display corresponding days…
A: 1) Below is program in which accept number from the user between 1 to 7 and display corresponding…
Q: An anagram is a word or a phrase formed by rearranging the letters of another phrase such as "ITEM"…
A: As per the given question, we are given two phrases and we have to check if they are anagrams of…
Q: Ask the user for a name and for a list of test scores. Show the number of tests taken and the…
A: Ask the user for a name and for a list of test scores. Show the number of tests taken and the…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: // simple list program using inheritance // Fruit is a base class with 3 derived classes: Apple,…
Q: Develop a program that will accept three integers from the user and displays the smallest and…
A: #include<iostream> using namespace std; int main(){ int a,b,c,least,greatest; cout…
Q: Design a program that prompts the user for a refrigerator model name and the interior height, width,…
A:
Q: Write a program that prompts the user to enter his/her age as an integer. The program should then…
A: #Program to identify is user status based on age criteria #prompts the user to enter his/her age as…
Q: Two players A,B are playing a game in which there are 3 rounds. Write a program in which user enters…
A: Algorithm : Step 1 : declare variables. Step 2 : ask for the scores of player A and B for three…
Q: No function in your program is allowed to be longer than 10 statements. • Be sure to include the…
A: The python code
Q: C++ code that given a date (year, month and day) finds and displays the next date. Consider all the…
A: Below is the C++ program to find the next date of the entered date: - Explanation: - Importing the…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: Swift code to solve the given problem
Q: Two players A,B are playing a game in which there are 3 rounds. Write a program in which user enters…
A: We have to write a c++ code for the two players and at the end we have to show the winner who got…
Q: Program 4) Body Mass Index (BMI) is a measure of health based on weight. It can be calculated by…
A: As the language is not specified answer written in c++
Q: UO wants a program that displays the amount of money charged for a seminar. The fee per person is…
A: // Code in java import java.util.*; public class Main{ public static void main(String[] args) {…
Q: program for the research data. When a Coffee Shop provide clerk asks for the customer's zip Design…
A:
Q: The Meteorological service requires a program to allow the operator to enter the rainfall level. The…
A: use while loop to take values until zero is pressed. store the values into array and then find min…
Q: 2. Write an if...else statement that determines whether a variable called points is outside the…
A: def number_in_range(point = 0): """ Checks whether the point is within the range [9, 51]. Return…
Q: Cecilia’s Boutique wants several lists of salesperson data. Design a flowchart or pseudocode for the…
A: Answer : Pseudocode:- 1) Start 2) Accept ID Number, No of items sold in last month, total value of…
Q: 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User input should…
A: Given :- 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User…
Q: Q5: Develop a program using If-else statement that takes obtained marks from user for five (5)…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: Write a program that will compute the students average •The user will input the following:…
A: Only the 1st question is answered. Please repost the other questions in another doubt session. As…
Q: 1. Write a program that prompt the user to enter product unit price and quantity purchased. The…
A: The given problems are to be solved in C++ programming language where required inputs will be taken…
Q: The Students Club is offering a new travelling package or membership. People can choose either one…
A: The C++ Program is
Q: Create a program, mintosec.py, that takes one integer argument representing a number of minutes. The…
A: The code is below in python language:
Q: Write a program that asks user first enter a phrase then a character. Each should be referenced in a…
A: #include <iostream>#include <string.h>using namespace std; int main(){ string phrase;…
Q: To evaluate a simple expression, you need to have two numbers and an operator. Assume that the…
A: Algorithm: 1: Declare variables number1 and number 2 as float 2.Declare operator as character to…
Q: prgoram which traces the mouse's path to the cheese. Тhe mouse must go this road in RED LINE, and…
A: It is defined as a direct descendant of C programming language with additional features such as type…
Q: Create a program that allows the user to enter the ages (in years) of five people. The program…
A: As no programming language is mentioned, it is solved using basic C language
Q: Sample output: bag Enter the name of the iten you are purchasing. 3 1475.50 Amount dus is 4426 50…
A: 1) Since you have not specified the programming langauage, I have written program in python 2) Below…
Q: he Barking Lot is a dog day care center. Design a flowchart or pseudocode for the following: A…
A: Actually, The owner_ID_no,name, breed age and weight of the dog are inputted continuously until a…
Q: int age; cout > age; Write a few lines of code to print "Valid" if age is greater than 0 and less…
A: The few lines of codes are : if(age > 0 && age < 110) cout << "Valid";…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: In the computer programming, the concepts of the language that can be organized and managed as the…
Q: A bag of biscuit can hold 22 biscuit, and a container can hold 70 bags of biscuit. Write a program…
A: Input : Total number of biscuits Number of biscuits in a bag Number of biscuit bags in a container…
Q: amount of money charged for a seminar. The fee per person is based on the number of people…
A: Since no programming language is mentioned I am using c++ Algorithm: 1. Start 2. Enter the number of…
Q: reate the pseudocode for a program that are able to measure or sense the car speed in kilometers per…
A: the program is given below:-
Q: Modify the program that computes paint cost to allow the user to enter the number of doorways that…
A: The step-by-step approach(Pseudocode) for this problem is shown below. Input the wall width Input…
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:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- The Students Club is offering a new travelling package or membership. People can choose either one of three packages : a) business, b) family or c)single package. Each packages have different prices for monthly subscription. A business package is RM40, a family package is 20 and single package is 30. People can choose any package and duration-in-month for subscription. The program will calculate and display the total of payment. The program can be repeated as long as the option to exit is not selected. Any invalid input will result in an error message to retry. Create a program that have at least three user defined functions. Three of the functions are having the return type void and calculating the total of each packages. The display is done in separate function.The BITI Students Club is offering a new travelling package or membership. People can choose either one of three packages : a) business, b) family or single package. Each packages have different prices for monthly subscription. A business package is RM40, a family package is RM20 and single package is RM30. People can choose any package and duration-in-month for subscription. The program will calculate and display the total of payment. The program can be repeated as long as the option to exit is not selected. Any invalid input will result in an error message to retry. OUTPUT BITI CARAVAN TRAVELLING CLUB MEMBERSHIP 1.BUSINESS (40RM) FAMILY (20RM) SINGLE (RM 30RM) QUIT THE PROGRAM ENTER YOUR CHOICE: 1! 1000$ by default, but discounts are applied to it based on different criteria. 1- Students get 20% discount. 2- People who purchase in 30 days in advance get 25% discount. 3- student purchasing 40 days in advance gets a 40% discount. This code segment calculates the final price. x = Text1.Text If x= "student" Then 1-... ElseIf x= "advance" Then price 1000 - 0.25 * 1000 ElseIf x= "stu_adv" Then price 1000 - 0.4 * 1000 2-...... price = 1000 3-..... 4-.. O = 1-price = 1000 - 0.2 * 1000 2-Else 3- End If 4-Print price 1-price 1000 - 0.2 * 1000 2-Else 3- Print price 4-End If 1-price = 3-End If 4-Print price = 1000 -0.2 * 1000 2-Elseif
- The company discounted used cars pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary.Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salaryThe BITI Students Club is offering a new travelling package or membership. People can choose either one of three packages : a) business, b) family or single package. Each packages have different prices for monthly subscription. A business package is RM40, a family package is RM20 and single package is RM30. People can choose any package and duration-in-month for subscription. The program will calculate and display the total of payment. The program can be repeated as long as the option to exit is not selected. Any inval i input will result in an error message to retry. BITI Caravan Travelling Club Membership 1. BUSINESS (RM40) 2. FAMILY 3. SINGLE 4. Quit the Program (RM20) (RM30) Enter your choice: 1 For how many months do you like to caravan with us ? 5 The total charges are RM200.e0 BITI Caravan Travelling Club Membership 1. BUSINESS (RM40) 2. FAMILY 3. SINGLE 4. Quit the Program (RM20) (RM30) Enter your choice:Create a change-counting game that gets the user to enter the number of coins required to make exactly one dollar. The program should let the user enter the num- ber of pennies, nickels, dimes, and quarters. If the total value of the coins entered is equal to one dollar, the program should congratulate the user for winning the game. Otherwise, the program should display a message indicating whether the amount entered was more than or less than one dollar.
- Function 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 ColorSerendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awareded as follows: If a customer purchases 0 books, he or she earns 0 points. If a customer purchases 1 book, he or she earns 5 points. If a customer purchases 2 books, he or she earns 15 points. If a customer purchases 3 books, he or she earns 30 points. If a customer purchases 4 or more books, he or she earns 60 points. Creat an application in C# that lets the user enter the number of books that he or she has purchased this month and displays the number of points awarded.Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows: If a customer purchases no books, he or she earns 0 points If a customer purchases 1 through 5 books, he or she earns 5 points for each book. If a customer purchases 6 through 10 books, he or she earns 10 points for each book. If a customer purchases 11 or more books, he or she earns points equal to 20 points for each book. (Use Python) Use the Design Recipe to write the function customer_rewards which consumes the number of books purchased, and returns the total points. Include a docstring! Write 3 assert_equal statements to test your function.
- Professor Zak allows students to drop the four lowest scores on the ten 100-point quizzes she gives during the semester. Design an application that accepts a student name and 10 quiz scores. Output the student's name and 10 quiz scores. Output the student's name and total points for the student's six highest-scoring quizzes. Modify the application so that the student's mean and median scores on the six best quizzes are displayed.UO wants a program that displays the amount of money charged for a seminar. The fee per person is based on the number of people registered for the seminar. The following table shows the payment structure. For example, if the number of people registered for seminar are seven, then the total amount would be Rs 700. If the user enters a number that is less than or equal to 0, the program should display an error. The program should continue to respond until user enters a negative value.The BITI Students Club is offering a new travelling package or membership. People can choose either one of three packages : a) business, b) family or c)single package. Each packages have different prices for monthly subscription. A business package is RM40, a family package is RM20 and single package is RM30. People can choose any package and duration-in-month for subscription. The program will calculate and display the total of payment. The program can be repeated as long as the option to exit is not selected. Any invalid input will result in an error message to retry. Create a program that have at least three user defined functions. Three of the functions are having the return type void and calculating the total of each packages. The display is done in separate function.