IFN555 Assessment 2 Programming Semester 2 2024R

Java Python IFN555 Programming Assignment

Weighting: 50%  Total Marks: 100  Individual

Due Date: 11.59 pm Friday 30th August 2024

Submission: Online via QUT Canvas

Problem Specification:

Alpha’s Murals is a company that paints interior and exterior murals for both business and residential customers. Write a program named BetaApp that performs the following tasks:

Task 1: Display your personal information including your last name, first name and your student ID. Make these surrounded by a border composed of asterisks.

Task 2: The application prompts the user to enter the number of orders for interior and exterior murals. This number has to be between 0 and 30 (inclusive). Otherwise, the program prompts the user to re-enter the number.

Task 3: Display the number of orders of interior and exterior murals. Compute and display the expected revenue for each type of mural and the total revenue from both types. Interior murals cost $500.00 each, and exterior murals cost $750.00 each.

Note that all revenues should be displayed using currency format.

Task 4: Display a statement based on the following conditions:

· If the number of exterior murals ordered is greater than the number of interior murals, the program should display “Exterior murals are becoming more attractive!”, else, the program displays “Interior murals are becoming popular!”.

· If the n IFN555 Assessment 2 Programming Assignment Semester 2 2024R umber of the orders are equal, then display “Both types are equally preferred!”

Task 5: The user is prompted to input information for interior mural orders. Each interior mural order includes customer name and mural code: L for landscape, S for seascape, A for abstract, and O for others. Make sure that all the entered codes are valid (L, S, A or O), and, if not, prompt the user to re-enter the correct code. The number of orders should be the same as the number of interior murals ordered in Task 2.

After the data entry for all the customers is complete, display a count of the number of customers ordering each type of interior mural.

Then, continuously prompt the user for a mural code until the user enters a sentinel value. For each code entry, display a list of the customers ordering that type of mural, or display a message that the code is not valid, and re-prompt the user for a valid mural code.

Note: You must use arrays in Task 5 in order to achieve the maximum marks.

A sample screen shot for Task 2, 3, 4 and first part of Task 5 is provided below.

In completing your assignment, please take note of the following:

I. You should not use any C# concepts which have not been taught as part of Lectures 1 – 5 and covered in Tutorials 1 - 5.

II. You should develop your code using simple logic.

III. Test your code using your own test data covering multiple data sets.

IV. Your final code should not have any compilation/execution errors         

  • 19
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值