Skip to content
Get 50% Off with Promo Code: BlackFriday21
Check it Out
Home
Marketing
Expertise
Automation
Business Coach
Marketing – vCMO
Development
About Matthew Maennche
Resources
C++ Solutions Map
Java Solutions Map
Visual Basic Solutions Map
FAQ
Contact
Log In
Python
Learn To Code
1662 Posts
Java
826 Posts
C++
577 Posts
Visual Basic
232 Posts
Business
9 Posts
General
7 Posts
Classic ASP
4 Posts
PHP
4 Posts
Web Development
1678 Posts
FPDF
2 Posts
BuddyPress
2 Posts
Content Management
2 Posts
Javascript
2 Posts
HTML
1 Post
SQL
1 Post
CRM's
1 Post
Microsoft Dynamics CRM
1 Post
Random
1 Post
Search
Suppose that the tuition for a university is $10,000 this year and increases 5% every year. In one year, the tuition will be $10,500. Write a program that displays the tuition in 10 years and the total cost of 4 years worth of tuition starting after the 10th year.
View Solution
Using loops, write a program that finds the largest prime number smaller than 10,000
View Solution
Write a program that takes the account’s present value, monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user.
View Solution
Write a Boolean function named is_prime which takes an integer as an argument and returns true if the argument is a prime number, or false otherwise. Use the function in a program that prompts the user to enter a number and then prints whether the number is prime.
View Solution
Write an expression (not a statement!) whose value is the largest of population1, population2, population3, and population4 by calling max2.
View Solution
Write an expression (not a statement!) whose value is the larger of population1 and population2 by calling max.
View Solution
Define a function called min that takes two parameters containing integer values and returns the smaller integer of the two. If they have equal value, return either one.
View Solution
Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or equal to 65, and False otherwise
View Solution
Define a function called signOf that takes a parameter containing an integer value and returns a 1 if the parameter is positive, 0 if the parameter is 0, and -1 if the parameter is negative
View Solution
Write the definition of a function absoluteValue that receives a parameter containing an integer value and returns the absolute value of that parameter.
View Solution
[Functions >> functions and if statements] Write the definition of a function powerTo which receives two parameters, a double and an integer.
View Solution
Write the definition of a function oneLess which receives a parameter containing an integer value and returns an integer whose value is one less than the value of the parameter.
View Solution
1
2
3
Next »