Questions
Design the logic in pseudocode for Sign Over Your Money online bank check ordering company as...

Design the logic in pseudocode for Sign Over Your Money online bank check ordering company as follows: 1. The regular price is $6.95 per box of checks; if the customer orders at least 4 boxes, then the price is $4.95 per box. 2. Standard lettering is included in the price, but if the customer wants either calligraphy or elegant lettering, an additional charge of $3.95 applies. 3. If the customer wants a check register, then an additional charge of $2.95 applies. 4. Shipping and handling charges are $1.95 per box. 5. The program must allow the user to enter a. The number of boxes of checks the customer wants to order b. The type of lettering – standard/calligraphy/elegant (by entering a number from a list, e.g., enter 0 if they want standard lettering, and so on, as shown in the practice exercise solutions) c. Whether the user wants a check register (by responding yes/no to the question when asked) d. The program must output i. The price per box of checks ii. The total price for the number of boxes ordered iii. The type of lettering and the charge for it (if any) iv. Whether a check register is desired and if so, the charge for it v. Shipping and handling charges for the order vi. The total charge for the order Assume that the following constants and variables have been declared, and use them in your code where they apply.

num REGULAR_BOX_PRICE = 6.95 num DISCOUNT_MINIMUM_QUANTITY = 4 num DISCOUNTED_BOX_PRICE = 4.95 num STANDARD_LETTERING_PRICE = 0 num SPECIAL_LETTERING_PRICE = 3.95 num CHECK_REGISTER_PRICE = 2.95 num SHIPPING_HANDLING_PER_BOX = 1.95 num STANDARD_LETTERING = 0 num ELEGANT_LETTERING = 1 num CALLIGRAPHY_LETTERING = 2 string SPECIAL_LETTERING_TYPE_1 = "elegant" string SPECIAL_LETTERING_TYPE_2 = "calligraphy" num boxesOrdered num letteringChoice string letteringType num letteringCharge string registerDesired num registerCharge num boxPrice num totalForBoxes num shippingHandlingCharge num totalCharge

This should be done in pseudocode

In: Computer Science

What are the usages of the following API's/ Macros in contiki ? PROCESS uip_debug_ipaddr_print AUTOSTART_PROCESSES PROCESS_THREAD...

What are the usages of the following API's/ Macros in contiki ?

  1. PROCESS
  2. uip_debug_ipaddr_print
  3. AUTOSTART_PROCESSES
  4. PROCESS_THREAD
  5. PROCESS_WAIT_EVENT_UNTIL
  6. PROCESS_END
  7. simple_udp_register
  8. simple_udp_sendto
  9. uip_create_linklocal_allnodes_mcast
  10. servreg_hack_register

In: Computer Science

Write a python program that loops, prompting the user for their full name, their exam result...

Write a python program that loops, prompting the user for their full name, their exam result (an integer between 1 and 100), and then writes that data out to file called ‘customers.txt’. The program should check inputs for validity according to the following rules:

  • First and last names must use only alphabetical characters. No spaces, hyphens or special characters. Names must be less than 20 characters long.
  • Exam result (an integer between 1 and 100 inclusive)

The file should record each customers information on a single line and the output file should have the following appearance.

Nurke Fred 58

Cranium Richard 97

Write a second program that opens the ‘customers.txt’ file for reading and then reads each record, splitting it into its component fields and checking each field for validity.

The rules for validity are as in your first program, with the addition of a rule that specifies that each record must contain exactly 3 fields.

Your program should print out each valid record it reads.

The program should be able to raise an exception on invalid input, print out an error message with the line and what the error was, and continue running properly on the next line(s).

You need to develop the system by completing the following three tasks:

Task 1 -

Draw flowchart/s that present the steps of the algorithm required to perform the tasks specified.

Task 2 -

Select at least six sets of test data that will demonstrate the 'normal' operation of your program; that is, test data that will demonstrate what happens when a VALID input is entered.

In: Computer Science

To play the PowerBall lottery, you buy a ticket that has five unique numbers in the...

To play the PowerBall lottery, you buy a ticket that has five unique numbers in the range of 1–69, and a “PowerBall” number in the range of 1–26. (You can pick the numbers yourself, or you can let the ticket machine randomly pick them for you.) Then, on a specified date, a winning set of numbers is randomly selected by a machine. If your first five numbers match the first five winning numbers in any order, and your PowerBall number matches the winning Pow-erBall number, then you win the jackpot, which is a very large amount of money. If your numbers match only some of the winning numbers, you win a lesser amount, depending on how many of the winning numbers you have matched.

In the student sample programs for this book, you will find a file named pbnumbers.txt, containing the winning PowerBall numbers that were selected between February 3, 2010 and May 11, 2016 (the file contains 654 sets of winning numbers). Figure 8-6 shows an example of the first few lines of the file’s contents. Each line in the file contains the set of six numbers that were selected on a given date. The numbers are separated by a space, and the last number in each line is the PowerBall number for that day. For example, the first line in the file shows the numbers for February 3, 2010, which were 17, 22, 36, 37, 52, and the PowerBall number 24.

Write a program that works with this file to display the 10 most common numbers, ordered by frequency.

Your submission will consist of:

  1. Your algorithm through flowchart/s.
  2. The table recording your chosen test data and results (it can be in a Word or PDF file)
  3. Source code for your Python implementation

In: Computer Science

Write a function printTwoLargest() that inputs an arbitrary number of positive numbers from the user. The...

  1. Write a function printTwoLargest() that inputs an arbitrary number of positive numbers from the user. The input of numbers stops when the first negative or zero value is entered by the user. The function then prints the two largest values entered by the user. If no positive numbers are entered a message to that effect is printed instead of printing any numbers. If only one number is inputted, only the largest is printed out (see 2nd example below). Sample output:

>>> printTwoLargest()

Please enter a number: 12

Please enter a number: 99.9

Please enter a number: 4.5

Please enter a number: 77

Please enter a number: 0

The largest is 99.9

The second largest is 77

>>> printTwoLargest()

Please enter a number: 23.2

Please enter a number: -99

The largest is 23.2

>>> printTwoLargest()

Please enter a number: -9

No positive numbers were entered

>>>

  1. Test your code by downloading the file lab1TEST.py in the same working folder and add the following code to the bottom of your lab1.py module. Run and fix errors before you submit.

if __name__=='__main__':
    import doctest
    print( doctest.testfile( 'lab1TEST.py' ))

use puthon 3.7

In: Computer Science

write exactly what the following code prints. Ensure that you write in the correct order. clearly...

write exactly what the following code prints. Ensure that you write in the correct order. clearly distinguish scratch work from your final answer.

Public class Base{

public void m1(Base a){

System.out.println("Base m1");

a.m2();

}

public void m2(){

System.out.println("Base m2");

}

}

Public class Derived1 extends Base{

public void m1(Base b){

System.out.println("Derived1 m1");

}

public void m2(){

System.out.println("Derived1 m2");

}

}

Public class Derived2 extends Base{

public void m2(){

System.out.m2(){

System.out.println("Dertived2 m2");

}

}

public class UserBaseAndDerived1And2{

public static void main(String[] args){

Base b = new Base();

Derived1 d1 = new Derived1();

Derived2 d2 = new Derived2();

b.m1(b);

b.m1(d1);

b.m1(d2);

b =d1;

b.m1(d2);

b = d2;

b.m1(d1);

}

}

In: Computer Science

How can I check that if a string only make from specific character? For example, I...

How can I check that if a string only make from specific character?
For example, I want to check if a string only make from ICDM characters. It pass the test if it makes from ICMD. It fail the test if it makes from any special character like @#$& or lower case.
Example inputs:
if string = CIM, it passed
if string = AIM, it failed
if string = MCDI, it passed
if string = ICDF, it failed

This can be in either java or php language. Any help with detail is appreciated. Thank you!

In: Computer Science

Make a program to read a file, filled with words separated by new lines, from command...

Make a program to read a file, filled with words separated by new lines, from command line arguments (args[0]), print the file, and then add each word into an arraylist.

After making the arraylist, iterate through it and print its contents.

In: Computer Science

One of the most highly touted advantages of Linux is the fact that it is open...

One of the most highly touted advantages of Linux is the fact that it is open source and anyone can view, modify, and contribute to the Linux source code. In this project, you will make a small change to the Linux source code.

Follow the instructions called Linux Kernel Modules beginning on page 96 of the textbook. Take screenshots of the code that you add to the Linux source as you go and paste them into a Word document.

In the final part of the assignment, you will also need to take screenshots of the kernel log buffer to show successful addition, traversal, and deletion of the linked list elements. Finally, you will need to write a one to two-page reflection paper documenting the steps you have been through to complete the project, lesson learned, things that you like and dislike most about this project, difficulties you encountered and how you solved them, and what you should have done to avoid such difficulties.

Helpful Information on C and Linux:

  • You may need to install a virtual machine to complete the project. Please see the textbook for more information about installing VMware player.
  • C language reference: The GNU C Reference Manual (Links to an external site.)
  • Another C language reference: C and C++ Language (Links to an external site.) Syntax Reference
  • Yet another C language reference: C reference (Links to an external site.)
  • Compiling with gcc and make: Compiling, Linking and Building C/C++ Applications

In: Computer Science

Write a program that will accept user input for an initial deposit and a total amount...

Write a program that will accept user input for an initial deposit and a total amount the user wants to have, and will output the number of years it will take to reach his/her goal. For the basic program, the user will deposit the initial amount in a new account, and then the account will receive interest, compounded MONTHLY, at a rate of 0.5%.

In: Computer Science

Programming Challenge #10. C++ Early Objects 10ed. A talent competition has five judges, each of whom...

Programming Challenge #10. C++ Early Objects 10ed.

A talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer's final score is determined by dropping the highest and lowest score received, then averaging

#include <iostream>
#include <iomanip>
using namespace std;

// Function prototypes
double getJudgeData();  
double calcScore(double, double, double, double, double);                       
double findLowest(double, double, double, double, double);                      
double findHighest(double, double, double, double, double);
                
int main()
{
        double score1, score2, score3, score4, score5,   // 5 judge's scores
          finalScore;
   
        // Inform the user what the program does
        cout << "After you enter 5 judge scores for this contestant, \n"
        << "this program will drop the highest and lowest score \n"
        << "and then average the remaining three scores.\n\n";
        

        return 0;
}// end of main function


the three remaining scores. Write a program that uses these rules to calculate and display a contestant's score.

In: Computer Science

How can I make my php code without using the money format just loop and if...

How can I make my php code without using the money format just loop and if statements print like this:

Change for 5 dollars and 20 cents:

0 ten dollar bills
1 five dollar bills
0 one dollar bills

0 quarters

2 dime
0 nickel
0 pennies

I am trying to ask the user to enter amount and output their change they entered.

$input;

$TenBills = 1000;

$FiveBills = 500;

$OneBills = 100;

$Quarters = 25;

$Dimes = 10;

$Nickels = 5;

$Pennies = 1;

//$dollars = $TenBills , $FiveBills , $OneBills;

$input = readline("Enter Dollars:\n");

print "Change for $input cents:\n";



if($input >= $TenBills) {

$TenBills = $input/$TenBills;

$input /= $TenBills * $TenBills;

print " $input ten dollar bills\n";

}

if($input = $FiveBills) {

$FiveBills = $input/$FiveBills;

$input /= $FiveBills * $FiveBills;

print " $input five dollar bills\n";

}

if($input = $OneBills) {

$OneBills = $input/$OneBills;

$input /= $OneBills * $OneBills;

print " $input one dollar bills\n";

}

if($input = $Quarters) {

$Quarters = $input/$Quarters;

$input /= $Quarters * $Quarters;

print " $input quarters dollar bills\n";

}

if($input = $Dimes) {

$Dimes = $input/$Dimes;

$input /= $Dimes * $Dimes;

print " $input dimes dollar bills\n";

}

if($input = $Nickels) {

$Nickels = $input/$Nickels;

$input /= $Nickels * $Nickels;

print " $input nickels dollar bills\n";

}

if($input = $Pennies) {

$Pennies = $input/$Pennies;

$input /= $Pennies * $Pennies;

print " $input pennies dollar bills\n";

}




?>


In: Computer Science

​Write a program which requests two weights in kilograms and grams and prints the sum of...

​Write a program which requests two weights in kilograms and grams and prints the sum of the weights. For example, if the weights are 3kg 500g and 4kg 700g, your program should print 8kg 200g. in c programming selection logic

In: Computer Science

Create a function powerTo which receives two parameters, a floating point number (the first parameter) and...

Create a function powerTo which receives two parameters, a floating point number (the first parameter) and an integer (the second parameter). If the second parameter is nonnegative, the function returns the value of the first parameter raised to the power of the second parameter. Otherwise, if the second parameter is negative the function returns 0. For example powerTo(2,3)=8, and powerTo(2,-3)=0

In: Computer Science

1. Discuss the following system development methods (600 words approx.) – Structured development – Object oriented...

1. Discuss the following system development methods (600 words approx.) – Structured development – Object oriented development – Agile development – Rapid Application Development

2. What is project creep? Which system development methods are more prone to project creep? What could be a strategy to avoid it? (400 words approx.)

In: Computer Science